Home
last modified time | relevance | path

Searched refs:isInteractive (Results 1 – 25 of 59) 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.java410 public boolean isInteractive() { in isInteractive() method in BatterySaverController
446 final boolean isInteractive = getPowerManager().isInteractive(); in handleBatterySaverStateChanged()
457 isInteractive ? 1 : 0, // Device interactive state. in handleBatterySaverStateChanged()
466 mIsInteractive = isInteractive; in handleBatterySaverStateChanged()
469 fileValues = mBatterySaverPolicy.getFileValues(isInteractive); in handleBatterySaverStateChanged()
552 final boolean isInteractive = pm.isInteractive(); in updateBatterySavingStats()
567 isInteractive ? InteractiveState.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.java89 doReturn(true).when(mMockIPowerManager).isInteractive(); in setUp()
136 doReturn(false).when(mMockIPowerManager).isInteractive(); in testCheckAttention_returnFalseWhenPowerManagerNotInteract()
144 doReturn(true).when(mMockIPowerManager).isInteractive(); in testCheckAttention_callOnSuccess()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java99 if (powerManager.isInteractive()) { in turnScreenOn()
103 waitUntil("Device not interactive", powerManager::isInteractive); in turnScreenOn()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java123 when(mPowerManager.isInteractive()).thenReturn(true); in setUp()
171 when(mPowerManager.isInteractive()).thenReturn(false); in setNightMoveActivated_overridesFunctionCorrectly()
375 when(mPowerManager.isInteractive()).thenReturn(false); in customTIme_customAlarmSetWhenScreenTimeChanges()
387 when(mPowerManager.isInteractive()).thenReturn(false); in customTime_alarmSetInTheFutureWhenOn()
400 when(mPowerManager.isInteractive()).thenReturn(false); in customTime_appliesImmediatelyWhenScreenOff()
/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/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java360 boolean notifyIdentityChange, boolean initialConfiguration, boolean isInteractive, in enableAndConfigure() argument
366 + ", isInteractive=" + isInteractive + ", isIdle=" + isIdle); in enableAndConfigure()
493 isInteractive, isIdle); in enableAndConfigure()
540 isInteractive, isIdle); in enableAndConfigure()
570 updateConfigForPowerSettings14(req, configSupplemental12, isInteractive, in enableAndConfigure()
591 updateConfigForPowerSettings(req, configSupplemental12, isInteractive, isIdle); in enableAndConfigure()
1180 NanConfigRequestSupplemental configSupplemental12, boolean isInteractive, in updateConfigForPowerSettings() argument
1185 } else if (!isInteractive) { in updateConfigForPowerSettings()
1206 NanConfigRequestSupplemental configSupplemental12, boolean isInteractive, in updateConfigForPowerSettings14() argument
1211 } else if (!isInteractive) { in updateConfigForPowerSettings14()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiControlServiceTest.java139 when(mIPowerManagerMock.isInteractive()).thenReturn(true); in setUp()
236 when(mIPowerManagerMock.isInteractive()).thenReturn(false); in initialPowerStatus_quiescentBoot_isTransientToStandby()
251 when(mIPowerManagerMock.isInteractive()).thenReturn(false); in powerStatusAfterBootComplete_quiescentBoot_isStandby()
DActiveSourceActionTest.java75 when(mIPowerManagerMock.isInteractive()).thenReturn(true); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java79 when(mPowerManager.isInteractive()).thenReturn(true); in setUp()
94 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.aidl59 boolean isInteractive(); in isInteractive() method
DPowerManager.java911 return mService.isInteractive();
1445 return isInteractive(); in isScreenOn()
1482 public boolean isInteractive() { in isInteractive() method in PowerManager
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DTestUtils.java51 boolean notifyIdentityChange, boolean initialConfiguration, boolean isInteractive, in enableAndConfigure() argument
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java101 return powerManager.isInteractive(); in queryScreenInteractive()
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DActivatableNotificationViewController.java96 && mView.isInteractive()) { in onTouch()
/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.java150 mScreenOn = context.getSystemService(PowerManager.class).isInteractive(); in FalsingManagerImpl()
269 if (!mSessionActive && mContext.getSystemService(PowerManager.class).isInteractive() in isFalseTouch()
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
DWindowManagerPerfTestBase.java78 if (!context.getSystemService(PowerManager.class).isInteractive() in setUpOnce()
/frameworks/base/core/java/android/service/dreams/
DDreamService.java527 public boolean isInteractive() { in isInteractive() method in DreamService
1125 if (isInteractive()) pw.print(" interactive"); in dumpOnHandler()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java153 if (!mPowerManager.isInteractive()) { in onReceive()

123