/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | DevicePolicyManagerWrapper.java | 45 DevicePolicyManager spy = sSpies.get(context); in getWrapper() local 46 if (spy != null) { in getWrapper() 48 return spy; in getWrapper() 51 spy = Mockito.spy(dpm); in getWrapper() 52 String spyString = "DevicePolicyManagerWrapper#" + System.identityHashCode(spy); in getWrapper() 61 doReturn(spyString).when(spy).toString(); in getWrapper() 64 doAnswer(answer).when(spy).isAdminActive(any()); in getWrapper() 65 doAnswer(answer).when(spy).isDeviceOwnerApp(any()); in getWrapper() 66 doAnswer(answer).when(spy).isManagedProfile(any()); in getWrapper() 67 doAnswer(answer).when(spy).isProfileOwnerApp(any()); in getWrapper() [all …]
|
D | WifiManagerWrapper.java | 44 WifiManager spy = sSpies.get(context); in getWrapper() local 45 if (spy != null) { in getWrapper() 47 return spy; in getWrapper() 50 spy = Mockito.spy(manager); in getWrapper() 51 String spyString = "WifiManagerWrapper#" + System.identityHashCode(spy); in getWrapper() 59 doReturn(spyString).when(spy).toString(); in getWrapper() 62 doAnswer(answer).when(spy).addNetwork(any()); in getWrapper() 63 doAnswer(answer).when(spy).enableNetwork(anyInt(), anyBoolean()); in getWrapper() 64 doAnswer(answer).when(spy).removeNetwork(anyInt()); in getWrapper() 65 doAnswer(answer).when(spy).getConfiguredNetworks(); in getWrapper() [all …]
|
D | HardwarePropertiesManagerWrapper.java | 44 HardwarePropertiesManager spy = sSpies.get(context); in getWrapper() local 45 if (spy != null) { in getWrapper() 47 return spy; in getWrapper() 50 spy = Mockito.spy(manager); in getWrapper() 51 String spyString = "HardwarePropertiesManagerWrapper#" + System.identityHashCode(spy); in getWrapper() 59 doReturn(spyString).when(spy).toString(); in getWrapper() 62 doAnswer(answer).when(spy).getCpuUsages(); in getWrapper() 63 doAnswer(answer).when(spy).getDeviceTemperatures(anyInt(), anyInt()); in getWrapper() 64 doAnswer(answer).when(spy).getFanSpeeds(); in getWrapper() 70 sSpies.put(context, spy); in getWrapper() [all …]
|
D | UserManagerWrapper.java | 42 UserManager spy = sSpies.get(context); in getWrapper() local 43 if (spy != null) { in getWrapper() 45 return spy; in getWrapper() 48 spy = Mockito.spy(manager); in getWrapper() 49 String spyString = "UserManagerWrapper#" + System.identityHashCode(spy); in getWrapper() 57 doReturn(spyString).when(spy).toString(); in getWrapper() 60 doAnswer(answer).when(spy).getApplicationRestrictions(any()); in getWrapper() 66 sSpies.put(context, spy); in getWrapper() 69 return spy; in getWrapper()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityInputConnectionTest.java | 130 final InputConnection spy = Mockito.spy(new NoOpInputConnection()); in setUp() 132 mLastInputConnectionSpy.set(spy); in setUp() 134 return new InputConnectionSplitter(ic, spy); in setUp() 154 final InputConnection spy = mLastInputConnectionSpy.get(); in resetAndGetLastInputConnectionSpy() local 155 Mockito.reset(spy); in resetAndGetLastInputConnectionSpy() 156 return spy; in resetAndGetLastInputConnectionSpy() 162 final InputConnection spy = resetAndGetLastInputConnectionSpy(); in testCommitText() local 165 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testCommitText() 172 final InputConnection spy = resetAndGetLastInputConnectionSpy(); in testSetSelection() local 175 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)).setSelection(1, 2); in testSetSelection() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableContainerStateTest.java | 27 import static org.mockito.Mockito.spy; 70 Drawable dr0 = spy(new ColorDrawable(Color.RED)); in testAddChild() 82 Drawable dr1 = spy(new ColorDrawable(Color.BLUE)); in testAddChild() 110 Drawable dr0 = spy(new ColorDrawable(Color.RED)); in testIsStateful() 116 Drawable dr1 = spy(new ColorDrawable(Color.GREEN)); in testIsStateful() 122 Drawable dr2 = spy(new ColorDrawable(Color.BLUE)); in testIsStateful() 128 Drawable dr3 = spy(new ColorDrawable(Color.YELLOW)); in testIsStateful() 203 Drawable dr0 = spy(new ColorDrawable(Color.RED)); in testConstantHeightsAndWidths() 215 Drawable dr1 = spy(new ColorDrawable(Color.BLUE)); in testConstantHeightsAndWidths() 227 Drawable dr2 = spy(new ColorDrawable(Color.GREEN)); in testConstantHeightsAndWidths() [all …]
|
D | DrawableContainerTest.java | 36 import static org.mockito.Mockito.spy; 106 Drawable dr = spy(new ColorDrawable(Color.WHITE)); in testDraw() 182 Drawable dr0 = spy(new ColorDrawable(Color.BLUE)); in testGetPadding() 189 Drawable dr1 = spy(new ColorDrawable(Color.RED)); in testGetPadding() 231 Drawable mockDrawable = spy(new ColorDrawable(Color.BLACK)); in testSetAlpha() 251 Drawable dr = spy(new ColorDrawable(Color.BLUE)); in testSetDither() 309 Drawable mockDrawable = spy(new ColorDrawable(Color.MAGENTA)); in testSetColorFilter() 329 Drawable dr = spy(new ColorDrawable(Color.GREEN)); in testSetTint() 341 Drawable dr = spy(new ColorDrawable(Color.GREEN)); in testSetBlendMode() 385 Drawable dr0 = spy(new ColorDrawable(Color.YELLOW)); in testIsStateful() [all …]
|
D | DrawableWrapperTest.java | 31 import static org.mockito.Mockito.spy; 168 Drawable mockDrawable = spy(new ColorDrawable(Color.BLUE)); in testDraw() 201 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetPadding() 229 Drawable mockDrawable = spy(new ColorDrawable(Color.YELLOW)); in testSetVisible() 251 Drawable mockDrawable = spy(new ColorDrawable(Color.MAGENTA)); in testSetAlpha() 269 Drawable mockDrawable = spy(new ColorDrawable(Color.GRAY)); in testSetColorFilter() 283 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetOpacity() 294 Drawable mockDrawable = spy(new ColorDrawable(Color.BLACK)); in testIsStateful() 374 Drawable mockDrawable = spy(new ColorDrawable(Color.WHITE)); in testGetIntrinsicWidth() 384 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetIntrinsicHeight()
|
D | Drawable_ConstantStateTest.java | 22 import static org.mockito.Mockito.spy; 46 MockConstantState mock = spy(new MockConstantState()); in testNewDrawable()
|
D | ScaleDrawableTest.java | 34 import static org.mockito.Mockito.spy; 152 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testDraw() 190 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetPadding() 208 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testSetVisible() 229 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testSetAlpha() 247 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testSetColorFilter() 261 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetOpacity() 272 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testIsStateful() 402 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetIntrinsicWidth() 412 Drawable mockDrawable = spy(new ColorDrawable(Color.RED)); in testGetIntrinsicHeight()
|
D | LayerDrawableTest.java | 37 import static org.mockito.Mockito.spy; 308 Drawable firstLayer = spy(new ColorDrawable(Color.YELLOW)); in testSetLayerInset() 311 Drawable secondLayer = spy(new ColorDrawable(Color.YELLOW)); in testSetLayerInset() 406 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testDraw() 407 Drawable mockDrawable2 = spy(new ColorDrawable(Color.RED)); in testDraw() 514 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testSetDither() 515 Drawable mockDrawable2 = spy(new ColorDrawable(Color.BLACK)); in testSetDither() 560 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testSetAlpha() 561 Drawable mockDrawable2 = spy(new ColorDrawable(Color.BLACK)); in testSetAlpha() 578 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testSetColorFilter() [all …]
|
D | ClipDrawableTest.java | 30 import static org.mockito.Mockito.spy; 80 Drawable mockDrawable = spy(new ColorDrawable(Color.GREEN)); in testDraw() 118 Drawable mockDrawable = spy(new ColorDrawable(Color.GREEN)); in testGetConstantState() 164 Drawable dr = spy(new ColorDrawable(Color.GREEN)); in testGetOpacity() 338 Drawable mockDrawable = spy(new ColorDrawable(Color.GREEN)); in testSetColorFilter()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelIntegrationTest.java | 19 import static org.mockito.Mockito.spy; 160 ParcelTest.SimpleParcelable spy = spy(new ParcelTest.SimpleParcelable(42)); in testWriteTypedList() local 161 list.add(spy); in testWriteTypedList() 165 verify(spy).writeToParcel(p, flags); in testWriteTypedList()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SearchView_CursorTest.java | 24 import static org.mockito.Mockito.spy; 192 spy(new MyQueryTextListener()); in testSuggestionFiltering() 212 spy(new MySuggestionListener()); in testSuggestionSelection() 216 spy(new MyQueryTextListener()); in testSuggestionSelection() 267 spy(new MySuggestionListener()); in testSuggestionEnterKey() 271 spy(new MyQueryTextListener()); in testSuggestionEnterKey()
|
D | ProgressBarTest.java | 29 import static org.mockito.Mockito.spy; 206 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testAccessIndeterminateDrawable() 223 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.BLUE)); in testAccessProgressDrawable() 400 ProgressBar mockProgressBar = spy(new ProgressBar(mActivity)); in testInvalidateDrawable() 402 Drawable mockDrawable1 = spy(new ColorDrawable(Color.RED)); in testInvalidateDrawable() 403 Drawable mockDrawable2 = spy(new ColorDrawable(Color.GREEN)); in testInvalidateDrawable() 471 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.BLACK)); in testProgressTint() 525 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.BLACK)); in testProgressTintBlendMode() 570 Drawable mockIndeterminateDrawable = spy(new ColorDrawable(Color.MAGENTA)); in testIndeterminateTint() 605 Drawable mockIndeterminateDrawable = spy(new ColorDrawable(Color.MAGENTA)); in testIndeterminateTintBlendMode()
|
D | AbsSeekBarTest.java | 25 import static org.mockito.Mockito.spy; 167 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testDrawableStateChanged() 324 Drawable mockThumb = spy(new ColorDrawable(Color.BLUE)); in testThumbTint() 355 Drawable mockThumb = spy(new ColorDrawable(Color.BLUE)); in testThumbTintBlendMode() 387 Drawable mockTickMark = spy(new ColorDrawable(Color.BLUE)); in testTickMarkTint() 419 Drawable mockTickMark = spy(new ColorDrawable(Color.BLUE)); in testTickMarkTintBlendMode()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | LoginFilterTest.java | 26 import static org.mockito.Mockito.spy; 48 LoginFilter loginFilter = spy(new UsernameFilterGeneric()); in testFilter() 70 loginFilter = spy(new UsernameFilterGeneric(true)); in testFilter() 84 loginFilter = spy(new UsernameFilterGeneric(false)); in testFilter()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TargetActivity.java | 50 public static List<TargetActivity> sCreated = Mockito.spy(new ArrayList<>()); 59 sCreated = Mockito.spy(new ArrayList<>()); in clearCreated()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerConfigActivityTest.java | 21 import static org.mockito.Mockito.spy; 73 LauncherActivityInfo lai = spy(originalLai); in testIntentSenderNotCreatedForWrongActivity()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraSessionUtils.java | 144 return spy(new CaptureCallback()); in getMockCaptureListener() 151 return spy(new SessionListener()); in getMockSessionListener()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ActionModeTest.java | 30 import static org.mockito.Mockito.spy; 91 final ActionMode mockActionMode = spy(new MockActionMode()); in testInvalidateContentRectDoesNotInvalidateFull()
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderCursorTest.java | 24 import static org.mockito.Mockito.spy; 218 spy(new MultiChoiceClickListener(checkedTracker)); in testSetMultiChoiceItemsWithParamCursor()
|
/cts/common/device-side/bedstead/dpmwrapper/ |
D | Android.bp | 16 // Mockito spy to implement the IPC between users (so tests running on current user can call the
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationTestBase.java | 36 import static org.mockito.Mockito.spy; 315 spy(new AnimCallback(WindowInsetsAnimation.Callback.DISPATCH_MODE_STOP)); 356 mListener = spy(new InsetsListener()); in onCreate()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TextKeyListenerTest.java | 30 import static org.mockito.Mockito.spy; 101 final TextKeyListener mockTextKeyListener = spy( in testOnSpanAdded()
|