Home
last modified time | relevance | path

Searched refs:mDeviceState (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java39 private final CachedDeviceState mDeviceState = new CachedDeviceState(); field in CachedDeviceStateService
45 mDeviceState.setCharging(
51 mDeviceState.setScreenInteractive(true);
54 mDeviceState.setScreenInteractive(false);
66 publishLocalService(CachedDeviceState.Readonly.class, mDeviceState.getReadonlyClient()); in onStart()
78 mDeviceState.setCharging(queryIsCharging()); in onBootPhase()
79 mDeviceState.setScreenInteractive(queryScreenInteractive(getContext())); in onBootPhase()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/
DUceDeviceState.java88 final @DeviceStateType int mDeviceState; field in UceDeviceState.DeviceStateResult
95 mDeviceState = deviceState; in DeviceStateResult()
105 switch(mDeviceState) { in isRequestForbidden()
116 return mDeviceState; in getDeviceState()
143 if ((mDeviceState == otherDeviceState.getDeviceState()) && in isDeviceStateEqual()
168 private @DeviceStateType int mDeviceState; field in UceDeviceState
183 mDeviceState = deviceState.get().getDeviceState(); in UceDeviceState()
188 mDeviceState = DEVICE_STATE_OK; in UceDeviceState()
218 return new DeviceStateResult(mDeviceState, mErrorCode, mRequestRetryTime, mExitStateTime); in getCurrentState()
322 if (mDeviceState != latestState) { in setDeviceState()
[all …]
DUceController.java316 private UceDeviceState mDeviceState; field in UceController
338 mDeviceState = deviceState; in UceController()
372 mDeviceState = new UceDeviceState(mSubId, mContext, mCtrlCallback); in initUceDeviceState()
373 mDeviceState.checkSendResetDeviceStateTimer(); in initUceDeviceState()
495 mDeviceState.refreshDeviceState(sipCode, reason, type);
500 mDeviceState.resetDeviceState();
505 return mDeviceState.getCurrentState();
598 DeviceStateResult deviceStateResult = mDeviceState.getCurrentState(); in requestCapabilitiesInternal()
637 DeviceStateResult deviceStateResult = mDeviceState.getCurrentState(); in requestAvailability()
660 mDeviceState.resetDeviceState(); in onRequestPublishCapabilitiesFromService()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DLooperStatsPerfTest.java46 private CachedDeviceState mDeviceState; field in LooperStatsPerfTest
53 mDeviceState = new CachedDeviceState(false, false); in setUp()
54 mStats.setDeviceState(mDeviceState.getReadonlyClient()); in setUp()
83 mDeviceState.setCharging(true); in timeCollectionDisabled()
/frameworks/av/services/camera/libcameraservice/device3/
DStatusTracker.cpp37 mDeviceState(IDLE) { in StatusTracker()
90 if (mDeviceState == IDLE) { in dumpActiveComponents()
188 if (prevState != mDeviceState) { in threadLoop()
216 mDeviceState = prevState; in threadLoop()
DStatusTracker.h114 ComponentState mDeviceState; variable
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java48 private CachedDeviceState mDeviceState; field in LooperStatsTest
64 mDeviceState = new CachedDeviceState(); in setUp()
65 mDeviceState.setCharging(false); in setUp()
66 mDeviceState.setScreenInteractive(true); in setUp()
312 mDeviceState.setCharging(true); in testDataNotCollectedOnCharger()
327 mDeviceState.setCharging(true); in testDataCollectedIfIgnoreBatteryStatusFlagSet()
345 mDeviceState.setScreenInteractive(true); in testScreenStateCollected()
354 mDeviceState.setScreenInteractive(false); in testScreenStateCollected()
510 mDeviceState.setScreenInteractive(false); in testScreenStateTrackingDisabled()
515 mDeviceState.setScreenInteractive(true); in testScreenStateTrackingDisabled()
[all …]
DBinderCallsStatsTest.java63 private final CachedDeviceState mDeviceState = new CachedDeviceState(false, true); field in BinderCallsStatsTest
439 bcs.setDeviceState(mDeviceState.getReadonlyClient()); in testNoDataCollectedBeforeInitialDeviceStateSet()
449 mDeviceState.setCharging(true); in testNoDataCollectedOnCharger()
461 mDeviceState.setCharging(true); in testIgnoreBatteryStatusFlag()
475 mDeviceState.setScreenInteractive(false); in testScreenOff()
492 mDeviceState.setScreenInteractive(true); in testScreenOn()
509 mDeviceState.setCharging(true); in testOnCharger()
522 mDeviceState.setCharging(false); in testOnBattery()
728 mDeviceState.setScreenInteractive(false); in testTrackScreenInteractiveDisabled()
733 mDeviceState.setScreenInteractive(true); in testTrackScreenInteractiveDisabled()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java54 private CachedDeviceState.Readonly mDeviceState; field in LooperStats
72 mDeviceState = deviceState; in setDeviceState()
147 if (mDeviceState == null) { in deviceStateAllowsCollection()
150 if (mDeviceState.isCharging()) { in deviceStateAllowsCollection()
245 ? mDeviceState.isScreenInteractive() in findEntry()
DBinderCallsStats.java117 private CachedDeviceState.Readonly mDeviceState; field in BinderCallsStats
195 mDeviceState = deviceState; in setDeviceState()
298 ? mDeviceState.isScreenInteractive() in processCallEnded()
442 if (mDeviceState == null) { in canCollect()
445 if (mDeviceState.isCharging()) { in canCollect()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplayMapper.java144 private int mDeviceState = DeviceStateManager.INVALID_DEVICE_STATE; field in LogicalDisplayMapper
283 if (mDeviceState != DeviceStateManager.INVALID_DEVICE_STATE) { in setDeviceStateLocked()
284 resetLayoutLocked(mDeviceState, state, LogicalDisplay.DISPLAY_PHASE_LAYOUT_TRANSITION); in setDeviceStateLocked()
323 resetLayoutLocked(mDeviceState, mPendingDeviceState, LogicalDisplay.DISPLAY_PHASE_ENABLED); in transitionToPendingStateLocked()
324 mDeviceState = mPendingDeviceState; in transitionToPendingStateLocked()
638 mCurrentLayout = mDeviceStateToLayoutMap.get(mDeviceState); in applyLayoutLocked()
654 + " for the display state " + mDeviceState); in applyLayoutLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImpl.java45 private final DeviceState mDeviceState; field in TimeZoneSuggesterImpl
51 mDeviceState = Objects.requireNonNull(deviceState); in TimeZoneSuggesterImpl()
96 slotIndex, countryIsoCode, mDeviceState.currentTimeMillis()); in getTimeZoneSuggestion()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/
DUceControllerTest.java67 @Mock UceDeviceState mDeviceState; field in UceControllerTest
89 doReturn(mDeviceStateResult).when(mDeviceState).getCurrentState(); in setUp()
278 UceController uceController = new UceController(mContext, mSubId, mDeviceState, in createUceController()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java134 private int mDeviceState; field in CameraServiceProxy
477 mDeviceState |= deviceStateFlags; in setDeviceStateFlags()
478 if (mDeviceState != mLastReportedDeviceState) { in setDeviceStateFlags()
497 mDeviceState &= ~deviceStateFlags; in clearDeviceStateFlags()
498 if (mDeviceState != mLastReportedDeviceState) { in clearDeviceStateFlags()
821 if (notifyDeviceStateChangeLocked(mDeviceState)) { in notifyDeviceStateWithRetriesLocked()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp88 mDeviceState = static_cast<hardware::hidl_bitfield<provider::V2_5::DeviceState>>( in initialize()
357 mDeviceState = newState; in notifyDeviceStateChange()
362 status_t singleRes = provider->notifyDeviceStateChange(mDeviceState); in notifyDeviceStateChange()
1251 return providerInfo->initialize(interface, mDeviceState); in tryToInitializeProviderLocked()
1428 __FUNCTION__, mProviderName.c_str(), mDeviceState); in initialize()
1576 __FUNCTION__, mProviderName.c_str(), mDeviceState); in startProviderInterface()
1577 interface_2_5->notifyDeviceStateChange(mDeviceState); in startProviderInterface()
2036 mDeviceState = newDeviceState; in notifyDeviceStateChange()
2046 interface_2_5->notifyDeviceStateChange(mDeviceState); in notifyDeviceStateChange()
DCameraProviderManager.h345 android::hardware::hidl_bitfield<hardware::camera::provider::V2_5::DeviceState> mDeviceState; variable
380 hardware::hidl_bitfield<hardware::camera::provider::V2_5::DeviceState> mDeviceState; member