Home
last modified time | relevance | path

Searched refs:UiModeManager (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java19 import static android.app.UiModeManager.DEFAULT_PRIORITY;
20 import static android.app.UiModeManager.MODE_NIGHT_AUTO;
21 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
22 import static android.app.UiModeManager.MODE_NIGHT_NO;
23 import static android.app.UiModeManager.MODE_NIGHT_YES;
24 import static android.app.UiModeManager.PROJECTION_TYPE_AUTOMOTIVE;
25 import static android.app.UiModeManager.PROJECTION_TYPE_NONE;
42 import android.app.UiModeManager;
104 private static final String TAG = UiModeManager.class.getSimpleName();
117 private int mNightMode = UiModeManager.MODE_NIGHT_NO;
[all …]
/frameworks/base/core/java/com/android/internal/app/
DDisableCarModeActivity.java21 import android.app.UiModeManager;
36 uiModeManager.disableCarModeByCallingPackage(UiModeManager.DISABLE_CAR_MODE_GO_HOME in onCreate()
37 | UiModeManager.DISABLE_CAR_MODE_ALL_PRIORITIES, in onCreate()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java19 import static android.app.UiModeManager.PROJECTION_TYPE_NONE;
24 import android.app.UiModeManager;
59 private final UiModeManager.OnProjectionStateChangedListener mOnProjectionStateChangedListener =
108 context.getSystemService(UiModeManager.class).addOnProjectionStateChangedListener( in startTracking()
109 UiModeManager.PROJECTION_TYPE_ALL, context.getMainExecutor(), in startTracking()
113 private void onProjectionStateChanged(@UiModeManager.ProjectionType int activeProjectionTypes, in onProjectionStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java19 import android.app.UiModeManager;
65 private UiModeManager mUiModeManager;
85 mUiModeManager = host.getUserContext().getSystemService(UiModeManager.class); in UiModeNightTile()
126 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO in handleUpdateState()
131 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in handleUpdateState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java19 import static android.app.UiModeManager.PROJECTION_TYPE_AUTOMOTIVE;
24 import android.app.UiModeManager;
303 UiModeManager umm = (UiModeManager) phone.getContext().getSystemService( in DeviceStateMonitor()
746 final UiModeManager umm = (UiModeManager) mPhone.getContext().getSystemService( in isAutomotiveProjectionActive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java20 import android.app.UiModeManager;
87 private final UiModeManager mUiModeManager;
193 mUiModeManager = mContext.getSystemService(UiModeManager.class); in DozeTriggers()
576 if (UiModeManager.ACTION_ENTER_CAR_MODE.equals(intent.getAction())) { in onReceive()
589 filter.addAction(UiModeManager.ACTION_ENTER_CAR_MODE); in register()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java26 import android.app.UiModeManager;
247 UiModeManager umm = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in getLaunchIntentForPackage()
/frameworks/base/core/java/android/app/
DUiModeManager.java74 public class UiModeManager { class
273 /*package*/ UiModeManager() throws ServiceNotFoundException { in UiModeManager() method in UiModeManager
277 /*package*/ UiModeManager(Context context) throws ServiceNotFoundException { in UiModeManager() method in UiModeManager
DSearchManager.java631 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in startSearch()
DSystemServiceRegistry.java699 registerService(Context.UI_MODE_SERVICE, UiModeManager.class, in registerService()
700 new CachedServiceFetcher<UiModeManager>() { in registerService()
702 public UiModeManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
703 return new UiModeManager(ctx.getOuterContext()); in registerService()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java19 import static android.app.UiModeManager.MODE_NIGHT_AUTO;
20 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
21 import static android.app.UiModeManager.MODE_NIGHT_NO;
22 import static android.app.UiModeManager.MODE_NIGHT_YES;
23 import static android.app.UiModeManager.PROJECTION_TYPE_ALL;
24 import static android.app.UiModeManager.PROJECTION_TYPE_AUTOMOTIVE;
25 import static android.app.UiModeManager.PROJECTION_TYPE_NONE;
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java19 import android.app.UiModeManager;
259 private final UiModeManager.OnProjectionStateChangedListener mOnProjectionStateChangedListener =
294 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in systemReady()
295 uiModeManager.addOnProjectionStateChangedListener(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE, in systemReady()
298 uiModeManager.getActiveProjectionTypes() != UiModeManager.PROJECTION_TYPE_NONE); in systemReady()
/frameworks/base/services/core/java/com/android/server/wm/
DPackageConfigPersister.java19 import static android.app.UiModeManager.MODE_NIGHT_AUTO;
20 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java36 import android.app.UiModeManager;
136 UiModeManager mUiModeManager;
DContextFixture.java36 import android.app.UiModeManager;
318 } else if (serviceClass == UiModeManager.class) { in getSystemServiceName()
/frameworks/base/telecomm/java/android/telecom/
DInCallService.java23 import android.app.UiModeManager;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java42 import android.app.UiModeManager;
166 when(mContext.getSystemService(UiModeManager.class)).thenReturn(mock(UiModeManager.class)); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java59 import android.app.UiModeManager;
657 private UiModeManager mUiModeManager;
921 mUiModeManager = mContext.getSystemService(UiModeManager.class); in start()
2746 " (auto: " + UiModeManager.MODE_NIGHT_AUTO + in dump()
2747 ", yes: " + UiModeManager.MODE_NIGHT_YES + in dump()
2748 ", no: " + UiModeManager.MODE_NIGHT_NO + ")"); in dump()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java106 import android.app.UiModeManager;
1769 filter.addAction(UiModeManager.ACTION_ENTER_CAR_MODE); in init()
1770 filter.addAction(UiModeManager.ACTION_EXIT_CAR_MODE); in init()
1771 filter.addAction(UiModeManager.ACTION_ENTER_DESK_MODE); in init()
1772 filter.addAction(UiModeManager.ACTION_EXIT_DESK_MODE); in init()
/frameworks/base/core/api/
Dtest-current.txt372 public class UiModeManager {
Dsystem-current.txt841 public class UiModeManager {
842 …ner(int, @NonNull java.util.concurrent.Executor, @NonNull android.app.UiModeManager.OnProjectionSt…
847 …blic void removeOnProjectionStateChangedListener(@NonNull android.app.UiModeManager.OnProjectionSt…
859 public static interface UiModeManager.OnProjectionStateChangedListener {
/frameworks/base/boot/
Dboot-image-profile.txt2702 …/app/SystemServiceRegistry$53;->createService(Landroid/app/ContextImpl;)Landroid/app/UiModeManager;
2783 HSPLandroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;-><init>()V
2784 HSPLandroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;-><init>(Landroid/app…
2785 HSPLandroid/app/UiModeManager;-><init>(Landroid/content/Context;)V
2786 HSPLandroid/app/UiModeManager;->getActiveProjectionTypes()I
2787 HSPLandroid/app/UiModeManager;->getCurrentModeType()I+]Landroid/app/IUiModeManager;Landroid/app/IUi…
23491 Landroid/app/UiModeManager$InnerListener;
23492 Landroid/app/UiModeManager$OnProjectionStateChangedListener;
23493 Landroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;
23494 Landroid/app/UiModeManager;
Dpreloaded-classes702 android.app.UiModeManager
/frameworks/base/config/
Dboot-image-profile.txt2702 …/app/SystemServiceRegistry$53;->createService(Landroid/app/ContextImpl;)Landroid/app/UiModeManager;
2783 HSPLandroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;-><init>()V
2784 HSPLandroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;-><init>(Landroid/app…
2785 HSPLandroid/app/UiModeManager;-><init>(Landroid/content/Context;)V
2786 HSPLandroid/app/UiModeManager;->getActiveProjectionTypes()I
2787 HSPLandroid/app/UiModeManager;->getCurrentModeType()I+]Landroid/app/IUiModeManager;Landroid/app/IUi…
33124 Landroid/app/UiModeManager$InnerListener;
33125 Landroid/app/UiModeManager$OnProjectionStateChangedListener;
33126 Landroid/app/UiModeManager$OnProjectionStateChangedListenerResourceManager;
33127 Landroid/app/UiModeManager;
Dpreloaded-classes699 android.app.UiModeManager

12