universal7885: format code using clang-format-15

This commit is contained in:
roynatech2544 2022-04-12 17:26:15 +09:00
commit cb072badd5
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
55 changed files with 3946 additions and 3783 deletions

View file

@ -6,17 +6,22 @@
#include <cutils/properties.h>
#include <string.h>
static inline const char* BtmGetDefaultName() {
char product_device[PROPERTY_VALUE_MAX];
property_get("ro.product.device", product_device, "");
static inline const char *BtmGetDefaultName() {
char product_device[PROPERTY_VALUE_MAX];
property_get("ro.product.device", product_device, "");
if (strstr(product_device, "a10")) return "Galaxy A10";
if (strstr(product_device, "a20e")) return "Galaxy A20e";
if (strstr(product_device, "a20")) return "Galaxy A20";
if (strstr(product_device, "a30")) return "Galaxy A30";
if (strstr(product_device, "a40")) return "Galaxy A40";
// Fallback to Generic
return "Samsung Galaxy";
if (strstr(product_device, "a10"))
return "Galaxy A10";
if (strstr(product_device, "a20e"))
return "Galaxy A20e";
if (strstr(product_device, "a20"))
return "Galaxy A20";
if (strstr(product_device, "a30"))
return "Galaxy A30";
if (strstr(product_device, "a40"))
return "Galaxy A40";
// Fallback to Generic
return "Samsung Galaxy";
}
#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()