Home
last modified time | relevance | path

Searched refs:isInteractive (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java230 final boolean isInteractive = mTrackScreenInteractive in findEntry()
233 final int id = Entry.idFor(msg, isInteractive); in findEntry()
244 entry = new Entry(msg, isInteractive); in findEntry()
253 || entry.isInteractive != isInteractive) { in findEntry()
293 public final boolean isInteractive; field in LooperStats.Entry
305 Entry(Message msg, boolean isInteractive) { in Entry() argument
309 this.isInteractive = isInteractive; in Entry()
316 this.isInteractive = false; in Entry()
332 static int idFor(Message msg, boolean isInteractive) { in idFor() argument
337 result = 31 * result + (isInteractive ? 1231 : 1237); in idFor()
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java389 public boolean isInteractive() { in isInteractive() method in BatterySaverController
425 final boolean isInteractive = getPowerManager().isInteractive(); in handleBatterySaverStateChanged()
436 isInteractive ? 1 : 0, // Device interactive state. in handleBatterySaverStateChanged()
445 mIsInteractive = isInteractive; in handleBatterySaverStateChanged()
448 fileValues = mBatterySaverPolicy.getFileValues(isInteractive); in handleBatterySaverStateChanged()
508 final boolean isInteractive = pm.isInteractive(); in updateBatterySavingStats()
522 isInteractive ? InteractiveState.INTERACTIVE : InteractiveState.NON_INTERACTIVE, in updateBatterySavingStats()
DBatterySaverLocationPlugin.java57 && !caller.isInteractive(); in updateLocationState()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyTest.java63 mPowerManager.isInteractive(); in testNoListener()
74 mPowerManager.isInteractive(); in testListener()
93 mPowerManager.isInteractive(); in testSessionPropagated()
/frameworks/base/services/tests/servicestests/src/com/android/server/attention/
DAttentionManagerServiceTest.java72 doReturn(true).when(mMockIPowerManager).isInteractive(); in setUp()
119 doReturn(false).when(mMockIPowerManager).isInteractive(); in testCheckAttention_returnFalseWhenPowerManagerNotInteract()
127 doReturn(true).when(mMockIPowerManager).isInteractive(); in testCheckAttention_callOnSuccess()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java98 assertThat(entry.isInteractive).isEqualTo(true); in testSingleMessageDispatched()
130 assertThat(entry.isInteractive).isEqualTo(true); in testThrewException()
345 entries.sort(Comparator.comparing(e -> e.isInteractive)); in testScreenStateCollected()
348 assertThat(entry1.isInteractive).isEqualTo(false); in testScreenStateCollected()
353 assertThat(entry2.isInteractive).isEqualTo(true); in testScreenStateCollected()
505 assertThat(entry.isInteractive).isEqualTo(false); in testScreenStateTrackingDisabled()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java77 when(mPowerManager.isInteractive()).thenReturn(true); in setUp()
92 when(mPowerManager.isInteractive()).thenReturn(true); // Screen on. in correctlyReportsScreenInteractive()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java95 public static boolean isInteractive(int wakefulness) { in isInteractive() method in PowerManagerInternal
DIPowerManager.aidl53 boolean isInteractive(); in isInteractive() method
DPowerManager.java1290 return isInteractive(); in isScreenOn()
1327 public boolean isInteractive() { in isInteractive() method in PowerManager
1329 return mService.isInteractive(); in isInteractive()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java236 while (pm.isInteractive() && in testWifiReconnectionAfterSleep()
240 assertFalse("screen still on", pm.isInteractive()); in testWifiReconnectionAfterSleep()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DTestUtils.java51 boolean notifyIdentityChange, boolean initialConfiguration, boolean isInteractive, in enableAndConfigure() argument
DWifiAwareNativeApiTest.java591 boolean initialConfiguration, boolean isInteractive, boolean isIdle, boolean isHal12) in validateEnableAndConfigure() argument
596 initialConfiguration, isInteractive, isIdle); in validateEnableAndConfigure()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java101 return powerManager.isInteractive(); in queryScreenInteractive()
DLooperStatsService.java141 entry.isInteractive, in dump()
DGestureLauncherService.java550 boolean interactive = mPowerManager.isInteractive(); in onTrigger()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java335 boolean notifyIdentityChange, boolean initialConfiguration, boolean isInteractive, in enableAndConfigure() argument
341 + ", isInteractive=" + isInteractive + ", isIdle=" + isIdle); in enableAndConfigure()
435 updateConfigForPowerSettings(req.configParams, configSupplemental12, isInteractive, in enableAndConfigure()
491 updateConfigForPowerSettings(req, configSupplemental12, isInteractive, isIdle); in enableAndConfigure()
1078 NanConfigRequestSupplemental configSupplemental12, boolean isInteractive, in updateConfigForPowerSettings() argument
1083 } else if (!isInteractive) { in updateConfigForPowerSettings()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DShellUiAutomatorBridge.java119 ret = pm.isInteractive(); in isScreenOn()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java34 public boolean isInteractive() throws RemoteException { in isInteractive() method in BridgePowerManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerImpl.java147 mScreenOn = context.getSystemService(PowerManager.class).isInteractive(); in FalsingManagerImpl()
266 if (!mSessionActive && mContext.getSystemService(PowerManager.class).isInteractive() in isFalseTouch()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java80 when(mPowerManager.isInteractive()).thenReturn(true); in setUp()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java413 && mInjector.isInteractive(mContext) in startSensorListener()
764 || !mInjector.isInteractive(mContext) in enableColorSampling()
1097 public boolean isInteractive(Context context) { in isInteractive() method in BrightnessTracker.Injector
1098 return context.getSystemService(PowerManager.class).isInteractive(); in isInteractive()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java341 doReturn(false).when(mPowerManager).isInteractive(); in testUpdateInteractivityLocked()
346 doReturn(false).when(mPowerManager).isInteractive(); in testUpdateInteractivityLocked()
351 doReturn(true).when(mPowerManager).isInteractive(); in testUpdateInteractivityLocked()
356 doReturn(true).when(mPowerManager).isInteractive(); in testUpdateInteractivityLocked()
361 doReturn(false).when(mPowerManager).isInteractive(); in testUpdateInteractivityLocked()
1956 doReturn(on).when(mPowerManager).isInteractive(); in setScreenOn()
/frameworks/base/core/java/android/service/dreams/
DDreamService.java524 public boolean isInteractive() { in isInteractive() method in DreamService
1141 if (isInteractive()) pw.print(" interactive"); in dumpOnHandler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DActivatableNotificationView.java274 if (mNeedsDimming && !isTouchExplorationEnabled() && isInteractive()) { in onTouchEvent()
289 protected boolean isInteractive() { in isInteractive() method in ActivatableNotificationView

123