/frameworks/base/services/robotests/src/com/android/server/location/ |
H A D | GnssGeofenceProviderTest.java | 5 import static org.mockito.Matchers.eq; 64 verify(mMockNative).addGeofence(eq(GEOFENCE_ID), eq(LATITUDE), eq(LONGITUDE), 65 eq(RADIUS), eq(LAST_TRANSITION), eq(MONITOR_TRANSITIONS), 66 eq(NOTIFICATION_RESPONSIVENESS), 67 eq(UNKNOWN_TIMER)); 73 verify(mMockNative).pauseGeofence(eq(GEOFENCE_I [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/ |
H A D | ApduSenderTest.java | 25 import static org.mockito.ArgumentMatchers.eq; 119 verify(mMockCi).iccOpenLogicalChannel(eq(aid), anyInt(), any()); 120 verify(mMockCi).iccCloseLogicalChannel(eq(channel), any()); 138 verify(mMockCi).iccOpenLogicalChannel(eq(aid), anyInt(), any()); 155 verify(mMockCi).iccTransmitApduLogicalChannel(eq(channel), eq(channel | 10), eq(1), eq(2), 156 eq(3), eq( [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
H A D | ImsServiceControllerTest.java | 25 import static org.mockito.Matchers.eq; 122 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); 162 verify(mMockServiceControllerBinder).createMMTelFeature(eq(1)); 163 verify(mMockServiceControllerBinder).createRcsFeature(eq(1)); 164 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(1), 165 eq(mTestImsServiceController)); 166 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(2), 167 eq(mTestImsServiceControlle [all...] |
H A D | ImsManagerTest.java | 21 import static org.mockito.ArgumentMatchers.eq; 125 eq(SubscriptionManager.WFC_IMS_ENABLED), 132 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), 138 eq(SubscriptionManager.WFC_IMS_MODE), 144 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), 150 eq(SubscriptionManager.VT_IMS_ENABLED), 160 eq(mSubId[0]), 161 eq(SubscriptionManager.WFC_IMS_MODE), 162 eq("1")); 166 eq(mSubI [all...] |
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | HeaderRecyclerViewTest.java | 19 import static org.mockito.Matchers.eq; 77 verify(mObserver).onItemRangeChanged(eq(12), eq(1), eq(null)); 89 verify(mObserver).onItemRangeChanged(eq(13), eq(1), eq(null)); 99 verify(mObserver).onItemRangeInserted(eq(12), eq(1)); 111 verify(mObserver).onItemRangeInserted(eq(1 [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/ |
H A D | TunablePaddingTest.java | 18 import static org.mockito.ArgumentMatchers.eq; 68 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); 74 verify(mView).setPadding(eq(0), eq(DEFAULT), eq(0), eq(0)); 80 verify(mView).setPadding(eq( [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
H A D | ItemGroupTest.java | 22 import static org.mockito.Matchers.eq; 68 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(0), eq(1)); 69 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(1), eq(1)); 84 verify(mObserver).onItemRangeRemoved(eq(mItemGroup), eq(1), eq( [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | CommandQueueTest.java | 17 import static org.mockito.Matchers.eq; 46 verify(mCallbacks).disable(eq(0), eq(0), eq(false)); 60 verify(mCallbacks).setIcon(eq(slot), eq(icon)); 64 verify(mCallbacks).removeIcon(eq(slot)); 73 verify(mCallbacks).disable(eq(state1), eq(state2), eq(tru [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | PasspointEventHandlerTest.java | 22 import static org.mockito.Matchers.eq; 77 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 82 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 100 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtype [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/textservice/ |
H A D | LazyIntToIntMapTest.java | 21 import static org.mockito.ArgumentMatchers.eq; 43 when(func.applyAsInt(eq(1))).thenReturn(11); 44 when(func.applyAsInt(eq(2))).thenReturn(22); 51 verify(func, times(0)).applyAsInt(eq(1)); 52 verify(func, times(1)).applyAsInt(eq(2)); 56 verify(func, times(0)).applyAsInt(eq(1)); 57 verify(func, times(1)).applyAsInt(eq(2)); 63 when(func1.applyAsInt(eq(1))).thenReturn(11); 64 when(func1.applyAsInt(eq(2))).thenReturn(22); 67 when(func2.applyAsInt(eq( [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
H A D | PriorityDumpTest.java | 23 import static org.mockito.Matchers.eq; 63 verify(mDumper).dump(same(mFd), same(mPw), eq(null), /* asProto= */ eq(false)); 69 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARGS), /* asProto= */ eq(false)); 78 verify(mDumper).dump(same(mFd), same(mPw), eq(args), /* asProto= */ eq(false)); 87 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARGS), /* asProto= */ eq(false)); 96 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARG [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
H A D | DozeWallpaperStateTest.java | 20 import static org.mockito.ArgumentMatchers.eq; 62 verify(mIWallpaperManager).setInAmbientMode(eq(true), anyBoolean()); 64 verify(mIWallpaperManager).setInAmbientMode(eq(false), anyBoolean()); 69 verify(mIWallpaperManager).setInAmbientMode(eq(false), anyBoolean()); 81 verify(mIWallpaperManager).setInAmbientMode(eq(true), eq(true)); 84 verify(mIWallpaperManager).setInAmbientMode(eq(false), eq(true)); 96 verify(mIWallpaperManager).setInAmbientMode(eq(true), eq(fals [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | DeviceStateMonitorTest.java | 23 import static org.mockito.Matchers.eq; 87 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(6), 96 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), 99 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), 100 eq(true), nullable(Message.class)); 110 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(CHARGING_STATE), 111 eq(true), nullable(Message.class)); 118 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), 121 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), 122 eq(tru [all...] |
H A D | SubscriptionInfoUpdaterTest.java | 29 import static org.mockito.Mockito.eq; 169 .getSubInfoUsingSlotIndexPrivileged(eq(FAKE_SUB_ID_1), anyBoolean()); 175 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), 176 eq(SubscriptionManager.INVALID_SIM_SLOT_INDEX)); 180 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), 181 eq(IccCardConstants.INTENT_VALUE_ICC_ABSENT)); 196 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), 197 eq(IccCardConstants.INTENT_VALUE_ICC_UNKNOWN)); 212 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), 213 eq(IccCardConstant [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | SelfRecoveryTest.java | 50 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); 56 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); 79 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); 94 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), 99 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), 105 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), 112 verify(mWifiController, never()).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), 114 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); 118 verify(mWifiController, never()).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), 120 verify(mWifiController).sendMessage(eq(WifiControlle [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | ActivityStartControllerTests.java | 34 import static org.mockito.Mockito.eq; 88 verify(mStarter, times(1)).startResolvedActivity(eq(activity), eq(source), eq(null), 89 eq(null), eq(startFlags), eq(resume), eq(null), eq(null), eq(nul [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
H A D | Nat464XlatTest.java | 23 import static org.mockito.Mockito.eq; 83 when(mNms.getInterfaceConfig(eq(STACKED_IFACE))).thenReturn(mConfig); 121 verify(mNms).registerObserver(eq(nat)); 122 verify(mNms).startClatd(eq(BASE_IFACE)); 128 verify(mNms).getInterfaceConfig(eq(STACKED_IFACE)); 129 verify(mConnectivity).handleUpdateLinkProperties(eq(mNai), c.capture()); 137 verify(mNms).stopClatd(eq(BASE_IFACE)); 143 verify(mNms).unregisterObserver(eq(nat)); 144 verify(mConnectivity, times(2)).handleUpdateLinkProperties(eq(mNai), c.capture()); 160 verify(mNms).registerObserver(eq(na [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | WorkLockActivityControllerTest.java | 20 import static org.mockito.Mockito.eq; 118 eq((IApplicationThread) null), 119 eq((String) null), 121 eq((String) null), 122 eq((IBinder) null), 123 eq((String) null), 126 eq((ProfilerInfo) null), 128 eq(UserHandle.USER_CURRENT)); 133 eq((IApplicationThread) null), 134 eq((Strin [all...] |
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | ItemTest.java | 24 import static org.mockito.Matchers.eq; 112 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 115 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 118 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq( [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
H A D | WifiAwareStateManagerTest.java | 33 import static org.mockito.ArgumentMatchers.eq; 161 when(mMockContext.checkPermission(eq(android.Manifest.permission.ACCESS_FINE_LOCATION), 163 when(mMockContext.checkPermission(eq(Manifest.permission.ACCESS_COARSE_LOCATION), 165 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), 167 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), 276 eq(configRequest), eq(false), eq(true), eq(true), eq(fals [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/ |
H A D | BatteryMeterDrawableBaseTest.java | 20 import static org.mockito.Matchers.eq; 68 verify(mCanvas).drawText(eq("!"), eq(25f), eq(43.399998f), any(Paint.class)); 82 verify(mCanvas).drawText(eq("20"), eq(25f), eq(42.6f), any(Paint.class));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | TaskSnapshotSurfaceTest.java | 25 import static org.mockito.Matchers.eq; 83 verify(mockCanvas).drawRect(eq(100.0f), eq(0.0f), eq(200.0f), eq(100.0f), any()); 93 verify(mockCanvas).drawRect(eq(0.0f), eq(100.0f), eq(100.0f), eq(200.0f), any()); 103 verify(mockCanvas).drawRect(eq(100. [all...] |
/frameworks/base/tests/net/java/com/android/server/ |
H A D | IpSecServiceParameterizedTest.java | 24 import static org.mockito.Matchers.eq; 147 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("blessedPackage"))) 151 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("systemPackage"))) 154 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("badPackage"))) 160 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) 172 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) 183 eq(spiResp.resourceId), 186 eq(TEST_SP [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
H A D | RttServiceImplTest.java | 31 import static org.mockito.ArgumentMatchers.eq; 191 doNothing().when(mFrameworkFacade).registerContentObserver(eq(mockContext), any(), 194 eq(mockContext), 195 eq(Settings.Global.WIFI_RTT_BACKGROUND_EXEC_GAP_MS), 208 when(mockPermissionUtil.checkCallersLocationPermission(eq(mPackageName), 271 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); 289 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(requests[i])); 290 verify(mockMetrics).recordResult(eq(request [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/ |
H A D | ConsecutiveTapsGestureDetectorTest.java | 19 import static org.mockito.Matchers.eq; 66 inOrder.verify(mListener).onConsecutiveTaps(eq(1)); 69 inOrder.verify(mListener).onConsecutiveTaps(eq(2)); 72 inOrder.verify(mListener).onConsecutiveTaps(eq(3)); 75 inOrder.verify(mListener).onConsecutiveTaps(eq(4)); 83 inOrder.verify(mListener).onConsecutiveTaps(eq(1)); 86 inOrder.verify(mListener).onConsecutiveTaps(eq(2)); 89 inOrder.verify(mListener).onConsecutiveTaps(eq(1)); 92 inOrder.verify(mListener).onConsecutiveTaps(eq(2)); 100 inOrder.verify(mListener).onConsecutiveTaps(eq( [all...] |