/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/ |
D | MobileNetworkListFragmentTest.kt | 38 private val mockResources = mock<Resources>() constant in com.android.settings.network.MobileNetworkListFragmentTest 42 on { resources } doReturn mockResources in <lambda>() 50 mockResources.stub { in isPageSearchEnabled_adminUser_shouldReturnTrue() 65 mockResources.stub { in isPageSearchEnabled_nonAdminUser_shouldReturnFalse()
|
D | BluetoothWiFiResetPreferenceControllerTest.kt | 53 private val mockResources = mock<Resources>() constant in com.android.settings.network.BluetoothWiFiResetPreferenceControllerTest 61 on { resources } doReturn mockResources in <lambda>() 97 mockResources.stub { in resetOperation_onDeviceWithSimVisible_notResetConnectivity() 108 mockResources.stub { in resetOperation_onDeviceWithSimInvisible_resetVpn()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AppFilterTest.kt | 39 private lateinit var mockResources: Resources variable in com.android.launcher3.AppFilterTest 46 `when`(mockContext.resources).thenReturn(mockResources) // Link the context and resources in setUp() 47 `when`(mockResources.getStringArray(R.array.filtered_components)) in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenRuleVisEffectPreferenceControllerTest.java | 102 Resources mockResources = mock(Resources.class); in isAvailable() local 103 when(mockContext.getResources()).thenReturn(mockResources); in isAvailable() 105 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable() 109 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable()
|
D | ZenModeVisEffectPreferenceControllerTest.java | 102 Resources mockResources = mock(Resources.class); in isAvailable() local 103 when(mockContext.getResources()).thenReturn(mockResources); in isAvailable() 105 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable() 109 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | DeviceConfigFacadeTest.java | 79 Resources mockResources = mock(Resources.class); in getMockedContext() local 80 when(mockResources.getBoolean(eq(R.bool.enable_antenna_blocked_alert))) in getMockedContext() 88 return mockResources; in getMockedContext()
|
D | NfcBlockedNotificationTest.java | 77 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 78 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 94 return mockResources; in setUp()
|
D | NfcDeveloperOptionNotificationTest.java | 86 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 87 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 103 return mockResources; in setUp()
|
D | DtaServiceConnectorTest.java | 82 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 83 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 108 return mockResources; in setUp()
|
D | RegisteredComponentCacheTest.java | 82 Resources mockResources = mock(Resources.class); in setUp() local 83 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 99 return mockResources; in setUp()
|
D | NfcWifiProtectedSetupTest.java | 102 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 103 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 119 return mockResources; in setUp()
|
D | NfcReaderConflictOccurredTest.java | 96 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 97 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 119 return mockResources; in setUp()
|
D | NfcDispatcherTest.java | 92 Resources mockResources = Mockito.mock(Resources.class); in setUp() local 93 when(mockResources.getBoolean(eq(R.bool.tag_intent_app_pref_supported))) in setUp() 109 return mockResources; in setUp()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastSettingsTest.java | 213 Resources mockResources = mock(Resources.class); in testGetResources() local 215 doReturn(mockResources).when(mockContext).getResources(); in testGetResources() 216 doReturn(configuration).when(mockResources).getConfiguration(); in testGetResources() 229 doReturn(mockResources).when(mockContext2).getResources(); in testGetResources() 269 doReturn(configuration2).when(mockResources).getConfiguration(); in testGetResources() 280 Resources mockResources = mock(Resources.class); in testGetResourcesByOperator() local 281 doReturn(mockResources).when(mockContext).getResources(); in testGetResourcesByOperator() 292 doReturn(mockResources).when(mockContext2).getResources(); in testGetResourcesByOperator()
|
D | CellBroadcastAlertServiceTest.java | 578 Resources mockResources = mock(Resources.class); in testShouldDisplayMessage() local 579 doReturn(mockResources).when(mockContext).getResources(); in testShouldDisplayMessage() 584 doReturn(true).when(mockResources).getBoolean( in testShouldDisplayMessage() 595 doReturn(false).when(mockResources).getBoolean( in testShouldDisplayMessage()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/navbutton/ |
D | NavButtonLayoutFactoryTest.kt | 35 private val mockResources: Resources = mock() constant in com.android.launcher3.taskbar.navbutton.NavButtonLayoutFactoryTest 61 whenever(mockBackButton.resources).thenReturn(mockResources) in setup() 62 whenever(mockResources.configuration).thenReturn(mockConfiguration) in setup() 203 resources = mockResources, in getLayoutter()
|
/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/menu/ |
D | MenuControllerTest.kt | 67 val mockResources: Resources = mock() in expect_exception_when_menu_has_duplicate_ids() constant 68 `when`(mockResources.getResourceName(Mockito.anyInt())).thenReturn("mock") in expect_exception_when_menu_has_duplicate_ids() 69 `when`(mockContext.resources).thenReturn(mockResources) in expect_exception_when_menu_has_duplicate_ids()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/ |
D | ZenModeNotifVisPreferenceControllerTest.java | 84 Resources mockResources = mock(Resources.class); in isAvailable() local 85 when(mockContext.getResources()).thenReturn(mockResources); in isAvailable() 87 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable() 91 when(mockResources.getBoolean(com.android.internal.R.bool.config_intrusiveNotificationLed)) in isAvailable()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | AppDataUsageRepositoryTest.kt | 57 private val mockResources = mock<Resources> { in <lambda>() constant 68 on { resources } doReturn mockResources in <lambda>()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallTest.java | 130 Resources mockResources = mContext.getResources(); in setUp() local 131 when(mockResources.getBoolean(R.bool.skip_loading_canned_text_response)) in setUp() 133 when(mockResources.getBoolean(R.bool.skip_incoming_caller_info_query)) in setUp() 696 Resources mockResources = mContext.getResources(); in testGetFromCallerInfo_skipLookup() local 697 when(mockResources.getBoolean(R.bool.skip_incoming_caller_info_query)) in testGetFromCallerInfo_skipLookup() 1036 Resources mockResources = mContext.getResources(); in testSkipLoadingCannedTextResponse() local 1037 when(mockResources.getBoolean(R.bool.skip_loading_canned_text_response)) in testSkipLoadingCannedTextResponse()
|
D | CallLogManagerTest.java | 311 Resources mockResources = mContext.getResources(); in testDontLogUnloggableNumbers() local 312 when(mockResources.getStringArray(com.android.internal.R.array.unloggable_phone_numbers)) in testDontLogUnloggableNumbers()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | AutomaticOnOffKeepaliveTrackerTest.java | 332 final Resources mockResources = mock(Resources.class); in setup() local 333 doReturn(mockResources).when(mCtx).getResources(); in setup()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceTest.java | 597 Resources mockResources = mock(Resources.class); in testEnableDisableOnlyGatt() local 602 when(mockContext.getResources()).thenReturn(mockResources); in testEnableDisableOnlyGatt()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 1874 Resources mockResources = mock(Resources.class); 1875 when(mockResources.getStringArray(R.array.config_oemPrivilegedWifiAdminPackages)) 1877 when(mMockContext.getResources()).thenReturn(mockResources);
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | PickerSyncControllerTest.java | 1941 Resources mockResources = mock(Resources.class); in createControllerWithDefaultProvider() local 1944 when(mockContext.getResources()).thenReturn(mockResources); in createControllerWithDefaultProvider()
|