Merge "Change the name of the contexthub service." am: fba752e64c
am: 8a3f7c0738
Change-Id: I02265e27f7245a13cdfc705dba4cd4de33ed0253
This commit is contained in:
@@ -391,7 +391,7 @@ public final class ContextHubManager {
|
|||||||
public ContextHubManager(Context context, Looper mainLooper) {
|
public ContextHubManager(Context context, Looper mainLooper) {
|
||||||
mMainLooper = mainLooper;
|
mMainLooper = mainLooper;
|
||||||
|
|
||||||
IBinder b = ServiceManager.getService(ContextHubService.CONTEXTHUB_SERVICE);
|
IBinder b = ServiceManager.getService(Context.CONTEXTHUB_SERVICE);
|
||||||
if (b != null) {
|
if (b != null) {
|
||||||
mContextHubService = IContextHubService.Stub.asInterface(b);
|
mContextHubService = IContextHubService.Stub.asInterface(b);
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class ContextHubSystemService extends SystemService {
|
|||||||
public void onBootPhase(int phase) {
|
public void onBootPhase(int phase) {
|
||||||
if (phase == SystemService.PHASE_SYSTEM_SERVICES_READY) {
|
if (phase == SystemService.PHASE_SYSTEM_SERVICES_READY) {
|
||||||
Log.d(TAG, "onBootPhase: PHASE_SYSTEM_SERVICES_READY");
|
Log.d(TAG, "onBootPhase: PHASE_SYSTEM_SERVICES_READY");
|
||||||
publishBinderService(ContextHubService.CONTEXTHUB_SERVICE, mContextHubService);
|
publishBinderService(Context.CONTEXTHUB_SERVICE, mContextHubService);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user