Loading core/java/android/app/Activity.java +6 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ import android.os.Looper; import android.os.Parcelable; import android.os.PersistableBundle; import android.os.RemoteException; import android.os.ServiceManager.ServiceNotFoundException; import android.os.StrictMode; import android.os.SystemProperties; import android.os.UserHandle; Loading Loading @@ -5591,7 +5592,11 @@ public class Activity extends ContextThemeWrapper return; } try { mSearchManager = new SearchManager(this, null); } catch (ServiceNotFoundException e) { throw new IllegalStateException(e); } } @Override Loading core/java/android/app/KeyguardManager.java +4 −3 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.os.RemoteException; import android.os.IBinder; import android.os.IUserManager; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.os.UserHandle; import android.os.UserManager; import android.view.IWindowManager; Loading Loading @@ -192,12 +193,12 @@ public class KeyguardManager { } KeyguardManager() { KeyguardManager() throws ServiceNotFoundException { mWM = WindowManagerGlobal.getWindowManagerService(); mTrustManager = ITrustManager.Stub.asInterface( ServiceManager.getService(Context.TRUST_SERVICE)); ServiceManager.getServiceOrThrow(Context.TRUST_SERVICE)); mUserManager = IUserManager.Stub.asInterface( ServiceManager.getService(Context.USER_SERVICE)); ServiceManager.getServiceOrThrow(Context.USER_SERVICE)); } /** Loading core/java/android/app/SearchManager.java +5 −4 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.os.UserHandle; import android.text.TextUtils; import android.util.Log; Loading Loading @@ -536,7 +537,7 @@ public class SearchManager /** * Reference to the shared system search service. */ private static ISearchManager mService; private final ISearchManager mService; private final Context mContext; Loading @@ -547,11 +548,11 @@ public class SearchManager private SearchDialog mSearchDialog; /*package*/ SearchManager(Context context, Handler handler) { /*package*/ SearchManager(Context context, Handler handler) throws ServiceNotFoundException { mContext = context; mHandler = handler; mService = ISearchManager.Stub.asInterface( ServiceManager.getService(Context.SEARCH_SERVICE)); ServiceManager.getServiceOrThrow(Context.SEARCH_SERVICE)); } /** Loading Loading @@ -620,7 +621,7 @@ public class SearchManager return; } UiModeManager uiModeManager = new UiModeManager(); final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); // Don't show search dialog on televisions. if (uiModeManager.getCurrentModeType() != Configuration.UI_MODE_TYPE_TELEVISION) { ensureSearchDialog(); Loading core/java/android/app/SystemServiceRegistry.java +130 −119 File changed.Preview size limit exceeded, changes collapsed. Show changes core/java/android/app/UiModeManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context; import android.content.res.Configuration; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.util.Log; import java.lang.annotation.Retention; Loading Loading @@ -123,9 +124,9 @@ public class UiModeManager { private IUiModeManager mService; /*package*/ UiModeManager() { /*package*/ UiModeManager() throws ServiceNotFoundException { mService = IUiModeManager.Stub.asInterface( ServiceManager.getService(Context.UI_MODE_SERVICE)); ServiceManager.getServiceOrThrow(Context.UI_MODE_SERVICE)); } /** Loading Loading
core/java/android/app/Activity.java +6 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ import android.os.Looper; import android.os.Parcelable; import android.os.PersistableBundle; import android.os.RemoteException; import android.os.ServiceManager.ServiceNotFoundException; import android.os.StrictMode; import android.os.SystemProperties; import android.os.UserHandle; Loading Loading @@ -5591,7 +5592,11 @@ public class Activity extends ContextThemeWrapper return; } try { mSearchManager = new SearchManager(this, null); } catch (ServiceNotFoundException e) { throw new IllegalStateException(e); } } @Override Loading
core/java/android/app/KeyguardManager.java +4 −3 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.os.RemoteException; import android.os.IBinder; import android.os.IUserManager; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.os.UserHandle; import android.os.UserManager; import android.view.IWindowManager; Loading Loading @@ -192,12 +193,12 @@ public class KeyguardManager { } KeyguardManager() { KeyguardManager() throws ServiceNotFoundException { mWM = WindowManagerGlobal.getWindowManagerService(); mTrustManager = ITrustManager.Stub.asInterface( ServiceManager.getService(Context.TRUST_SERVICE)); ServiceManager.getServiceOrThrow(Context.TRUST_SERVICE)); mUserManager = IUserManager.Stub.asInterface( ServiceManager.getService(Context.USER_SERVICE)); ServiceManager.getServiceOrThrow(Context.USER_SERVICE)); } /** Loading
core/java/android/app/SearchManager.java +5 −4 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.os.UserHandle; import android.text.TextUtils; import android.util.Log; Loading Loading @@ -536,7 +537,7 @@ public class SearchManager /** * Reference to the shared system search service. */ private static ISearchManager mService; private final ISearchManager mService; private final Context mContext; Loading @@ -547,11 +548,11 @@ public class SearchManager private SearchDialog mSearchDialog; /*package*/ SearchManager(Context context, Handler handler) { /*package*/ SearchManager(Context context, Handler handler) throws ServiceNotFoundException { mContext = context; mHandler = handler; mService = ISearchManager.Stub.asInterface( ServiceManager.getService(Context.SEARCH_SERVICE)); ServiceManager.getServiceOrThrow(Context.SEARCH_SERVICE)); } /** Loading Loading @@ -620,7 +621,7 @@ public class SearchManager return; } UiModeManager uiModeManager = new UiModeManager(); final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); // Don't show search dialog on televisions. if (uiModeManager.getCurrentModeType() != Configuration.UI_MODE_TYPE_TELEVISION) { ensureSearchDialog(); Loading
core/java/android/app/SystemServiceRegistry.java +130 −119 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/java/android/app/UiModeManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context; import android.content.res.Configuration; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.util.Log; import java.lang.annotation.Retention; Loading Loading @@ -123,9 +124,9 @@ public class UiModeManager { private IUiModeManager mService; /*package*/ UiModeManager() { /*package*/ UiModeManager() throws ServiceNotFoundException { mService = IUiModeManager.Stub.asInterface( ServiceManager.getService(Context.UI_MODE_SERVICE)); ServiceManager.getServiceOrThrow(Context.UI_MODE_SERVICE)); } /** Loading