16
16
#include < cutils/properties.h>
17
17
18
18
19
- #include " PerfServiceNative .h"
19
+ #include " setBrightnessValueBg .h"
20
20
21
- #define LIB_FULL_NAME " libperfservicenative .so"
21
+ #define LIB_FULL_NAME " libsetBrightnessValueBg .so"
22
22
#define GIFTATTR_DEBUGPROP " debug.perf.giftEnable"
23
23
24
24
void (*perfBoostEnable)(int ) = NULL ;
@@ -349,7 +349,7 @@ static int load_api(void)
349
349
350
350
handle = dlopen (LIB_FULL_NAME, RTLD_NOW);
351
351
352
- func = dlsym (handle, " PerfServiceNative_boostEnable " );
352
+ func = dlsym (handle, " setBrightnessValueBg_boostEnable " );
353
353
perfBoostEnable = reinterpret_cast <ena>(func);
354
354
355
355
if (perfBoostEnable == NULL ) {
@@ -358,7 +358,7 @@ static int load_api(void)
358
358
return -1 ;
359
359
}
360
360
361
- func = dlsym (handle, " PerfServiceNative_boostDisable " );
361
+ func = dlsym (handle, " setBrightnessValueBg_boostDisable " );
362
362
perfBoostDisable = reinterpret_cast <disa>(func);
363
363
364
364
if (perfBoostDisable == NULL ) {
@@ -367,7 +367,7 @@ static int load_api(void)
367
367
return -1 ;
368
368
}
369
369
370
- func = dlsym (handle, " PerfServiceNative_boostEnableTimeout " );
370
+ func = dlsym (handle, " setBrightnessValueBg_boostEnableTimeout " );
371
371
perfBoostEnableTimeout = reinterpret_cast <ena_timeout>(func);
372
372
373
373
if (perfBoostEnableTimeout == NULL ) {
@@ -376,7 +376,7 @@ static int load_api(void)
376
376
return -1 ;
377
377
}
378
378
379
- func = dlsym (handle, " PerfServiceNative_boostEnableTimeoutMs " );
379
+ func = dlsym (handle, " setBrightnessValueBg_boostEnableTimeoutMs " );
380
380
perfBoostEnableTimeoutMs = reinterpret_cast <ena_timeout_ms>(func);
381
381
382
382
if (perfBoostEnableTimeoutMs == NULL ) {
@@ -385,7 +385,7 @@ static int load_api(void)
385
385
return -1 ;
386
386
}
387
387
388
- func = dlsym (handle, " PerfServiceNative_userReg " );
388
+ func = dlsym (handle, " setBrightnessValueBg_userReg " );
389
389
perfUserScnReg = reinterpret_cast <user_reg>(func);
390
390
391
391
if (perfUserScnReg == NULL ) {
@@ -394,7 +394,7 @@ static int load_api(void)
394
394
return -1 ;
395
395
}
396
396
397
- func = dlsym (handle, " PerfServiceNative_userRegBigLittle " );
397
+ func = dlsym (handle, " setBrightnessValueBg_userRegBigLittle " );
398
398
perfUserScnRegBigLittle = reinterpret_cast <user_reg_big_little>(func);
399
399
400
400
if (perfUserScnRegBigLittle == NULL ) {
@@ -403,7 +403,7 @@ static int load_api(void)
403
403
return -1 ;
404
404
}
405
405
406
- func = dlsym (handle, " PerfServiceNative_userUnreg " );
406
+ func = dlsym (handle, " setBrightnessValueBg_userUnreg " );
407
407
perfUserScnUnreg = reinterpret_cast <user_unreg>(func);
408
408
409
409
if (perfUserScnUnreg == NULL ) {
@@ -412,7 +412,7 @@ static int load_api(void)
412
412
return -1 ;
413
413
}
414
414
415
- func = dlsym (handle, " PerfServiceNative_userGetCapability " );
415
+ func = dlsym (handle, " setBrightnessValueBg_userGetCapability " );
416
416
perfUserGetCapability = reinterpret_cast <user_get_capability>(func);
417
417
418
418
if (perfUserGetCapability == NULL ) {
@@ -421,7 +421,7 @@ static int load_api(void)
421
421
return -1 ;
422
422
}
423
423
424
- func = dlsym (handle, " PerfServiceNative_userRegScn " );
424
+ func = dlsym (handle, " setBrightnessValueBg_userRegScn " );
425
425
perfUserRegScn = reinterpret_cast <user_reg_scn>(func);
426
426
427
427
if (perfUserRegScn == NULL ) {
@@ -430,7 +430,7 @@ static int load_api(void)
430
430
return -1 ;
431
431
}
432
432
433
- func = dlsym (handle, " PerfServiceNative_userRegScnConfig " );
433
+ func = dlsym (handle, " setBrightnessValueBg_userRegScnConfig " );
434
434
perfUserRegScnConfig = reinterpret_cast <user_reg_scn_config>(func);
435
435
436
436
if (perfUserRegScnConfig == NULL ) {
@@ -439,7 +439,7 @@ static int load_api(void)
439
439
return -1 ;
440
440
}
441
441
442
- func = dlsym (handle, " PerfServiceNative_userUnregScn " );
442
+ func = dlsym (handle, " setBrightnessValueBg_userUnregScn " );
443
443
perfUserUnregScn = reinterpret_cast <user_unreg_scn>(func);
444
444
445
445
if (perfUserUnregScn == NULL ) {
@@ -448,7 +448,7 @@ static int load_api(void)
448
448
return -1 ;
449
449
}
450
450
451
- func = dlsym (handle, " PerfServiceNative_userEnable " );
451
+ func = dlsym (handle, " setBrightnessValueBg_userEnable " );
452
452
perfUserScnEnable = reinterpret_cast <user_enable>(func);
453
453
454
454
if (perfUserScnEnable == NULL ) {
@@ -457,7 +457,7 @@ static int load_api(void)
457
457
return -1 ;
458
458
}
459
459
460
- func = dlsym (handle, " PerfServiceNative_userDisable " );
460
+ func = dlsym (handle, " setBrightnessValueBg_userDisable " );
461
461
perfUserScnDisable = reinterpret_cast <user_disable>(func);
462
462
463
463
if (perfUserScnDisable == NULL ) {
@@ -466,7 +466,7 @@ static int load_api(void)
466
466
return -1 ;
467
467
}
468
468
469
- func = dlsym (handle, " PerfServiceNative_userEnableTimeout " );
469
+ func = dlsym (handle, " setBrightnessValueBg_userEnableTimeout " );
470
470
perfUserScnEnableTimeout = reinterpret_cast <user_enable_timeout>(func);
471
471
472
472
if (perfUserScnEnableTimeout == NULL ) {
@@ -475,7 +475,7 @@ static int load_api(void)
475
475
return -1 ;
476
476
}
477
477
478
- func = dlsym (handle, " PerfServiceNative_userEnableTimeoutMs " );
478
+ func = dlsym (handle, " setBrightnessValueBg_userEnableTimeoutMs " );
479
479
perfUserScnEnableTimeoutMs = reinterpret_cast <user_enable_timeout_ms>(func);
480
480
481
481
if (perfUserScnEnableTimeoutMs == NULL ) {
@@ -484,7 +484,7 @@ static int load_api(void)
484
484
return -1 ;
485
485
}
486
486
487
- func = dlsym (handle, " PerfServiceNative_userResetAll " );
487
+ func = dlsym (handle, " setBrightnessValueBg_userResetAll " );
488
488
perfUserScnResetAll = reinterpret_cast <user_reset_all>(func);
489
489
490
490
if (perfUserScnResetAll == NULL ) {
@@ -493,7 +493,7 @@ static int load_api(void)
493
493
return -1 ;
494
494
}
495
495
496
- func = dlsym (handle, " PerfServiceNative_userDisableAll " );
496
+ func = dlsym (handle, " setBrightnessValueBg_userDisableAll " );
497
497
perfUserScnDisableAll = reinterpret_cast <user_disable_all>(func);
498
498
499
499
if (perfUserScnDisableAll == NULL ) {
@@ -502,7 +502,7 @@ static int load_api(void)
502
502
return -1 ;
503
503
}
504
504
505
- func = dlsym (handle, " PerfServiceNative_dumpAll " );
505
+ func = dlsym (handle, " setBrightnessValueBg_dumpAll " );
506
506
perfDumpAll = reinterpret_cast <dump_all>(func);
507
507
508
508
if (perfDumpAll == NULL ) {
@@ -511,7 +511,7 @@ static int load_api(void)
511
511
return -1 ;
512
512
}
513
513
514
- func = dlsym (handle, " PerfServiceNative_setFavorPid " );
514
+ func = dlsym (handle, " setBrightnessValueBg_setFavorPid " );
515
515
perfSetFavorPid = reinterpret_cast <set_favor_pid>(func);
516
516
517
517
if (perfSetFavorPid == NULL ) {
@@ -520,7 +520,7 @@ static int load_api(void)
520
520
return -1 ;
521
521
}
522
522
523
- func = dlsym (handle, " PerfServiceNative_notifyDisplayType " );
523
+ func = dlsym (handle, " setBrightnessValueBg_notifyDisplayType " );
524
524
perfNotifyDisplayType = reinterpret_cast <notify_display_type>(func);
525
525
526
526
if (perfNotifyDisplayType == NULL ) {
@@ -529,7 +529,7 @@ static int load_api(void)
529
529
return -1 ;
530
530
}
531
531
532
- func = dlsym (handle, " PerfServiceNative_notifyUserStatus " );
532
+ func = dlsym (handle, " setBrightnessValueBg_notifyUserStatus " );
533
533
perfNotifyUserStatus= reinterpret_cast <notify_user_status>(func);
534
534
535
535
if (perfNotifyUserStatus == NULL ) {
@@ -538,7 +538,7 @@ static int load_api(void)
538
538
return -1 ;
539
539
}
540
540
541
- func = dlsym (handle, " PerfServiceNative_getClusterInfo " );
541
+ func = dlsym (handle, " setBrightnessValueBg_getClusterInfo " );
542
542
perfGetClusterInfo = reinterpret_cast <get_cluster_info>(func);
543
543
544
544
if (perfGetClusterInfo == NULL ) {
@@ -547,7 +547,7 @@ static int load_api(void)
547
547
return -1 ;
548
548
}
549
549
550
- func = dlsym (handle, " PerfServiceNative_getGiftAttr " );
550
+ func = dlsym (handle, " setBrightnessValueBg_getGiftAttr " );
551
551
perfGetGiftAttr = reinterpret_cast <get_gift_attr>(func);
552
552
553
553
if (perfGetGiftAttr == NULL ) {
@@ -556,7 +556,7 @@ static int load_api(void)
556
556
return -1 ;
557
557
}
558
558
559
- func = dlsym (handle, " PerfServiceNative_reloadWhiteList " );
559
+ func = dlsym (handle, " setBrightnessValueBg_reloadWhiteList " );
560
560
perfReloadWhiteList = reinterpret_cast <reload_white_list>(func);
561
561
562
562
if (perfReloadWhiteList == NULL ) {
0 commit comments