Loading core/java/android/app/SystemServiceRegistry.java +3 −3 Original line number Diff line number Diff line Loading @@ -831,7 +831,7 @@ final class SystemServiceRegistry { service = createService(ctx); cache[mCacheIndex] = service; } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return (T)service; Loading @@ -855,7 +855,7 @@ final class SystemServiceRegistry { try { mCachedInstance = createService(); } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return mCachedInstance; Loading Loading @@ -888,7 +888,7 @@ final class SystemServiceRegistry { try { mCachedInstance = createService(appContext != null ? appContext : ctx); } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return mCachedInstance; Loading services/core/java/com/android/server/DropBoxManagerService.java +15 −14 Original line number Diff line number Diff line Loading @@ -179,7 +179,16 @@ public final class DropBoxManagerService extends SystemService { @Override public void onStart() { // Set up intent receivers publishBinderService(Context.DROPBOX_SERVICE, mStub); // The real work gets done lazily in init() -- that way service creation always // succeeds, and things like disk problems cause individual method failures. } @Override public void onBootPhase(int phase) { switch (phase) { case PHASE_SYSTEM_SERVICES_READY: IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_DEVICE_STORAGE_LOW); getContext().registerReceiver(mReceiver, filter); Loading @@ -192,16 +201,8 @@ public final class DropBoxManagerService extends SystemService { mReceiver.onReceive(getContext(), (Intent) null); } }); break; publishBinderService(Context.DROPBOX_SERVICE, mStub); // The real work gets done lazily in init() -- that way service creation always // succeeds, and things like disk problems cause individual method failures. } @Override public void onBootPhase(int phase) { switch (phase) { case PHASE_BOOT_COMPLETED: mBooted = true; break; Loading services/core/java/com/android/server/am/ActivityManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -13734,11 +13734,12 @@ public final class ActivityManagerService extends ActivityManagerNative // NOTE -- this must never acquire the ActivityManagerService lock, // otherwise the watchdog may be prevented from resetting the system. final String dropboxTag = processClass(process) + "_" + eventType; final DropBoxManager dbox = (DropBoxManager) mContext.getSystemService(Context.DROPBOX_SERVICE); // Bail early if not published yet if (ServiceManager.getService(Context.DROPBOX_SERVICE) == null) return; final DropBoxManager dbox = mContext.getSystemService(DropBoxManager.class); // Exit early if the dropbox isn't configured to accept this report type. final String dropboxTag = processClass(process) + "_" + eventType; if (dbox == null || !dbox.isTagEnabled(dropboxTag)) return; // Rate-limit how often we're willing to do the heavy lifting below to services/java/com/android/server/SystemServer.java +3 −2 Original line number Diff line number Diff line Loading @@ -498,6 +498,9 @@ public final class SystemServer { * Starts some essential services that are not tangled up in the bootstrap process. */ private void startCoreServices() { // Records errors and logs, for example wtf() mSystemServiceManager.startService(DropBoxManagerService.class); // Tracks the battery level. Requires LightService. mSystemServiceManager.startService(BatteryService.class); Loading Loading @@ -930,8 +933,6 @@ public final class SystemServer { Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER); } mSystemServiceManager.startService(DropBoxManagerService.class); if (!disableNonCoreServices && context.getResources().getBoolean( R.bool.config_enableWallpaperService)) { traceBeginAndSlog("StartWallpaperManagerService"); Loading Loading
core/java/android/app/SystemServiceRegistry.java +3 −3 Original line number Diff line number Diff line Loading @@ -831,7 +831,7 @@ final class SystemServiceRegistry { service = createService(ctx); cache[mCacheIndex] = service; } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return (T)service; Loading @@ -855,7 +855,7 @@ final class SystemServiceRegistry { try { mCachedInstance = createService(); } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return mCachedInstance; Loading Loading @@ -888,7 +888,7 @@ final class SystemServiceRegistry { try { mCachedInstance = createService(appContext != null ? appContext : ctx); } catch (ServiceNotFoundException e) { Log.w(TAG, e.getMessage(), e); Log.wtf(TAG, e.getMessage(), e); } } return mCachedInstance; Loading
services/core/java/com/android/server/DropBoxManagerService.java +15 −14 Original line number Diff line number Diff line Loading @@ -179,7 +179,16 @@ public final class DropBoxManagerService extends SystemService { @Override public void onStart() { // Set up intent receivers publishBinderService(Context.DROPBOX_SERVICE, mStub); // The real work gets done lazily in init() -- that way service creation always // succeeds, and things like disk problems cause individual method failures. } @Override public void onBootPhase(int phase) { switch (phase) { case PHASE_SYSTEM_SERVICES_READY: IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_DEVICE_STORAGE_LOW); getContext().registerReceiver(mReceiver, filter); Loading @@ -192,16 +201,8 @@ public final class DropBoxManagerService extends SystemService { mReceiver.onReceive(getContext(), (Intent) null); } }); break; publishBinderService(Context.DROPBOX_SERVICE, mStub); // The real work gets done lazily in init() -- that way service creation always // succeeds, and things like disk problems cause individual method failures. } @Override public void onBootPhase(int phase) { switch (phase) { case PHASE_BOOT_COMPLETED: mBooted = true; break; Loading
services/core/java/com/android/server/am/ActivityManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -13734,11 +13734,12 @@ public final class ActivityManagerService extends ActivityManagerNative // NOTE -- this must never acquire the ActivityManagerService lock, // otherwise the watchdog may be prevented from resetting the system. final String dropboxTag = processClass(process) + "_" + eventType; final DropBoxManager dbox = (DropBoxManager) mContext.getSystemService(Context.DROPBOX_SERVICE); // Bail early if not published yet if (ServiceManager.getService(Context.DROPBOX_SERVICE) == null) return; final DropBoxManager dbox = mContext.getSystemService(DropBoxManager.class); // Exit early if the dropbox isn't configured to accept this report type. final String dropboxTag = processClass(process) + "_" + eventType; if (dbox == null || !dbox.isTagEnabled(dropboxTag)) return; // Rate-limit how often we're willing to do the heavy lifting below to
services/java/com/android/server/SystemServer.java +3 −2 Original line number Diff line number Diff line Loading @@ -498,6 +498,9 @@ public final class SystemServer { * Starts some essential services that are not tangled up in the bootstrap process. */ private void startCoreServices() { // Records errors and logs, for example wtf() mSystemServiceManager.startService(DropBoxManagerService.class); // Tracks the battery level. Requires LightService. mSystemServiceManager.startService(BatteryService.class); Loading Loading @@ -930,8 +933,6 @@ public final class SystemServer { Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER); } mSystemServiceManager.startService(DropBoxManagerService.class); if (!disableNonCoreServices && context.getResources().getBoolean( R.bool.config_enableWallpaperService)) { traceBeginAndSlog("StartWallpaperManagerService"); Loading