/cts/tests/tests/text/src/android/text/method/cts/ |
D | BackspaceTest.java | 46 private void backspace(final EditorState state, int modifiers) throws Throwable { in backspace() argument 48 mTextView.setText(state.mText, BufferType.EDITABLE); in backspace() 50 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 59 state.mText = mTextView.getText(); in backspace() 60 state.mSelectionStart = mTextView.getSelectionStart(); in backspace() 61 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace() 66 EditorState state = new EditorState(); in testCRLF() local 69 state.setByString("U+000A |"); in testCRLF() 70 backspace(state, 0); in testCRLF() 71 state.assertEquals("|"); in testCRLF() [all …]
|
D | ForwardDeleteTest.java | 46 private void forwardDelete(final EditorState state, int modifiers) throws Throwable { in forwardDelete() argument 48 mTextView.setText(state.mText, BufferType.EDITABLE); in forwardDelete() 50 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 59 state.mText = mTextView.getText(); in forwardDelete() 60 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete() 61 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete() 66 EditorState state = new EditorState(); in testCRLF() local 69 state.setByString("| U+000A"); in testCRLF() 70 forwardDelete(state, 0); in testCRLF() 71 state.assertEquals("|"); in testCRLF() [all …]
|
D | MetaKeyKeyListenerTest.java | 135 long state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_SHIFT_ON); in testAdjustMetaAfterKeypress2() local 136 assertEquals(MetaKeyKeyListener.META_SHIFT_ON, state); in testAdjustMetaAfterKeypress2() 138 state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_ALT_ON); in testAdjustMetaAfterKeypress2() 139 assertEquals(MetaKeyKeyListener.META_ALT_ON, state); in testAdjustMetaAfterKeypress2() 141 state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_SYM_ON); in testAdjustMetaAfterKeypress2() 142 assertEquals(MetaKeyKeyListener.META_SYM_ON, state); in testAdjustMetaAfterKeypress2() 144 state = MetaKeyKeyListener.adjustMetaAfterKeypress(0); in testAdjustMetaAfterKeypress2() 145 assertEquals(0, state); in testAdjustMetaAfterKeypress2() 290 long state = MetaKeyKeyListener.resetLockedMeta(MetaKeyKeyListener.META_CAP_LOCKED); in testResetLockedMeta2() local 291 assertEquals(0, state); in testResetLockedMeta2() [all …]
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaCodecTunneledPlayer.java | 302 CodecState state; in addTrack() local 304 state = new CodecState((MediaTimeProvider)this, mVideoExtractor, in addTrack() 306 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local 308 state = new CodecState((MediaTimeProvider)this, mAudioExtractor, in addTrack() 310 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local 314 mAudioTrackState = state; in addTrack() 332 for (CodecState state : mVideoCodecStates.values()) { in startCodec() 333 state.startCodec(); in startCodec() 336 for (CodecState state : mAudioCodecStates.values()) { in startCodec() 337 state.startCodec(); in startCodec() [all …]
|
D | MediaCodecClearKeyPlayer.java | 432 CodecState state; in addTrack() local 434 state = new CodecState((MediaTimeProvider)this, mVideoExtractor, in addTrack() 437 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local 439 state = new CodecState((MediaTimeProvider)this, mAudioExtractor, in addTrack() 442 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local 446 mAudioTrackState = state; in addTrack() 498 for (CodecState state : mVideoCodecStates.values()) { in start() 499 state.startCodec(); in start() 500 state.play(); in start() 503 for (CodecState state : mAudioCodecStates.values()) { in start() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityTests.java | 63 waitAndAssertActivityStates(state(activity, ON_RESUME)); in testReleaseActivityInstance_visible() 82 waitAndAssertActivityStates(state(firstActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible() 89 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible() 103 waitAndAssertActivityStates(state(rootActivity, ON_STOP), in testFinishTask_FromRoot() 104 state(topActivity, ON_TOP_POSITION_GAINED)); in testFinishTask_FromRoot() 109 waitAndAssertActivityStates(state(rootActivity, ON_DESTROY), in testFinishTask_FromRoot() 110 state(topActivity, ON_DESTROY)); in testFinishTask_FromRoot() 131 waitAndAssertActivityStates(state(rootActivity, ON_PAUSE), in testFinishTask_FromRoot_TranslucentOnTop() 132 state(topActivity, ON_TOP_POSITION_GAINED)); in testFinishTask_FromRoot_TranslucentOnTop() 137 waitAndAssertActivityStates(state(rootActivity, ON_DESTROY), in testFinishTask_FromRoot_TranslucentOnTop() [all …]
|
D | ActivityLifecycleTopResumedStateTests.java | 124 waitAndAssertActivityStates(state(activity, ON_STOP)); in testTopPositionSwitchToActivityOnTop() 140 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 149 waitAndAssertActivityStates(state(secondActivityClass, ON_TOP_POSITION_GAINED), in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 150 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 166 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 176 waitAndAssertActivityStates(state(secondActivityClass, ON_TOP_POSITION_GAINED), in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 177 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 199 waitAndAssertActivityStates(state(activity, ON_PAUSE)); in testTopPositionSwitchToTranslucentActivityOnTop() 216 waitAndAssertActivityStates(state(baseActivity, ON_STOP)); in testTopPositionSwitchOnDoubleLaunch() 267 waitAndAssertActivityStates(state(baseActivity, ON_STOP)); in testTopPositionSwitchOnDoubleLaunchAndTopFinish() [all …]
|
D | ActivityLifecycleKeyguardTests.java | 87 waitAndAssertActivityStates(state(activity, ON_STOP)); in testKeyguardShowHide() 98 waitAndAssertActivityStates(state(activity, ON_RESUME)); in testKeyguardShowHide() 119 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen() 120 waitAndAssertActivityStates(state(secondaryActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen() 127 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverSplitScreen() 128 state(secondaryActivity, ON_RESUME)); in testKeyguardShowHideOverSplitScreen() 154 waitAndAssertActivityStates(state(firstActivity, ON_RESUME)); in testKeyguardShowHideOverPip() 161 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverPip() 162 waitAndAssertActivityStates(state(PipActivity.class, ON_STOP)); in testKeyguardShowHideOverPip() 171 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverPip() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 56 int state = mBluetoothAdapter.getConnectionState(); in setUp() local 59 + " state: " + state + " (" + btStateToString(state) + ")"); in setUp() 133 int state = mBluetoothAdapter.getState(); in disable() local 134 Log.v(TAG, "disable(): Current state: " + btStateToString(state)); in disable() 135 if (state == BluetoothAdapter.STATE_OFF) { in disable() 156 int state = Integer.MIN_VALUE; in assertDisabledAfterTimeout() local 158 state = mBluetoothAdapter.getState(); in assertDisabledAfterTimeout() 159 Log.v(TAG, "State: " + btStateToString(state) + " turningOff: " + turningOff); in assertDisabledAfterTimeout() 160 switch (state) { in assertDisabledAfterTimeout() 166 if (state != BluetoothAdapter.STATE_ON || turningOff) { in assertDisabledAfterTimeout() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/ |
D | GnssStatsTests.java | 89 AtomsProto.GnssStats state = atom.getGnssStats(); in testGnssStats() local 91 if ((state.getSvStatusReports() > 0 || state.getL5SvStatusReports() > 0) in testGnssStats() 92 && state.getLocationReports() == 0) { in testGnssStats() 97 assertThat(state.getLocationReports()).isGreaterThan((long) 0); in testGnssStats() 98 assertThat(state.getLocationFailureReports()).isAtLeast((long) 0); in testGnssStats() 99 assertThat(state.getTimeToFirstFixReports()).isGreaterThan((long) 0); in testGnssStats() 100 assertThat(state.getTimeToFirstFixMillis()).isGreaterThan((long) 0); in testGnssStats() 101 assertThat(state.getPositionAccuracyReports()).isGreaterThan((long) 0); in testGnssStats() 102 assertThat(state.getPositionAccuracyMeters()).isGreaterThan((long) 0); in testGnssStats() 103 assertThat(state.getTopFourAverageCn0Reports()).isGreaterThan((long) 0); in testGnssStats() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | PlaybackStateTest.java | 65 PlaybackState state = new PlaybackState.Builder().build(); in testBuilder() local 67 assertEquals(new ArrayList<PlaybackState.CustomAction>(), state.getCustomActions()); in testBuilder() 68 assertEquals(0, state.getState()); in testBuilder() 69 assertEquals(0L, state.getPosition()); in testBuilder() 70 assertEquals(0L, state.getBufferedPosition()); in testBuilder() 71 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder() 72 assertEquals(0L, state.getActions()); in testBuilder() 73 assertNull(state.getErrorMessage()); in testBuilder() 74 assertEquals(0L, state.getLastPositionUpdateTime()); in testBuilder() 75 assertEquals(MediaSession.QueueItem.UNKNOWN_ID, state.getActiveQueueItemId()); in testBuilder() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | AtomTestUtils.java | 71 public static void sendAppBreadcrumbReportedAtom(ITestDevice device, int state, int label) in sendAppBreadcrumbReportedAtom() argument 75 state); in sendAppBreadcrumbReportedAtom() 98 final int state = getStateFromAtom.apply(emd.getAtom()); in assertStatesOccurred() local 99 dataStates.add(state); in assertStatesOccurred() 100 dataStateCount.put(state, dataStateCount.get(state, 0) + 1); in assertStatesOccurred() 108 for (int state : states) { in assertStatesOccurred() 109 final int count = dataStateCount.get(state); in assertStatesOccurred() 110 assertWithMessage("Remaining count of result state (%s)", state) in assertStatesOccurred() 112 dataStateCount.put(state, count - 1); in assertStatesOccurred() 140 int state = getStateFromAtom.apply(atom); in assertStatesOccurredInOrder() local [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | DeviceStateUtils.java | 60 public static void assertValidState(int state) { in assertValidState() argument 62 state >= MINIMUM_DEVICE_STATE_IDENTIFIER); in assertValidState() 64 state <= MAXIMUM_DEVICE_STATE_IDENTIFIER); in assertValidState() 71 public static void assertValidDeviceState(DeviceState state) { in assertValidDeviceState() argument 73 state.getIdentifier() >= MINIMUM_DEVICE_STATE_IDENTIFIER); in assertValidDeviceState() 75 state.getIdentifier() <= MAXIMUM_DEVICE_STATE_IDENTIFIER); in assertValidDeviceState() 76 assertNotNull("Device state name was null", state.getName()); in assertValidDeviceState()
|
D | WindowManagerStateHelper.java | 127 (a) -> !a.state.equals(STATE_DESTROYED) in waitForAllNonHomeActivitiesToDestroyed() 176 waitForWithAmState(state -> state.getDreamTask() == null, "DreamActivity gone")); in waitForDreamGone() 179 public static boolean isKeyguardOccluded(WindowManagerState state) { in isKeyguardOccluded() argument 180 return state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY); in isKeyguardOccluded() 183 public static boolean isKeyguardShowingAndNotOccluded(WindowManagerState state) { in isKeyguardShowingAndNotOccluded() argument 184 return state.getKeyguardControllerState().keyguardShowing in isKeyguardShowingAndNotOccluded() 185 && state.getKeyguardServiceDelegateState().isKeyguardAwake() in isKeyguardShowingAndNotOccluded() 186 && !state.getKeyguardControllerState().mKeyguardGoingAway in isKeyguardShowingAndNotOccluded() 187 && !state.getKeyguardControllerState().aodShowing in isKeyguardShowingAndNotOccluded() 188 && !state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY); in isKeyguardShowingAndNotOccluded() [all …]
|
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/ |
D | ExternalStorageHelper.java | 29 String state = Environment.getExternalStorageState(); in isExternalStorageWritable() local 30 return Environment.MEDIA_MOUNTED.equals(state); in isExternalStorageWritable() 35 String state = Environment.getExternalStorageState(); in isExternalStorageReadable() local 36 return (Environment.MEDIA_MOUNTED.equals(state) || in isExternalStorageReadable() 37 Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)); in isExternalStorageReadable()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewZoomTest.java | 272 ScaleChangedState state = mWebViewClient.waitForNextScaleChange(); in testScaleChangeCallbackMatchesGetScale() local 275 state.mNewScale, mOnUiThread.getScale(), 0); in testScaleChangeCallbackMatchesGetScale() 332 ScaleChangedState state = waitForNextScaleChange(); in expectZoomBy() local 333 assertEquals(currentScale, state.mOldScale, 0); in expectZoomBy() 338 while (Math.abs(state.mNewScale - state.mOldScale) < PAGE_SCALE_EPSILON) { in expectZoomBy() 339 state = waitForNextScaleChange(); in expectZoomBy() 346 state.mNewScale, greaterThan(currentScale)); in expectZoomBy() 350 state.mNewScale, lessThan(currentScale)); in expectZoomBy() 355 if (Math.abs(nextScale - state.mNewScale) > PAGE_SCALE_EPSILON) { in expectZoomBy() 357 assertFalse(state.mCanZoomIn); in expectZoomBy() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/ |
D | PolicyEngineUtils.java | 56 DevicePolicyState state = dpm.getDevicePolicyState(); in getBooleanPolicyState() local 57 if (state.getPoliciesForUser(user).get(policyKey) != null) { in getBooleanPolicyState() 58 return (PolicyState<Boolean>) state.getPoliciesForUser(user).get(policyKey); in getBooleanPolicyState() 60 return (PolicyState<Boolean>) state.getPoliciesForUser(UserHandle.ALL) in getBooleanPolicyState() 75 DevicePolicyState state = dpm.getDevicePolicyState(); in getStringSetPolicyState() local 76 if (state.getPoliciesForUser(user).get(policyKey) != null) { in getStringSetPolicyState() 77 return (PolicyState<Set<String>>) state.getPoliciesForUser(user).get(policyKey); in getStringSetPolicyState() 79 return (PolicyState<Set<String>>) state.getPoliciesForUser(UserHandle.ALL) in getStringSetPolicyState() 94 DevicePolicyState state = dpm.getDevicePolicyState(); in getLockTaskPolicyState() local 95 return (PolicyState<LockTaskPolicy>) state.getPoliciesForUser(user).get(policyKey); in getLockTaskPolicyState() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 81 AtomsProto.ProcessMemoryState state = atom.getProcessMemoryState(); in testProcessMemoryState() local 82 if (state.getUid() != uid) { in testProcessMemoryState() 86 assertThat(state.getProcessName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testProcessMemoryState() 87 assertThat(state.getOomAdjScore()).isAtLeast(0); in testProcessMemoryState() 88 assertThat(state.getPageFault()).isAtLeast(0L); in testProcessMemoryState() 89 assertThat(state.getPageMajorFault()).isAtLeast(0L); in testProcessMemoryState() 90 assertThat(state.getRssInBytes()).isAtLeast(0L); in testProcessMemoryState() 91 assertThat(state.getCacheInBytes()).isAtLeast(0L); in testProcessMemoryState() 92 assertThat(state.getSwapInBytes()).isAtLeast(0L); in testProcessMemoryState() 120 AtomsProto.ProcessMemoryHighWaterMark state = atom.getProcessMemoryHighWaterMark(); in testProcessMemoryHighWaterMark() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
D | WidgetCtsProvider.java | 119 int state = sStateMap.get(widgetId); in gotoNextTest() local 122 state = state == STATE_COMPLETE ? state : state + 1; in gotoNextTest() 123 foundNextTest = shouldPerformTest(state); in gotoNextTest() 124 } while (state < STATE_COMPLETE && !foundNextTest); in gotoNextTest() 125 sStateMap.put(widgetId, state); in gotoNextTest() 128 private boolean shouldPerformTest(int state) { in shouldPerformTest() argument 129 if (state == STATE_VERIFY_SIZE_CALLBACK) { in shouldPerformTest() 132 } else if (state == STATE_VERIFY_RESIZE) { in shouldPerformTest() 135 } else if (state == STATE_VERIFY_COLLECTIONS in shouldPerformTest() 138 } else if (state == STATE_VERIFY_HOME_OR_KEYGUARD_CALLBACK in shouldPerformTest() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutTest.java | 1011 private void moveCursorToRightCursorableOffset(EditorState state) { in moveCursorToRightCursorableOffset() argument 1012 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToRightCursorableOffset() 1013 StaticLayout layout = StaticLayout.Builder.obtain(state.mText, 0, state.mText.length(), in moveCursorToRightCursorableOffset() 1015 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset() 1016 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset() 1019 private void moveCursorToLeftCursorableOffset(EditorState state) { in moveCursorToLeftCursorableOffset() argument 1020 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToLeftCursorableOffset() 1021 StaticLayout layout = StaticLayout.Builder.obtain(state.mText, 0, state.mText.length(), in moveCursorToLeftCursorableOffset() 1023 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart); in moveCursorToLeftCursorableOffset() 1024 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeBroadcastReceiveStateTest.java | 116 BluetoothLeBroadcastReceiveState state = createBroadcastReceiveStateForTest( in createBroadcastReceiveState() local 128 assertEquals(TEST_SOURCE_ID, state.getSourceId()); in createBroadcastReceiveState() 129 assertEquals(TEST_SOURCE_ADDRESS_TYPE, state.getSourceAddressType()); in createBroadcastReceiveState() 130 assertEquals(testDevice, state.getSourceDevice()); in createBroadcastReceiveState() 131 assertEquals(TEST_ADVERTISER_SID, state.getSourceAdvertisingSid()); in createBroadcastReceiveState() 132 assertEquals(TEST_BROADCAST_ID, state.getBroadcastId()); in createBroadcastReceiveState() 133 assertEquals(TEST_PA_SYNC_STATE, state.getPaSyncState()); in createBroadcastReceiveState() 134 assertEquals(TEST_BIG_ENCRYPTION_STATE, state.getBigEncryptionState()); in createBroadcastReceiveState() 135 assertNull(state.getBadCode()); in createBroadcastReceiveState() 136 assertEquals(TEST_NUM_SUBGROUPS, state.getNumSubgroups()); in createBroadcastReceiveState() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/ |
D | SharedConnectivitySettingsStateTest.java | 66 SharedConnectivitySettingsState state = buildSettingsStateBuilder(INTENT_ACTION).build(); in parcelOperation() local 69 state.writeToParcel(parcel, 0); in parcelOperation() 74 assertThat(fromParcel).isEqualTo(state); in parcelOperation() 75 assertThat(fromParcel.hashCode()).isEqualTo(state.hashCode()); in parcelOperation() 80 SharedConnectivitySettingsState state = buildSettingsStateBuilder(null).build(); in parcelOperation_noPendingIntent() local 83 state.writeToParcel(parcel, 0); in parcelOperation_noPendingIntent() 88 assertThat(fromParcel).isEqualTo(state); in parcelOperation_noPendingIntent() 89 assertThat(fromParcel.hashCode()).isEqualTo(state.hashCode()); in parcelOperation_noPendingIntent() 111 SharedConnectivitySettingsState state = buildSettingsStateBuilder(INTENT_ACTION).build(); in getMethods() local 114 assertThat(state.isInstantTetherEnabled()).isEqualTo(INSTANT_TETHER_STATE); in getMethods() [all …]
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_ae_precapture_trigger.py | 86 state = cap['metadata']['android.control.aeState'] 89 if state != _AE_INACTIVE: 97 state = cap['metadata']['android.control.aeState'] 100 if state not in [_AE_SEARCHING, _AE_CONVERGED]: 108 state = cap['metadata']['android.control.aeState'] 111 if state not in [_AE_SEARCHING, _AE_CONVERGED, _AE_PRECAPTURE]: 121 state = caps[-1]['metadata']['android.control.aeState'] 124 if state == _AE_CONVERGED: 126 if state != _AE_CONVERGED:
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/ |
D | PhotoPickerComponentUtils.java | 83 int state) throws Exception { in updateComponentEnabledSetting() argument 88 packageManager.setComponentEnabledSetting(componentName, state, in updateComponentEnabledSetting() 93 waitForComponentToBeInExpectedState(packageManager, componentName, state); in updateComponentEnabledSetting() 99 int state) throws Exception { in waitForComponentToBeInExpectedState() argument 101 isComponentEnabledSetAsExpected(packageManager, componentName, state), in waitForComponentToBeInExpectedState() 118 int state) { in isComponentEnabledSetAsExpected() argument 119 return packageManager.getComponentEnabledSetting(componentName) == state; in isComponentEnabledSetAsExpected()
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | ToastVerifier.kt | 36 return WindowManagerStateHelper().waitFor({ state: WindowManagerState -> in <lambda>() method 37 state.findFirstWindowWithType(TYPE_TOAST) != null in <lambda>() 42 return WindowManagerStateHelper().waitFor({ state: WindowManagerState -> in <lambda>() method 43 state.findFirstWindowWithType(TYPE_TOAST) == null in <lambda>()
|