Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 27) sorted by relevance

12

/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DFoldableDeviceController.kt136 private fun setDeviceState(state: Int) { in <lambda>()
137 if (currentState == state) { in <lambda>()
142 val request = DeviceStateRequest.newBuilder(state).build() in <lambda>()
151 ensureStateSet(state) in <lambda>()
156 private fun ensureStateSet(state: Int) { in <lambda>()
157 when (state) { in <lambda>()
186 private val deviceStateCallback = DeviceStateCallback { state -> in <lambda>() method
187 currentState = state.identifier in <lambda>()
197 currentState = request.state in <lambda>()
202 if (currentState == request.state) { in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DActivity.kt29 val state: String, constant in android.tools.traces.wm.Activity
59 return "${this::class.simpleName}: {$token $title} state=$state visible=$isVisible" in <lambda>()
66 if (state != other.state) return false in <lambda>()
80 result = 31 * result + state.hashCode() in <lambda>()
DWindowManagerState.kt288 rootTasks.any { it.getActivity(componentMatcher)?.state == activityState } in <lambda>()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/subsystem-sleep-state/
DREADME.md1 # Subsytem sleep state Configs
3 These configs are used to collect the subsystem sleep state on the device as defined in the Subsyst…
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoAppInfoSettingsHelper.java56 void enableDisableApplication(State state); in enableDisableApplication() argument
80 void setAppPermission(String permission, State state); in setAppPermission() argument
DIAutoLocationSettingsHelper.java33 void toggleLocationSwitchOnOff(State state); in toggleLocationSwitchOnOff() argument
DIAutoVehicleHardKeysHelper.java125 void setDrivingState(DrivingState state); in setDrivingState() argument
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/media/
DMediaController.java104 private void runToNextState(Runnable runnable, int state) { in runToNextState() argument
114 "PlaybackState didn't change to state:" + state + " and timeout."); in runToNextState()
119 if (!mStateChanges.contains(state)) { in runToNextState()
120 throw new RuntimeException(String.format("Fail to run to next state(%d).", state)); in runToNextState()
124 private void onMediaSessionStageChanged(int state) { in onMediaSessionStageChanged() argument
125 mStateChanges.add(state); in onMediaSessionStageChanged()
DMediaSessionCallback.java63 private void setCurrentMediaState(int state) { in setCurrentMediaState() argument
65 listener.accept(state); in setCurrentMediaState()
DMediaInstrumentation.java235 private void onMediaSessionStateChanged(int state) { in onMediaSessionStateChanged() argument
236 setCurrentMediaState(state); in onMediaSessionStateChanged()
238 listener.accept(state); in onMediaSessionStateChanged()
242 private void onMediaSessionSkipTo(int state) { in onMediaSessionSkipTo() argument
247 switch (state) { in onMediaSessionSkipTo()
282 public void setCurrentMediaState(int state) { in setCurrentMediaState() argument
283 mCurrentMediaState = state; in setCurrentMediaState()
287 private Long getAvailableActions(int state) { in getAvailableActions() argument
288 switch (state) { in getAvailableActions()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeToolkit.kt291 private var state = MotionControlState.Start in <lambda>() variable
301 when (state) { in <lambda>()
309 when (state) { in <lambda>()
317 when (state) { in <lambda>()
326 when (state) { in <lambda>()
329 state = MotionControlState.WaitingToPlay in <lambda>()
334 state = MotionControlState.WaitingToRecord in <lambda>()
340 state = MotionControlState.Recording in <lambda>()
345 state = MotionControlState.Ended in <lambda>()
356 if (state == MotionControlState.Recording && recordingJob.isCompleted) { in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceEntryTest.kt208 var state = trace.getEntryAt(Timestamps.from(1698103534193295897, 0L)) in canDetectOccludedByLayerWithinThreshold() variable
209 var navBar = state.getLayerById(85) ?: error("Nav bar layer not found") in canDetectOccludedByLayerWithinThreshold()
215 state = trace.getEntryAt(Timestamps.from(1698103534183177977, 0L)) in canDetectOccludedByLayerWithinThreshold()
216 navBar = state.getLayerById(85) ?: error("Nav bar layer not found") in canDetectOccludedByLayerWithinThreshold()
227 var state = in canDetectCoveredLayerByAccountingForAlpha() variable
234 var coveredLayer = state.getLayerById(693) ?: error("Activity layer not found") in canDetectCoveredLayerByAccountingForAlpha()
235 var coveringLayer = state.getLayerById(690) ?: error("Splash Screen layer not found") in canDetectCoveredLayerByAccountingForAlpha()
/platform_testing/libraries/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/
DVehicleHardKeysHelperImpl.java212 public void setDrivingState(DrivingState state) { in setDrivingState() argument
213 if (state == DrivingState.UNKNOWN) { in setDrivingState()
215 } else if (state == DrivingState.PARKED) { in setDrivingState()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DTvLauncherStrategy.java315 HomeRowState state = HomeRowState.DEFAULT; in getHomeRowState() local
318 state = HomeRowState.ZOOMED_OUT; in getHomeRowState()
320 state = HomeRowState.SELECTED; in getHomeRowState()
323 Log.d(LOG_TAG, String.format("[HomeRowState]%s", state)); in getHomeRowState()
324 return state; in getHomeRowState()
328 HomeControllerState state = HomeControllerState.DEFAULT; in getHomeControllerState() local
331 state = HomeControllerState.CHANNEL_LOGO; in getHomeControllerState()
333 state = HomeControllerState.MOVE_CHANNEL; in getHomeControllerState()
335 state = HomeControllerState.CHANNEL_ACTIONS; in getHomeControllerState()
337 Log.d(LOG_TAG, String.format("[HomeControllerState]%s", state)); in getHomeControllerState()
[all …]
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DTvLauncherStrategy.java344 HomeRowState state = HomeRowState.DEFAULT; in getHomeRowState() local
347 state = HomeRowState.ZOOMED_OUT; in getHomeRowState()
349 state = HomeRowState.SELECTED; in getHomeRowState()
352 Log.d(LOG_TAG, String.format("[HomeRowState]%s", state)); in getHomeRowState()
353 return state; in getHomeRowState()
357 HomeControllerState state = HomeControllerState.DEFAULT; in getHomeControllerState() local
360 state = HomeControllerState.CHANNEL_LOGO; in getHomeControllerState()
362 state = HomeControllerState.MOVE_CHANNEL; in getHomeControllerState()
364 state = HomeControllerState.CHANNEL_ACTIONS; in getHomeControllerState()
366 Log.d(LOG_TAG, String.format("[HomeControllerState]%s", state)); in getHomeControllerState()
[all …]
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsAppInfoHelperImpl.java188 public void enableDisableApplication(State state) { in enableDisableApplication() argument
200 String.format("Scroll on App info to find %s", state)); in enableDisableApplication()
204 if (state == State.ENABLE) { in enableDisableApplication()
257 public void setAppPermission(String permission, State state) { in setAppPermission() argument
269 String.format("Scroll on %s permission to find %s", permission, state)); in setAppPermission()
281 String.format("Scroll on %s permission to find %s", permission, state)); in setAppPermission()
288 if (state == State.ENABLE) { in setAppPermission()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DIQuickSettingsHelper.java92 public void toggleSetting(Setting setting, String tileName, State state); in toggleSetting() argument
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWindowManagerStateHelper.kt269 activityStates.any { state -> in getWindowRegion() method
270 it.wmState.hasActivityState(componentMatcher, state) in getWindowRegion()
475 state: DeviceStateDump, in shouldWaitForActivities()
488 state.wmState.getMatchingVisibleWindowState( in shouldWaitForActivities()
497 } else if (!state.wmState.isActivityVisible(activityState.activityMatcher)) { in shouldWaitForActivities()
/platform_testing/libraries/sts-common-util/sts-sdk/package/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/
DConfigGenerator.java307 public ConfigGenerator setKeyboardState(KeyboardState state) { in setKeyboardState() argument
308 mKeyboardState = state; in setKeyboardState()
/platform_testing/libraries/automotive-helpers/media-center-app-helper/src/android/platform/helpers/
DMediaCenterHelperImpl.java414 PlaybackState state = controllers.get(0).getPlaybackState(); in isPlaying() local
415 return state.getState() == PlaybackState.STATE_PLAYING; in isPlaying()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DWindowManagerStateBuilder.kt309 state = proto.state, in <lambda>()
/platform_testing/libraries/flicker/test/assets/testdata/scenarios/DebugScenario/
Deventlog.winscope49 …,158712484,434,com.android.server.wm.flicker.testapp/.SimpleActivity,proc died without state saved]
/platform_testing/libraries/flicker/utils/test/assets/testdata/
Deventlog.winscope47 …0,253887780,247,com.google.android.apps.messaging/.home.HomeActivity,proc died without state saved]
126 …0,129161797,248,com.google.android.apps.messaging/.home.HomeActivity,proc died without state saved]
/platform_testing/libraries/flicker/test/assets/testdata/
Deventlog.winscope47 …0,253887780,247,com.google.android.apps.messaging/.home.HomeActivity,proc died without state saved]
126 …0,129161797,248,com.google.android.apps.messaging/.home.HomeActivity,proc died without state saved]

12