Home
last modified time | relevance | path

Searched full:when (Results 1 – 25 of 32034) sorted by relevance

12345678910>>...1282

/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DFakeHdmiCecConfig.java42 doReturn(buildResources(context)).when(contextSpy).getResources(); in buildContext()
49 doReturn(true).when(resources).getBoolean( in buildResources()
51 doReturn(true).when(resources).getBoolean( in buildResources()
53 doReturn(true).when(resources).getBoolean( in buildResources()
55 doReturn(true).when(resources).getBoolean( in buildResources()
57 doReturn(false).when(resources).getBoolean( in buildResources()
60 doReturn(true).when(resources).getBoolean( in buildResources()
62 doReturn(true).when(resources).getBoolean( in buildResources()
64 doReturn(true).when(resources).getBoolean( in buildResources()
66 doReturn(true).when(resources).getBoolean( in buildResources()
[all …]
/aosp_15_r20/external/skia/tests/sksl/runtime/
H A DLoopInt.skrp24 trace_var TraceVar(colorRed) when $13 is true
26 trace_var TraceVar(colorGreen) when $13 is true
28 trace_var TraceVar(kZero) when $13 is true
30 trace_var TraceVar(kTen) when $13 is true
31 trace_enter TraceEnter(half4 main(float2 pos)) when $13 is true
32 trace_var TraceVar(pos) when $13 is true
36 trace_scope TraceScope(+1) when $0 is true
37 trace_line TraceLine(130) when $13 is true
46 trace_var TraceVar(five) when $13 is true
47 trace_line TraceLine(134) when $13 is true
[all …]
H A DLoopFloat.skrp24 trace_var TraceVar(colorRed) when $13 is true
26 trace_var TraceVar(colorGreen) when $13 is true
28 trace_var TraceVar(kZero) when $13 is true
30 trace_var TraceVar(kTen) when $13 is true
31 trace_enter TraceEnter(half4 main(float2 pos)) when $13 is true
32 trace_var TraceVar(pos) when $13 is true
36 trace_scope TraceScope(+1) when $0 is true
37 trace_line TraceLine(116) when $13 is true
45 trace_var TraceVar(five) when $13 is true
46 trace_line TraceLine(117) when $13 is true
[all …]
H A DPrecisionQualifiers.skrp43 trace_var TraceVar(colorGreen) when $13 is true
45 trace_var TraceVar(colorRed) when $13 is true
46 trace_enter TraceEnter(vec4 main(vec2 coords)) when $13 is true
47 trace_var TraceVar(coords) when $13 is true
51 trace_scope TraceScope(+1) when $0 is true
52 trace_line TraceLine(58) when $13 is true
54 trace_var TraceVar(zero) when $13 is true
55 trace_line TraceLine(59) when $13 is true
57 trace_var TraceVar(one) when $13 is true
58 trace_line TraceLine(60) when $13 is true
[all …]
/aosp_15_r20/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
H A DDevicePolicyManagerWrapper.java61 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()
68 doAnswer(answer).when(spy).isAffiliatedUser(); in getWrapper()
71 doAnswer(answer).when(spy).setTime(any(), anyLong()); in getWrapper()
72 doAnswer(answer).when(spy).setTimeZone(any(), any()); in getWrapper()
73 doAnswer(answer).when(spy).setGlobalSetting(any(), any(), any()); in getWrapper()
76 doAnswer(answer).when(spy).setUserControlDisabledPackages(any(), any()); in getWrapper()
[all …]
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/classifier/
H A DTypeClassifierTest.java34 import static org.mockito.Mockito.when;
63 when(mDataProvider.isVertical()).thenReturn(true); in testPass_QuickSettings()
64 when(mDataProvider.isUp()).thenReturn(false); in testPass_QuickSettings()
66 when(mDataProvider.isRight()).thenReturn(false); // right should cause no effect. in testPass_QuickSettings()
69 when(mDataProvider.isRight()).thenReturn(true); in testPass_QuickSettings()
75 when(mDataProvider.isVertical()).thenReturn(false); in testFalse_QuickSettings()
76 when(mDataProvider.isUp()).thenReturn(false); in testFalse_QuickSettings()
79 when(mDataProvider.isVertical()).thenReturn(true); in testFalse_QuickSettings()
80 when(mDataProvider.isUp()).thenReturn(true); in testFalse_QuickSettings()
86 when(mDataProvider.isVertical()).thenReturn(true); in testPass_PulseExpand()
[all …]
/aosp_15_r20/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DVoiceCallSessionStatsTest.java53 import static org.mockito.Mockito.when;
180 doReturn(CARRIER_ID_SLOT_0).when(mPhone).getCarrierId(); in setUp()
182 doReturn(CARRIER_ID_SLOT_1).when(mSecondPhone).getCarrierId(); in setUp()
183 doReturn(mContext).when(mSecondPhone).getContext(); in setUp()
184 doReturn(mSignalStrength).when(mSecondPhone).getSignalStrength(); in setUp()
185 doReturn(mSecondServiceStateTracker).when(mSecondPhone).getServiceStateTracker(); in setUp()
186 doReturn(mSecondServiceState).when(mSecondServiceStateTracker).getServiceState(); in setUp()
191 doReturn(true).when(mPhysicalSlot).isActive(); in setUp()
192 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
193 doReturn(false).when(mPhysicalSlot).isEuicc(); in setUp()
[all …]
/aosp_15_r20/external/libchrome-gestures/tools/logs/cr48/
H A Dreport-291598469-system_logs.mini.txt10 "when": 0.016999999999995907
30 "when": 0.0024599999999850297
36 "when": 0.00018774299999790856
42 "when": 0.01354120899998179
70 "when": 0.004586999999986574
76 "when": 2.9366000006803006e-05
82 "when": 0.01128439699999717
102 "when": 0.004541000000017448
108 "when": 0.0003085609999970984
114 "when": 0.011617204999993191
[all …]
H A Dcursor_freeze.dat21 "when": 0.016999999999825377
49 "when": 0.004459999999653519
55 "when": 0.012481691999710165
75 "when": 0.004785999999967316
81 "when": 0.00046745999998165644
87 "when": 0.011519322999447468
107 "when": 0.004444999999577703
113 "when": 0.0001618269998289179
119 "when": 0.011534865999692556
125 "when": 0.0003221490001124039
[all …]
/aosp_15_r20/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DBluetoothUtilsTest.java30 import static org.mockito.Mockito.when;
120 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
121 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in setUp()
122 when(mProfileManager.getLeAudioBroadcastProfile()).thenReturn(mBroadcast); in setUp()
123 when(mProfileManager.getLeAudioBroadcastAssistantProfile()).thenReturn(mAssistant); in setUp()
124 when(mProfileManager.getLeAudioProfile()).thenReturn(mLeAudioProfile); in setUp()
125 when(mA2dpProfile.getProfileId()).thenReturn(BluetoothProfile.A2DP); in setUp()
126 when(mLeAudioProfile.getProfileId()).thenReturn(BluetoothProfile.LE_AUDIO); in setUp()
127 when(mHearingAid.getProfileId()).thenReturn(BluetoothProfile.HEARING_AID); in setUp()
133 when(mBluetoothDevice.getMetadata(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) in getDerivedBtClassDrawableWithDescription_isAdvancedUntetheredDevice_returnHeadset()
[all …]
/aosp_15_r20/frameworks/proto_logging/stats/enums/adservices/common/
H A Dadservices_cel_enums.proto45 // Error occurred when unable to send result to the callback.
48 // Error occurred when failed to call the callback on Rate Limit Reached.
51 // Error occurred when calling package name is not found.
60 // Remote exception when calling the Cobalt upload API.
63 // Exception occurred when parsing the Adservices Config XML provided by an app.
66 // Generic exception when dealing with shared prefs.
136 // Get an unavailable job execution start timestamp when calculating the execution latency.
170 // Remote exception when calling get topics.
176 // SQLException occurred when failed to persist classified Topics.
179 // SQLException occurred when failed to persist Top Topics.
[all …]
/aosp_15_r20/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileActivatorTest.java93 doReturn(mMockResources).when(mMockContext).getResources(); in setUp()
95 doReturn(mMockConnectivityManager).when(mMockContext).getSystemService( in setUp()
99 doNothing().when(mMockConnectivityManager).registerNetworkCallback(request, in setUp()
105 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUBID_1); in setUp()
122 doReturn(mMockEuiccManagerCard1).when(mMockEuiccManager).createForCardId(1); in setUp()
123 doReturn(true).when(mMockEuiccManagerCard1).isEnabled(); in setUp()
124 doReturn(uiccCardInfoList).when(mMockTeleManager).getUiccCardsInfo(); in setUp()
154 doReturn(TelephonyManager.SIM_STATE_NOT_READY).when(mMockTeleManager).getSimState();
167 doReturn(false).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testONSAutoProvisioningDisabled()
181 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testESIMNotSupported()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcherTest.java48 import static org.mockito.Mockito.when;
206 .when( in setup()
210 when(mMockFlags.getMeasurementEnableXNA()).thenReturn(false); in setup()
211 when(mMockFlags.getMeasurementDebugJoinKeyEnrollmentAllowlist()) in setup()
213 when(mMockFlags.getMeasurementPlatformDebugAdIdMatchingEnrollmentBlocklist()) in setup()
215 when(mMockFlags.getMeasurementMinimumAggregatableReportWindowInSeconds()) in setup()
218 .when(mMockFlags) in setup()
221 .when(mMockFlags) in setup()
224 .when(mMockFlags) in setup()
226 when(mMockFlags.getMeasurementMaxAggregateKeysPerSourceRegistration()) in setup()
[all …]
DAsyncTriggerFetcherTest.java47 import static org.mockito.Mockito.when;
263 .when( in setup()
267 when(mMockFlags.getMeasurementEnableXNA()).thenReturn(false); in setup()
268 when(mMockFlags.getMeasurementEnableAggregateValueFilters()).thenReturn(false); in setup()
269 when(mMockFlags.getMeasurementDebugJoinKeyEnrollmentAllowlist()) in setup()
271 when(mMockFlags.getMeasurementPlatformDebugAdIdMatchingEnrollmentBlocklist()) in setup()
273 when(mMockFlags.getMeasurementMaxAggregateKeysPerTriggerRegistration()) in setup()
275 when(mMockFlags.getMeasurementMaxAggregateDeduplicationKeysPerRegistration()) in setup()
277 when(mMockFlags.getMeasurementMaxAttributionFilters()) in setup()
279 when(mMockFlags.getMeasurementMaxFilterMapsPerFilterSet()) in setup()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiKeyStoreTest.java33 import static org.mockito.Mockito.when;
83 when(mWifiEnterpriseConfig.getClientCertificateAlias()).thenReturn(USER_CERT_ALIAS); in setUp()
84 when(mWifiEnterpriseConfig.getCaCertificateAlias()).thenReturn(USER_CA_CERT_ALIAS); in setUp()
85 when(mWifiEnterpriseConfig.getCaCertificateAliases()) in setUp()
87 when(mWifiEnterpriseConfig.getClientPrivateKey()).thenReturn(FakeKeys.RSA_KEY1); in setUp()
88 when(mWifiEnterpriseConfig.getClientCertificate()).thenReturn(FakeKeys.CLIENT_CERT); in setUp()
89 when(mWifiEnterpriseConfig.getCaCertificate()).thenReturn(FakeKeys.CA_CERT0); in setUp()
90 when(mWifiEnterpriseConfig.getClientCertificateChain()) in setUp()
92 when(mWifiEnterpriseConfig.getCaCertificates()) in setUp()
94 when(mWifiEnterpriseConfig.getKeyId(any())).thenReturn(TEST_KEY_ID); in setUp()
[all …]
DWifiCarrierInfoManagerTest.java25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
203 when(mContext.getSystemService(CarrierConfigManager.class)) in setUp()
205 when(mContext.getResources()).thenReturn(mResources); in setUp()
206 when(mContext.getWifiOverlayApkPkgName()).thenReturn("test.com.android.wifi.resources"); in setUp()
207 when(mFrameworkFacade.makeNotificationBuilder(any(), anyString())) in setUp()
209 when(mFrameworkFacade.getBroadcast(any(), anyInt(), any(), anyInt())) in setUp()
211 when(mNotificationBuilder.setSmallIcon(any())).thenReturn(mNotificationBuilder); in setUp()
212 when(mNotificationBuilder.setTicker(any())).thenReturn(mNotificationBuilder); in setUp()
213 when(mNotificationBuilder.setContentTitle(any())).thenReturn(mNotificationBuilder); in setUp()
214 when(mNotificationBuilder.setStyle(any())).thenReturn(mNotificationBuilder); in setUp()
[all …]
DWifiServiceImplTest.java120 import static org.mockito.Mockito.when;
540 when(mResourceCache.getInteger(R.integer.config_wifiHardwareSoftapMaxClientCount)) in setUp()
543 when(mRequestInfo.getPid()).thenReturn(mPid); in setUp()
544 when(mRequestInfo2.getPid()).thenReturn(mPid2); in setUp()
545 when(mWifiInjector.getContext()).thenReturn(mContext); in setUp()
546 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in setUp()
547 when(mWifiInjector.getWifiCountryCode()).thenReturn(mWifiCountryCode); in setUp()
548 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp()
549 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp()
550 when(mWifiInjector.getUntrustedWifiNetworkFactory()) in setUp()
[all …]
/aosp_15_r20/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DBiometricsSafetySourceTest.java31 import static org.mockito.Mockito.when;
91 when(mApplicationContext.getPackageManager()).thenReturn(mPackageManager); in setUp()
92 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)).thenReturn(true); in setUp()
93 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in setUp()
94 when(mDevicePolicyManager.getProfileOwnerOrDeviceOwnerSupervisionComponent(USER_HANDLE)) in setUp()
96 when(mApplicationContext.getSystemService(Context.FINGERPRINT_SERVICE)) in setUp()
98 when(mApplicationContext.getSystemService(Context.DEVICE_POLICY_SERVICE)) in setUp()
100 when(mApplicationContext.getSystemService(Context.FACE_SERVICE)).thenReturn(mFaceManager); in setUp()
102 when(featureFactory.securityFeatureProvider.getLockPatternUtils(mApplicationContext)) in setUp()
104 doReturn(true).when(mLockPatternUtils).isSecure(anyInt()); in setUp()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/proto/include/boost/proto/transform/detail/preprocessed/
Dfold_impl.hpp12 typedef typename when<_, State0>::template impl<Expr, State, Data>::result_type state0;
13 …typedef typename when<_, Fun>::template impl< typename result_of::child_c<Expr, 0>::type , state0 …
22 typename when<_, State0>::template impl<Expr, State, Data>()(e, s, d); in operator ()()
23 …state1 s1 = typename when<_, Fun>::template impl< typename result_of::child_c<Expr, 0>::type , sta… in operator ()()
31 typedef typename when<_, State0>::template impl<Expr, State, Data>::result_type state1;
32 …typedef typename when<_, Fun>::template impl< typename result_of::child_c< Expr , 0 >::type , stat…
41 typename when<_, State0>::template impl<Expr, State, Data>()(e, s, d); in operator ()()
42 …state0 s0 = typename when<_, Fun>::template impl< typename result_of::child_c< Expr , 0 >::type , … in operator ()()
50 typedef typename when<_, State0>::template impl<Expr, State, Data>::result_type state0;
51 … typename when<_, Fun>::template impl< typename result_of::child_c<Expr, 0>::type , state0 , Data …
[all …]
/aosp_15_r20/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java33 import static org.mockito.Mockito.when;
88 when(mContext.getResources()).thenReturn(mResources); in setUp()
89 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubMgr); in setUp()
90 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelMgr); in setUp()
91 when(mContext.getSystemService(ConnectivityManager.class)).thenReturn(mConnectivityManager); in setUp()
92 when(mTelMgr.getUiccSlotsInfo()).thenReturn(null); in setUp()
98 when(mSubMgr.getAvailableSubscriptionInfoList()).thenReturn(null); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
109 when(mSubMgr.getAvailableSubscriptionInfoList()).thenReturn(Arrays.asList(info)); in getAvailableSubscriptions_oneSubscription_oneResult()
119 when(mResources.getIntArray(anyInt())).thenReturn(CARRIERS_THAT_USE_RAC); in hasSubscriptionWithRacCarrier_containsRac_returnTrue()
121 when(info.getCarrierId()).thenReturn(RAC_CARRIER_ID); in hasSubscriptionWithRacCarrier_containsRac_returnTrue()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java107 doReturn(true).when(mMockCallInfo).isNullCall(null); in setUp()
108 doReturn(false).when(mMockCallInfo).isNullCall(notNull()); in setUp()
173 doReturn(fakePhoneAccount).when(mMockCallInfo).getBestPhoneAccount(); in getNetworkOperator()
182 doReturn(fakeOperator).when(mMockTelephonyManager).getNetworkOperatorName(); in getNetworkOperatorNoPhoneAccount()
191 doReturn(fakePhoneAccount).when(mMockCallInfo).getBestPhoneAccount(); in getSubscriberNumber()
200 doReturn(fakeNumber).when(mMockTelephonyManager).getLine1Number(); in getSubscriberNumberFallbackToTelephony()
209 doReturn(Call.STATE_ACTIVE).when(activeCall).getState(); in listCurrentCallsOneCall()
210 doReturn(Uri.parse("tel:555-000")).when(activeCall).getHandle(); in listCurrentCallsOneCall()
212 doReturn(List.of(activeCall)).when(mMockCallInfo).getBluetoothCalls(); in listCurrentCallsOneCall()
268 doReturn(Call.STATE_RINGING).when(silentRingingCall).getState(); in listCurrentCallsSilentRinging()
[all …]
/aosp_15_r20/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java44 import static org.mockito.Mockito.when;
219 when(mMockCall.getAnalytics()).thenReturn(new Analytics.CallInfo()); in setUp()
220 when(mMockCall.getAssociatedUser()).thenReturn(mUserHandle); in setUp()
221 when(mMockCall.getId()).thenReturn("TC@1"); in setUp()
222 doReturn(mMockResources).when(mMockContext).getResources(); in setUp()
223 doReturn(mMockAppOpsManager).when(mMockContext).getSystemService(AppOpsManager.class); in setUp()
224 doReturn(SYS_PKG).when(mMockResources).getString( in setUp()
226 doReturn(SYS_CLASS).when(mMockResources).getString(R.string.incall_default_class); in setUp()
227 doReturn(true).when(mMockResources).getBoolean(R.bool.grant_location_permission_enabled); in setUp()
228 when(mDefaultDialerCache.getSystemDialerApplication()).thenReturn(SYS_PKG); in setUp()
[all …]
/aosp_15_r20/external/clang/test/SemaCXX/
H A Duninitialized.cpp24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initial…
25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own ini…
26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wit…
27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initia…
37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own i…
38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its…
39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initializ…
40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own …
41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within it…
42 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within i…
[all …]
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSwipeHelperTest.java36 import static org.mockito.Mockito.when;
138 doNothing().when(mSwipeHelper).setExposedMenuView(mView); in testClearExposedMenuView()
154 doNothing().when(mSwipeHelper).setTranslatingParentView(null); in testClearTranslatingParentView()
173 doNothing().when(mSwipeHelper).setCurrentMenuRow(null); in testClearCurrentMenuRow()
180 when(mSwipeHelper.getHandler()).thenReturn(mHandler); in testOnDownUpdate_ExpandableNotificationRow()
181 when(mSwipeHelper.getFalsingCheck()).thenReturn(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow()
182 doNothing().when(mSwipeHelper).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow()
183 doNothing().when(mSwipeHelper).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow()
184 doNothing().when(mSwipeHelper).initializeRow(any()); in testOnDownUpdate_ExpandableNotificationRow()
196 when(mSwipeHelper.getHandler()).thenReturn(mHandler); in testOnDownUpdate_notExpandableNotificationRow()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdServicesCommonServiceImplTest.java46 import static org.mockito.Mockito.when;
169 doReturn(true).when(mMockFlags).getAdServicesEnabled(); in setup()
172 .when(() -> BackgroundJobsManager.scheduleAllBackgroundJobs(any(Context.class))); in setup()
174 ExtendedMockito.doReturn(mUxStatesManager).when(UxStatesManager::getInstance); in setup()
177 .when( in setup()
184 doReturn(mSharedPreferences).when(mMockContext).getSharedPreferences(anyString(), anyInt()); in setup()
185 doReturn(mPackageManager).when(mMockContext).getPackageManager(); in setup()
186 doReturn(mEditor).when(mSharedPreferences).edit(); in setup()
187 doReturn(mEditor).when(mEditor).putInt(anyString(), anyInt()); in setup()
188 doReturn(true).when(mEditor).commit(); in setup()
[all …]

12345678910>>...1282