/packages/modules/Uwb/service/tests/src/com/android/server/uwb/multichip/ |
D | UwbMultichipDataTest.java | 58 private Resources mMockResources; field in UwbMultichipDataTest 65 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 71 when(mMockResources.getBoolean(R.bool.config_isMultichip)).thenReturn(false); in testInitializeSingleChip() 85 when(mMockResources.getBoolean(R.bool.config_isMultichip)).thenReturn(true); in testInitializeMultiChipButNoFilePath() 103 when(mMockResources.getBoolean(R.bool.config_isMultichip)).thenReturn(true); in testInitializeMultiChipButFileDoesNotExist() 104 when(mMockResources.getString(R.string.config_multichipConfigPath)) in testInitializeMultiChipButFileDoesNotExist() 123 when(mMockResources.getBoolean(R.bool.config_isMultichip)).thenReturn(true); in testInitializeMultiChipOneChipConfig() 124 when(mMockResources.getString(R.string.config_multichipConfigPath)).thenReturn( in testInitializeMultiChipOneChipConfig() 145 when(mMockResources.getBoolean(R.bool.config_isMultichip)).thenReturn(true); in testInitializeMultiChipNoPosition() 146 when(mMockResources.getString(R.string.config_multichipConfigPath)).thenReturn( in testInitializeMultiChipNoPosition() [all …]
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileActivatorTest.java | 81 Resources mMockResources; field in ONSProfileActivatorTest 93 doReturn(mMockResources).when(mMockContext).getResources(); in setUp() 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() 198 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testMultiSIMNotSupported() 215 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testDeviceSwitchToDualSIMModeFailed() 238 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testDeviceSwitchToDualSIMModeSuccess() 262 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testNoActiveSubscriptions() 280 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testNullActiveSubscriptionList() 299 doReturn(true).when(mMockResources).getBoolean(R.bool.enable_ons_auto_provisioning); in testNonCBRSCarrierPSIMInserted() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtilsTest.java | 49 private Resources mMockResources; field in BluetoothUtilsTest 56 when(mContext.getResources()).thenReturn(mMockResources); in setUp() 57 when(mMockResources.getString(anyInt())).thenReturn(SYSTEM_UI_COMPONENT_NAME); in setUp() 61 when(mMockResources.getStringArray(anyInt())).thenReturn(allowedPackages); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | CarBluetoothServiceTest.java | 74 @Mock private Resources mMockResources; field in CarBluetoothServiceTest 105 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 162 when(mMockResources.getBoolean( in testConnectionResourceFlagTrue_doCreateDefaultConnectionPolicy() 182 when(mMockResources.getBoolean( in testConnectionResourceFlagFalse_doNotCreateDefaultConnectionPolicy() 202 when(mMockResources.getBoolean( in testPowerResourceFlagTrue_doCreateDefaultPowerPolicy() 222 when(mMockResources.getBoolean( in testPowerResourceFlagFalse_doNotCreateDefaultPowerPolicy()
|
D | CarBluetoothUserServiceTest.java | 104 @Mock private Resources mMockResources; field in CarBluetoothUserServiceTest 131 when(mMockResources.getInteger(R.integer.fastPairModelId)).thenReturn(123); in setUp() 132 when(mMockResources.getString(R.string.fastPairAntiSpoofKey)).thenReturn("HelloWorld"); in setUp() 133 when(mMockResources.getBoolean(R.bool.fastPairAutomaticAcceptance)).thenReturn(false); in setUp() 134 when(mMockCarPerUserServiceImpl.getResources()).thenReturn(mMockResources); in setUp()
|
D | FastPairProviderTest.java | 126 @Mock Resources mMockResources; field in FastPairProviderTest 171 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 284 when(mMockResources.getInteger(anyInt())).thenReturn(modelId); in setModelId() 288 when(mMockResources.getString(anyInt())).thenReturn(keyBase64); in setPrivateKey()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexManagerTest.java | 109 @Mock private Resources mMockResources; field in CoexManagerTest 182 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 183 when(mMockResources.getBoolean(R.bool.config_wifiDefaultCoexAlgorithmEnabled)) in setUp() 185 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in setUp() 390 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in testTelephonyCallback_defaultAlgorithmEnabledXmlExists_registersWithTelephony() 409 when(mMockResources.getBoolean(R.bool.config_wifiDefaultCoexAlgorithmEnabled)) in testTelephonyCallback_defaultAlgorithmDisabled_doesNotRegisterWithTelephony() 411 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in testTelephonyCallback_defaultAlgorithmDisabled_doesNotRegisterWithTelephony() 427 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() 459 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() 492 when(mMockResources.getString(R.string.config_wifiCoexTableFilepath)) in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | RssiMonitorTest.java | 65 MockResources mMockResources = new MockResources(); field in RssiMonitorTest 78 when(mContext.getResources()).thenReturn(mMockResources); in setUp() 81 mMockResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, in setUp() 83 mMockResources.setInteger(R.integer.config_wifiPollRssiLongIntervalMilliseconds, in setUp() 85 mMockResources.setInteger(R.integer.config_wifiClientRssiMonitorThresholdDbm, in setUp() 87 mMockResources.setInteger(R.integer.config_wifiClientRssiMonitorHysteresisDb, in setUp() 89 mMockResources.setBoolean(R.bool.config_wifiAdjustPollRssiIntervalEnabled, in setUp()
|
D | WifiChannelUtilizationTest.java | 55 MockResources mMockResources = new MockResources(); field in WifiChannelUtilizationTest 62 when(mContext.getResources()).thenReturn(mMockResources); in setUp() 63 mMockResources.setBoolean( in setUp() 443 mMockResources.setBoolean( in verifyOverridingUtilizationRatio() 446 mMockResources.setInteger( in verifyOverridingUtilizationRatio() 449 mMockResources.setInteger( in verifyOverridingUtilizationRatio() 452 mMockResources.setInteger( in verifyOverridingUtilizationRatio()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | ImageTest.java | 60 private @Mock Resources mMockResources; field in ImageTest 111 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 112 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(true); in setUp() 290 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromMediaMetadataWithArtUriDisabled() 305 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromMediaMetadataWithAlbumArtUriDisabled() 320 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromMediaMetadataWithDisplayIconUriDisabled() 462 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromBundleWithArtUriDisabled() 476 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromBundleWithAlbumArtUriDisabled() 490 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testCreateImageFromBundleWithDisplayIconUriDisabled()
|
D | MetadataTest.java | 63 private @Mock Resources mMockResources; field in MetadataTest 115 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(true); in setUp() 116 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 431 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testBuildMetadataFromMediaMetadataWithUriAndUrisDisabled() 741 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testBuildMetadataFromBundleWithUriAndUrisDisabled() 856 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testBuildMetadataFromMediaItemWithIconUriAndUrisDisabled() 984 when(mMockResources.getBoolean(R.bool.avrcp_target_cover_art_uri_images)).thenReturn(false); in testBuildMetadataFromQueueItemWithIconUriandUrisDisabled()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastListItemTest.java | 56 private Resources mMockResources; field in CellBroadcastListItemTest 76 doReturn(FAKE_TITLE).when(mMockResources).getText(anyInt()); in setUp() 79 CellBroadcastSettings.sResourcesCacheByOperator.put(FAKE_MCC, mMockResources); in setUp()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyConnectionTest.java | 72 when(c.mMockResources.getBoolean(eq( in testSetupCommunicator() 90 when(c.mMockResources.getBoolean(eq( in testDoNotSetupCommunicatorWhenDisabled() 105 when(c.mMockResources.getBoolean(eq( in testDoNotSetupCommunicatorForNonIms() 120 when(c.mMockResources.getBoolean(eq( in testDoNotSetupCommunicatorNoTransports() 138 when(c.mMockResources.getBoolean(eq( in testSetupRtpOnly() 176 when(c.mMockResources.getBoolean(eq( in testSetupDtmfOnly()
|
D | TestTelephonyConnection.java | 76 Resources mMockResources; field in TestTelephonyConnection 157 when(mMockContext.getResources()).thenReturn(mMockResources); in TestTelephonyConnection() 164 when(mMockResources.getBoolean(anyInt())).thenReturn(false); in TestTelephonyConnection()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | TimeHalServiceTest.java | 60 @Mock private Resources mMockResources; field in TimeHalServiceTest 70 when(mMockResources.getBoolean(R.bool.config_enableExternalCarTimeToExternalTimeSuggestion)) in setUp() 73 mFakeContext.setResources(mMockResources); in setUp() 125 when(mMockResources.getBoolean(R.bool.config_enableExternalCarTimeToExternalTimeSuggestion)) in testInitDoesNothingWhenConfigDisabled()
|
D | ClusterHalServiceTest.java | 81 Resources mMockResources; field in ClusterHalServiceTest 132 when(mMockResources.getInteger(R.integer.config_clusterHomeServiceMode)).thenReturn(1); in createLightModeServiceWithProperties() 142 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 143 when(mMockResources.getInteger(R.integer.config_clusterHomeServiceMode)).thenReturn(0); in setUp()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfigTest.java | 56 @Mock private Resources mMockResources; field in A2dpCodecConfigTest 215 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 216 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_sbc)) in setUp() 218 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aac)) in setUp() 220 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aptx)) in setUp() 222 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd)) in setUp() 224 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_ldac)) in setUp() 226 when(mMockResources.getInteger(R.integer.a2dp_source_codec_priority_opus)) in setUp()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpSecAlgorithmTest.java | 55 private final Resources mMockResources = mock(Resources.class); field in IpSecAlgorithmTest 225 doReturn(optionalAlgos).when(mMockResources).getStringArray(resId); in testLoadAlgos() 227 final Set<String> enabledAlgos = new HashSet<>(IpSecAlgorithm.loadAlgos(mMockResources)); in testLoadAlgos()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AppManifestConfigHelperTest.java | 106 @Mock private Resources mMockResources; field in AppManifestConfigHelperTest 436 when(mMockResources.getXml(resId)).thenReturn(mMockParser); in mockGetPropertySucceeds() 454 mMockParser, mMockResources)); in mockGetAssetSucceeds() 455 when(mMockResources.getXml(resId)).thenReturn(mMockParser); in mockGetAssetSucceeds() 467 mMockParser, mMockResources)); in mockGetAssetNotFound() 471 when(mMockPackageManager.getResourcesForApplication(pkgName)).thenReturn(mMockResources); in mockAppFound()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceTest.java | 105 @Mock private Resources mMockResources; field in CarWatchdogServiceTest 133 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 134 when(mMockResources.getInteger( in setUp() 137 when(mMockResources.getInteger( in setUp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceControllerTest.java | 85 private Resources mMockResources; field in NotificationAccessPreferenceControllerTest 136 when(mContext.getResources()).thenReturn(mMockResources); in onStart_loadsFixedPackage_preferenceDisabled() 137 when(mMockResources.getStringArray(anyInt())) in onStart_loadsFixedPackage_preferenceDisabled()
|
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/ |
D | SatelliteAccessControllerTest.java | 141 private Resources mMockResources; field in SatelliteAccessControllerTest 233 when(mMockContext.getResources()).thenReturn(mMockResources); in setUp() 234 when(mMockResources.getStringArray( in setUp() 237 when(mMockResources.getBoolean( in setUp() 240 when(mMockResources.getString( in setUp() 243 when(mMockResources.getInteger(com.android.internal.R.integer in setUp()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | SmsProviderTest.java | 75 @Mock private Resources mMockResources; field in SmsProviderTest 110 when(mMockResources in setUp() 113 when(mContext.getResources()).thenReturn(mMockResources); in setUp()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 69 @Mock private Resources mMockResources; field in A2dpSinkStreamHandlerTest 99 when(mMockA2dpSink.getResources()).thenReturn(mMockResources); in setUp() 100 when(mMockResources.getInteger(anyInt())).thenReturn(DUCK_PERCENT); in setUp()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnectionServiceTest.java | 79 @Mock private Resources mMockResources; field in HfpClientConnectionServiceTest 111 doReturn(mMockResources).when(mHfpClientConnectionService).getResources(); in setUp() 113 .when(mMockResources) in setUp()
|