mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: format code using clang-format-15
This commit is contained in:
parent
bfcbd0d355
commit
cb072badd5
55 changed files with 3946 additions and 3783 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue