/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/notifcollection/ |
D | SelfTrackingLifetimeExtenderTest.kt | 82 verify(onStarted, never()).accept(entry1) in testNoExtend() 83 verify(onCanceled, never()).accept(entry1) in testNoExtend() 90 verify(onStarted).accept(entry1) in testExtendThenCancelForRepost() 91 verify(onCanceled, never()).accept(entry1) in testExtendThenCancelForRepost() 94 verify(onCanceled).accept(entry1) in testExtendThenCancelForRepost() 112 verify(onStarted).accept(entry1) in testExtendThenEnd() 116 verify(onCanceled, never()).accept(entry1) in testExtendThenEnd() 123 verify(onStarted).accept(entry1) in testExtendThenEndAfterDelay() 138 verify(onCanceled, never()).accept(entry1) in testExtendThenEndAfterDelay() 146 verify(onStarted).accept(entry1) in testExtendThenEndAll() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/ |
D | ListenerMultiplexerTest.java | 104 verify(consumer).accept(any(TestListenerRegistration.class)); in testAdd() 126 verify(consumer).accept(any(TestListenerRegistration.class)); in testReplace() 127 verify(oldConsumer, never()).accept(any(TestListenerRegistration.class)); in testReplace() 148 verify(consumer, never()).accept(any(TestListenerRegistration.class)); in testRemove() 167 verify(consumer1, never()).accept(any(TestListenerRegistration.class)); in testRemoveIf() 168 verify(consumer2, times(1)).accept(any(TestListenerRegistration.class)); in testRemoveIf() 169 verify(consumer3, times(1)).accept(any(TestListenerRegistration.class)); in testRemoveIf() 189 verify(consumer1, times(1)).accept(any(TestListenerRegistration.class)); in testMergeMultiple() 190 verify(consumer2, times(1)).accept(any(TestListenerRegistration.class)); in testMergeMultiple() 191 verify(consumer3, times(0)).accept(any(TestListenerRegistration.class)); in testMergeMultiple() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tare/ |
D | AgentTrendCalculatorTest.java | 150 trendCalculator.accept(event); in testNoAffordabilityNotes() 160 trendCalculator.accept(event); in testNoAffordabilityNotes() 184 trendCalculator.accept( in testNoTrendToThreshold() 187 trendCalculator.accept( in testNoTrendToThreshold() 202 trendCalculator.accept( in testNoTrendToThreshold() 205 trendCalculator.accept( in testNoTrendToThreshold() 233 trendCalculator.accept( in testSimpleTrendToThreshold_Balance() 236 trendCalculator.accept( in testSimpleTrendToThreshold_Balance() 249 trendCalculator.accept( in testSimpleTrendToThreshold_Balance() 252 trendCalculator.accept( in testSimpleTrendToThreshold_Balance() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | CookieManager.java | 66 public abstract void setAcceptCookie(boolean accept); in setAcceptCookie() argument 90 public abstract void setAcceptThirdPartyCookies(WebView webview, boolean accept); in setAcceptThirdPartyCookies() argument 314 public static void setAcceptFileSchemeCookies(boolean accept) { in setAcceptFileSchemeCookies() argument 315 getInstance().setAcceptFileSchemeCookiesImpl(accept); in setAcceptFileSchemeCookies() 325 protected abstract void setAcceptFileSchemeCookiesImpl(boolean accept); in setAcceptFileSchemeCookiesImpl() argument
|
/frameworks/base/services/tests/mockingservicestests/src/android/service/dreams/ |
D | DreamOverlayConnectionHandlerTest.java | 93 verify(consumer).accept(mOverlayClient); in consumerShouldRunImmediatelyWhenClientAvailable() 105 verify(consumer, never()).accept(mOverlayClient); in consumerShouldRunAfterClientAvailable() 109 verify(consumer).accept(mOverlayClient); in consumerShouldRunAfterClientAvailable() 121 verify(consumer, never()).accept(mOverlayClient); in consumerShouldNeverRunIfClientConnectsAndDisconnects() 127 verify(consumer, never()).accept(mOverlayClient); in consumerShouldNeverRunIfClientConnectsAndDisconnects() 141 verify(consumer, never()).accept(mOverlayClient); in consumerShouldNeverRunIfUnbindCalled() 172 verify(consumer, times(1)).accept(mOverlayClient); in consumerShouldRunAgainAfterReconnect() 177 verify(consumer, times(1)).accept(mOverlayClient); in consumerShouldRunAgainAfterReconnect() 183 verify(consumer, times(2)).accept(mOverlayClient); in consumerShouldRunAgainAfterReconnect() 196 verify(consumer, never()).accept(mOverlayClient); in consumerShouldNeverRunIfRemovedImmediately()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 845 incrementTime.accept(100); in testScreenBrightnessLocked_multiDisplay() 853 incrementTime.accept(50); in testScreenBrightnessLocked_multiDisplay() 856 incrementTime.accept(13); in testScreenBrightnessLocked_multiDisplay() 862 incrementTime.accept(44); in testScreenBrightnessLocked_multiDisplay() 865 incrementTime.accept(22); in testScreenBrightnessLocked_multiDisplay() 871 incrementTime.accept(33); in testScreenBrightnessLocked_multiDisplay() 874 incrementTime.accept(77); in testScreenBrightnessLocked_multiDisplay() 880 incrementTime.accept(88); in testScreenBrightnessLocked_multiDisplay() 883 incrementTime.accept(11); in testScreenBrightnessLocked_multiDisplay() 890 incrementTime.accept(99); in testScreenBrightnessLocked_multiDisplay() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | LockIconViewControllerWithCoroutinesTest.kt | 57 mUnderTest.mIsDozingCallback.accept(true) in testLockIcon_clearsIconOnAod_whenUdfpsNotEnrolled() 79 mUnderTest.mIsDozingCallback.accept(true) in testLockIcon_updateToAodLock_whenUdfpsEnrolled() 103 mUnderTest.mIsDozingCallback.accept(true) in testBurnInOffsetsUpdated_onDozeAmountChanged() 104 mUnderTest.mDozeTransitionCallback.accept(TransitionStep(LOCKSCREEN, AOD, 1f, FINISHED)) in testBurnInOffsetsUpdated_onDozeAmountChanged() 112 mUnderTest.mIsDozingCallback.accept(false) in testBurnInOffsetsUpdated_onDozeAmountChanged() 113 mUnderTest.mDozeTransitionCallback.accept(TransitionStep(AOD, LOCKSCREEN, 0f, FINISHED)) in testBurnInOffsetsUpdated_onDozeAmountChanged()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | SingleInstanceRemoteListener.java | 45 void accept(L l) throws RemoteException; in accept() method 62 mOnUnregisterCallback.accept(callableController); 97 mOnRegisterCallback.accept(mCallableController); in register() 109 mOnUnregisterCallback.accept(mCallableController); in unregister() 121 handler.accept(mListener); in call()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServiceRequestController.kt | 110 callback.accept(TILE_ALREADY_ADDED) in requestTileAdd() 120 callback.accept(response) in requestTileAdd() 140 responseHandler.accept(ADD_TILE) in createDialog() 142 responseHandler.accept(DONT_ADD_TILE) in createDialog() 149 setOnCancelListener { responseHandler.accept(DISMISSED) } in createDialog() 153 setOnDismissListener { responseHandler.accept(DISMISSED) } in createDialog() 185 override fun accept(t: T) { in accept() method in com.android.systemui.qs.external.TileServiceRequestController.SingleShotConsumer 187 consumer.accept(t) in accept()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplRebootTests.java | 146 setOverlay.accept(ConfigState.IMMUTABLE_ENABLED); in testMutableEnabledToImmutableEnabled() 147 setOverlay.accept(ConfigState.MUTABLE_ENABLED); in testMutableEnabledToImmutableEnabled() 150 setOverlay.accept(ConfigState.IMMUTABLE_ENABLED); in testMutableEnabledToImmutableEnabled() 153 setOverlay.accept(ConfigState.MUTABLE_DISABLED); in testMutableEnabledToImmutableEnabled() 156 setOverlay.accept(ConfigState.IMMUTABLE_ENABLED); in testMutableEnabledToImmutableEnabled() 159 setOverlay.accept(ConfigState.IMMUTABLE_DISABLED); in testMutableEnabledToImmutableEnabled() 162 setOverlay.accept(ConfigState.MUTABLE_ENABLED); in testMutableEnabledToImmutableEnabled() 165 setOverlay.accept(ConfigState.IMMUTABLE_DISABLED); in testMutableEnabledToImmutableEnabled() 168 setOverlay.accept(ConfigState.MUTABLE_DISABLED); in testMutableEnabledToImmutableEnabled() 171 setOverlay.accept(ConfigState.IMMUTABLE_DISABLED); in testMutableEnabledToImmutableEnabled()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsTest.java | 716 verify(visitor, times(1)).accept(eq(imageUri)); in visitUris() 717 verify(visitor, times(1)).accept(eq(icon1.getUri())); in visitUris() 718 verify(visitor, times(1)).accept(eq(icon2.getUri())); in visitUris() 719 verify(visitor, times(1)).accept(eq(icon3.getUri())); in visitUris() 720 verify(visitor, times(1)).accept(eq(icon4.getUri())); in visitUris() 732 verify(visitor, times(1)).accept(eq(iconLight.getUri())); in visitUris_themedIcons() 733 verify(visitor, times(1)).accept(eq(iconDark.getUri())); in visitUris_themedIcons() 753 verify(visitor, times(1)).accept(eq(imageUriI)); in visitUris_nestedViews() 754 verify(visitor, times(1)).accept(eq(icon1.getUri())); in visitUris_nestedViews() 755 verify(visitor, times(1)).accept(eq(icon2.getUri())); in visitUris_nestedViews() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FunctionalUtils.java | 87 handler.accept(t); in handleExceptions() 145 default void accept(T t) { 165 default void accept(T t) { 241 default void accept(A a, B b) { 260 void accept(Input input) throws ExceptionType; 275 void accept(Input input) throws ExceptionOne, ExceptionTwo;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest10.java | 69 assertTrue(mRequest.accept()); in testCreateShortcutResult_validResult() 93 assertTrue(mRequest.accept()); in testCreateShortcutResult_alreadyPinned() 117 assertTrue(mRequest.accept()); in testCreateShortcutResult_alreadyPinnedByAnother() 135 mRequest::accept); in testCreateShortcutResult_defaultLauncherChanges() 144 mRequest::accept); in testCreateShortcutResult_defaultLauncherChanges() 149 assertTrue(mRequest.accept()); in testCreateShortcutResult_defaultLauncherChanges()
|
/frameworks/base/core/java/android/permission/ |
D | LegacyPermissionManager.java | 138 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToLuiApp() 159 executor.execute(() -> callback.accept(true)); in revokeDefaultPermissionsFromLuiApps() 180 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToEnabledImsServices() 201 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToEnabledTelephonyDataServices() 222 executor.execute(() -> callback.accept(true)); in revokeDefaultPermissionsFromDisabledTelephonyDataServices() 243 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToEnabledCarrierApps()
|
D | PermissionControllerManager.java | 404 callback.accept(false); in setRuntimePermissionGrantStateByDeviceAdmin() 406 callback.accept(Boolean.TRUE.equals(setRuntimePermissionGrantStateResult)); in setRuntimePermissionGrantStateByDeviceAdmin() 440 callback.accept(EmptyArray.BYTE); in getRuntimePermissionBackup() 442 callback.accept(bytes); in getRuntimePermissionBackup() 522 callback.accept(true); in applyStagedRuntimePermissionBackup() 524 callback.accept( in applyStagedRuntimePermissionBackup() 697 callback.accept(false); in grantOrUpgradeDefaultRuntimePermissions() 699 callback.accept(Boolean.TRUE.equals(grantOrUpgradeDefaultRuntimePermissionsResult)); in grantOrUpgradeDefaultRuntimePermissions() 725 callback.accept(null); in getPrivilegesDescriptionStringForProfile() 727 callback.accept(description); in getPrivilegesDescriptionStringForProfile() [all …]
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 90 if (mFilter.accept(method)) { in addTestClass() 106 if (!(mFilter.accept(clazz))) { in addSingleTestMethod() 143 public boolean accept(Method method); in accept() method 150 public boolean accept(Class<?> clazz); in accept() method
|
D | UiAutomatorTestCaseFilter.java | 31 public boolean accept(Method method) { in accept() method in UiAutomatorTestCaseFilter 38 public boolean accept(Class<?> clazz) { in accept() method in UiAutomatorTestCaseFilter
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | StackScrollerDecorView.java | 104 runAfter.accept(cancelled); in setContentVisible() 110 runAfter.accept(true); in setContentVisible() 165 mSecondaryVisibilityEndRunnable.accept(true /* cancelled */); in setSecondaryVisible() 210 endRunnable.accept(true); in setViewVisible() 231 endRunnable.accept(mCancelled); in setViewVisible()
|
/frameworks/base/core/java/android/text/method/ |
D | NumberKeyListener.java | 57 char[] accept = getAcceptedChars(); in filter() local 62 if (!ok(accept, source.charAt(i))) { in filter() 85 if (!ok(accept, source.charAt(j))) { in filter() 93 protected static boolean ok(char[] accept, char c) { in ok() argument 94 for (int i = accept.length - 1; i >= 0; i--) { in ok() 95 if (accept[i] == c) { in ok()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipBoundsStateTest.java | 127 verify(callback).accept(true, 100, true); in testSetShelfVisibility_changed_callbackInvoked() 137 verify(callback).accept(true, 100, false); in testSetShelfVisibility_changedWithoutUpdateMovBounds_callbackInvoked() 148 verify(callback, never()).accept(true, 100, true); in testSetShelfVisibility_notChanged_callbackNotInvoked() 194 verify(callback).accept(currentBounds); in testSetBounds_updatesPipExclusionBounds() 198 verify(callback).accept(newBounds); in testSetBounds_updatesPipExclusionBounds()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsBindingControllerImplTest.kt | 110 override fun accept(t: List<Control>) {} in testBindAndLoad() method 122 override fun accept(t: List<Control>) {} in testBindAndLoad_cancel() method 140 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnComplete() method 160 override fun accept(t: List<Control>) {} in testLoad_onCompleteRemovesTimeout() method 179 override fun accept(t: List<Control>) {} in testLoad_onErrorRemovesTimeout() method 198 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnError() method 218 override fun accept(t: List<Control>) {} in testBindAndLoadSuggested() method 230 override fun accept(t: List<Control>) {} in testLoadSuggested_onCompleteRemovesTimeout() method 249 override fun accept(t: List<Control>) {} in testLoadSuggested_onErrorRemovesTimeout() method
|
/frameworks/base/core/java/android/window/ |
D | SurfaceSyncer.java | 128 syncRequestComplete.accept(transaction); in setupSync() 382 mSyncRequestCompleteCallback.accept(mTransaction); in checkIfSyncIsComplete() 401 transactionConsumer.accept(new Transaction()); in updateCallback() 406 oldCallback.accept(new Transaction()); in updateCallback() 407 transactionConsumer.accept(transaction); in updateCallback() 456 mFrameCallbackConsumer.accept( in onReadyToSync()
|
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/ |
D | DelegateClassAdapterTest.java | 103 cr.accept(cv, 0 /* flags */); in testNoOp() 160 cr.accept(cv, 0 /* flags */); in testConstructorAfterDelegate() 192 cr.accept(cv, 0 /* flags */); in testInnerConstructorAfterDelegate() 227 cr.accept(cv, 0 /* flags */); in testStaticInnerConstructorAfterDelegate() 259 cr.accept(cv, 0 /* flags */); in testDelegateStaticInitializer() 293 cr.accept(cv, 0 /* flags */); in testDelegateInnerClassStaticInitializer() 326 cr.accept(cv, 0 /* flags */); in testDelegateNative() 381 cr.accept(cvOuter, 0 /* flags */); in testDelegateInner() 389 cr.accept(cvInner, 0 /* flags */); in testDelegateInner() 463 cr.accept(cvOuter, 0 /* flags */); in testDelegateStaticInner() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
D | RestartDialogLayoutTest.java | 100 verify(mRestartCallback).accept(false); in testOnRestartButtonClickedWithoutCheckbox() 108 verify(mRestartCallback).accept(true); in testOnRestartButtonClickedWithCheckbox() 123 verify(mRestartCallback, never()).accept(anyBoolean()); in testOnDialogContainerClicked() 145 verify(mRestartCallback, never()).accept(anyBoolean()); in testSetRestartOnClickListenerNull()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/ |
D | AcceptOnceConsumer.java | 39 public void accept(@NonNull T t) { in accept() method in AcceptOnceConsumer 40 mCallback.accept(t); in accept()
|