/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProvider.java | 407 ProviderState currentState = ProviderState.createStartingState(this); in initialize() local 408 currentState = currentState.newState(PROVIDER_STATE_STOPPED, null, null, "initialize"); in initialize() 409 setCurrentState(currentState, false); in initialize() 416 currentState = currentState.newState(PROVIDER_STATE_PERM_FAILED, null, null, in initialize() 418 setCurrentState(currentState, true); in initialize() 437 ProviderState currentState = mCurrentState.get(); in destroy() local 438 if (!currentState.isTerminated()) { in destroy() 440 currentState.newState(PROVIDER_STATE_DESTROYED, null, null, "destroy"); in destroy() 539 ProviderState currentState = mCurrentState.get(); in startUpdates() local 540 ProviderState newState = currentState.newState(PROVIDER_STATE_STARTED_INITIALIZING, in startUpdates() [all …]
|
D | BinderLocationTimeZoneProvider.java | 85 ProviderState currentState = mCurrentState.get(); in handleOnProviderBound() local 86 switch (currentState.stateEnum) { in handleOnProviderBound() 91 + ", currentState=" + currentState + ": Provider is started."); in handleOnProviderBound() 96 + ", currentState=" + currentState + ": Provider is stopped."); in handleOnProviderBound() 103 + ", currentState=" + currentState in handleOnProviderBound() 108 throw new IllegalStateException("Unknown currentState=" + currentState); in handleOnProviderBound()
|
/frameworks/base/core/java/android/hardware/devicestate/ |
D | DeviceStateInfo.java | 71 public final int currentState; field in DeviceStateInfo 82 this.currentState = state; in DeviceStateInfo() 91 info.baseState, info.currentState); in DeviceStateInfo() 100 && currentState == that.currentState in equals() 106 int result = Objects.hash(baseState, currentState); in hashCode() 121 if (currentState != other.currentState) { in diff() 135 dest.writeInt(currentState); in writeToParcel() 152 final int currentState = source.readInt(); 154 return new DeviceStateInfo(supportedStates, baseState, currentState);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProviderTest.java | 85 ProviderState currentState = assertAndReturnProviderState( in lifecycle() local 87 assertNull(currentState.currentUserConfiguration); in lifecycle() 88 assertSame(provider, currentState.provider); in lifecycle() 102 currentState = assertAndReturnProviderState( in lifecycle() 104 assertSame(provider, currentState.provider); in lifecycle() 105 assertEquals(config, currentState.currentUserConfiguration); in lifecycle() 106 assertNull(currentState.event); in lifecycle() 127 currentState = assertAndReturnProviderState( in lifecycle() 129 assertSame(provider, currentState.provider); in lifecycle() 130 assertEquals(event, currentState.event); in lifecycle() [all …]
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateInfoTest.java | 45 final int currentState = 2; in create() local 47 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in create() 51 assertEquals(currentState, info.currentState); in create() 58 final int currentState = 2; in equals() local 60 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in equals() 64 currentState); in equals() 68 currentState); in equals() 76 final int currentState = 2; in diff_sameObject() local 78 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in diff_sameObject()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayout.kt | 49 private var currentState: TransitionViewState = TransitionViewState() variable 128 val contentTranslationX = currentState.contentTranslation.x.toInt() in applyCurrentState() 129 val contentTranslationY = currentState.contentTranslation.y.toInt() in applyCurrentState() 132 val widgetState = currentState.widgetStates.get(child.id) ?: continue in applyCurrentState() 179 translationX = currentState.translation.x in applyCurrentState() 180 translationY = currentState.translation.y in applyCurrentState() 182 CrossFadeHelper.fadeIn(this, currentState.alpha) in applyCurrentState() 201 val widgetState = currentState.widgetStates.get(child.id) ?: continue in onMeasure() 236 setLeftTopRightBottom(layoutLeft, layoutTop, layoutLeft + currentState.width, in updateBounds() 237 layoutTop + currentState.height) in updateBounds() [all …]
|
D | TransitionLayoutController.kt | 44 private var currentState = TransitionViewState() variable 65 currentState = getInterpolatedState( in updateStateFromAnimation() 69 reusedState = currentState) in updateStateFromAnimation() 70 applyStateToLayout(currentState) in updateStateFromAnimation() 284 val animated = animate && currentState.width != 0 in setState() 289 currentState = state.copy(reusedState = currentState) in setState() 291 animationStartState = currentState.copy() in setState() 297 currentState = state.copy(reusedState = currentState) in setState()
|
/frameworks/native/libs/battery/ |
D | MultiStateCounter.h | 39 state_t currentState; variable 117 currentState(0), in MultiStateCounter() 145 setState(currentState, timestamp); in setEnabled() 172 states[currentState].timeInStateSinceUpdate += timestamp - lastStateChangeTimestamp; in setState() 185 currentState = state; in setState() 209 setState(currentState, timestamp); in updateValue() 261 add(&states[currentState].counter, value, 1 /* numerator */, 1 /* denominator */); in addValue() 302 str << " currentState: " << currentState; in toString()
|
/frameworks/wilhelm/tests/sandbox/ |
D | monkey.c | 252 State_t currentState = STATE_INITIAL; in main() local 253 while (STATE_TERMINAL != currentState) { in main() 257 if (currentState != transitionTable[i].mEntryState) in main() 263 fprintf(stderr, "No matching transitions in state %d\n", currentState); in main() 269 "but with probability 0\n", currentState); in main() 276 if (currentState != transitionTable[i].mEntryState) in main() 284 transitionTable[i].mActionName, currentState, transitionTable[i].mCount); in main() 287 currentState = nextState; in main()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
D | BackPanelController.kt | 121 internal var currentState: GestureState = GestureState.GONE in <lambda>() variable 290 when (currentState) { in <lambda>() 369 when (currentState) { in <lambda>() 442 val gestureProgress = when (currentState) { in <lambda>() 450 when (currentState) { in <lambda>() 463 val strokeAlphaProgress = when (currentState) { in <lambda>() 661 when (currentState) { in <lambda>() 740 animate = !(currentState == GestureState.FLUNG || in <lambda>() 741 currentState == GestureState.COMMITTED), in <lambda>() 743 scale = when (currentState) { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | BackPanelControllerTest.kt | 86 assertThat(mBackPanelController.currentState) in handlesActionDown() 96 assertThat(mBackPanelController.currentState) in staysHiddenBeforeSlopCrossed() 108 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 116 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 134 assertThat(mBackPanelController.currentState) in handlesBackCancelled()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/ |
D | UceDeviceState.java | 317 DeviceStateResult currentState = getCurrentState(); in refreshDeviceState() local 322 if (!currentState.isRequestForbidden()) { in refreshDeviceState() 324 } else if (!currentState.isDeviceStateEqual(previousState)) { in refreshDeviceState() 325 saveDeviceStateToPreference(currentState); in refreshDeviceState() 328 logd("refreshDeviceState: previous: " + previousState + ", current: " + currentState); in refreshDeviceState() 338 DeviceStateResult currentState = getCurrentState(); in resetDeviceState() local 343 logd("resetDeviceState: previous=" + previousState + ", current=" + currentState); in resetDeviceState()
|
/frameworks/base/core/java/android/os/ |
D | SystemService.java | 114 final State currentState = getState(service); in waitForState() local 115 if (state.equals(currentState)) { in waitForState() 120 throw new TimeoutException("Service " + service + " currently " + currentState in waitForState()
|
/frameworks/native/services/surfaceflinger/ |
D | FpsReporter.cpp | 58 auto& currentState = layer->getDrawingState(); in dispatchLayerFps() local 59 if (currentState.metadata.has(METADATA_TASK_ID)) { in dispatchLayerFps() 60 int32_t taskId = currentState.metadata.getInt32(METADATA_TASK_ID, 0); in dispatchLayerFps()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/ |
D | RepeatWhenAttached.kt | 158 registry.currentState = Lifecycle.State.CREATED in onCreate() 167 registry.currentState = Lifecycle.State.DESTROYED in onDestroy() 175 registry.currentState = in updateState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ |
D | ChipStateSender.kt | 283 currentState: ChipStateSender?, in isValidNextState() 287 if (currentState == null) { in isValidNextState() 292 if (currentState == desiredState) { in isValidNextState() 296 return currentState.isValidNextState(desiredState) in isValidNextState()
|
D | MediaTttSenderLogger.kt | 58 fun logInvalidStateTransitionError(currentState: String, desiredState: String) { in logInvalidStateTransitionError() 63 str1 = currentState in logInvalidStateTransitionError()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | BiometricSchedulerOperation.java | 289 final int currentState = mState; in cancel() local 294 if (currentState == STATE_STARTED_CANCELING) { in cancel() 300 if (currentState == STATE_WAITING_IN_QUEUE in cancel() 301 || currentState == STATE_WAITING_IN_QUEUE_CANCELING in cancel() 302 || currentState == STATE_WAITING_FOR_COOKIE) { in cancel()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | NetworkState.java | 47 public NetworkState(State currentState) { in NetworkState() argument 49 mStateDepository.add(currentState); in NetworkState() 84 public void recordState(State currentState) { in recordState() argument 85 mStateDepository.add(currentState); in recordState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImplTest.kt | 94 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in testInitialLifecycleStateCreated() 100 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in testLifecycleStartedAfterFirstCallback() 108 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 117 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in testLifecycleStillStartedAfterRemovingSecondCallback()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioSimplePlayer.h | 250 aaudio_stream_state_t currentState = AAudioStream_getState(mStream); in waitUntilPaused() local 252 while (result == AAUDIO_OK && currentState == AAUDIO_STREAM_STATE_PAUSING) { in waitUntilPaused() 254 ¤tState, NANOS_PER_SECOND); in waitUntilPaused() 255 inputState = currentState; in waitUntilPaused() 260 return (currentState == AAUDIO_STREAM_STATE_PAUSED) in waitUntilPaused()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/ |
D | MediaHostStatesManager.kt | 50 val currentState = mediaHostStates.get(location) in updateHostState() constant 51 if (!hostState.equals(currentState)) { in updateHostState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
D | DeviceStateManagerServiceTest.java | 266 assertEquals(info.currentState, DEFAULT_DEVICE_STATE.getIdentifier()); in getDeviceStateInfo() 278 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback() 285 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback() 295 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback() 304 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback() 316 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback_emitsInitialValue() 351 assertEquals(callback.getLastNotifiedInfo().currentState, in requestState() 370 assertEquals(callback.getLastNotifiedInfo().currentState, in requestState() 623 assertEquals(callback.getLastNotifiedInfo().currentState, in requestBaseStateOverride() 643 assertEquals(callback.getLastNotifiedInfo().currentState, in requestBaseStateOverride() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeviceStateRotationLockSettingControllerLogger.kt | 76 fun logUpdateDeviceState(currentState: Int, newState: Int) { in logUpdateDeviceState() 81 int1 = currentState in logUpdateDeviceState()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | OneTimePermissionUserManager.java | 281 int currentState; in updateUidState() local 283 currentState = getCurrentState(); in updateUidState() 284 if (currentState == STATE_GONE) { in updateUidState() 294 updateUidState(currentState); in updateUidState()
|