Merge "Use ILights.DESCRIPTOR to refer to AIDL HAL" am: 26b017aae2 am: 2901676439
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426850 Change-Id: If94b4b15a762e850826a1ebbb0867cc115da2788
This commit is contained in:
@@ -555,8 +555,8 @@ public class LightsService extends SystemService {
|
|||||||
@Override
|
@Override
|
||||||
public synchronized ILights get() {
|
public synchronized ILights get() {
|
||||||
if (mInstance == null) {
|
if (mInstance == null) {
|
||||||
IBinder binder = Binder.allowBlocking(ServiceManager.waitForDeclaredService(
|
IBinder binder = Binder.allowBlocking(
|
||||||
"android.hardware.light.ILights/default"));
|
ServiceManager.waitForDeclaredService(ILights.DESCRIPTOR + "/default"));
|
||||||
if (binder != null) {
|
if (binder != null) {
|
||||||
mInstance = ILights.Stub.asInterface(binder);
|
mInstance = ILights.Stub.asInterface(binder);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user