/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39808/src/android/security/cts/CVE_2021_39808/ |
D | PocService.java | 44 setResult(getResources().getInteger(R.integer.fail), in onCreate() 45 getResources().getString(R.string.vulnerableMessage)); in onCreate() 48 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate() 55 .getService(getResources().getString(R.string.notification)); in createNotificationGroup() 57 getResources().getString(R.string.functionName)); in createNotificationGroup() 59 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup() 63 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup() 72 getResources().getString(R.string.groupId)); in createNotificationGroup() 74 setResult(getResources().getInteger(R.integer.pass), in createNotificationGroup() 75 getResources().getString(R.string.passMessage)); in createNotificationGroup() [all …]
|
D | DeviceTest.java | 58 .getResources().getInteger(R.integer.pass)) { in testService() 67 context.getResources().getInteger(R.integer.timeoutMs), in testService() 71 context.getResources().getInteger(R.integer.pass)); in testService() 74 assumeTrue(message, result != context.getResources() in testService() 77 context.getResources().getInteger(R.integer.fail)); in testService()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DevicePolicyResourcesTest.java | 102 sDpm.getResources().setDrawables(createDrawable( in setDrawables_withoutRequiredPermission_throwsSecurityException() 110 sDpm.getResources().setDrawables(createDrawable( in setDrawables_withRequiredPermission_doesNotThrowSecurityException() 118 sDpm.getResources().setDrawables(createDrawable( in setDrawables_updatesCorrectUpdatableDrawable() 121 Drawable drawable = sDpm.getResources().getDrawable( in setDrawables_updatesCorrectUpdatableDrawable() 133 sDpm.getResources().setDrawables(createDrawable( in setDrawables_updatesCurrentlyUpdatedDrawable() 136 sDpm.getResources().setDrawables(createDrawable( in setDrawables_updatesCurrentlyUpdatedDrawable() 139 Drawable drawable = sDpm.getResources().getDrawable( in setDrawables_updatesCurrentlyUpdatedDrawable() 150 sDpm.getResources().resetDrawables(Set.of(UPDATABLE_DRAWABLE_ID_2)); in setDrawables_doesNotUpdateOtherUpdatableDrawables() 152 sDpm.getResources().setDrawables(createDrawable( in setDrawables_doesNotUpdateOtherUpdatableDrawables() 155 Drawable drawable = sDpm.getResources().getDrawable( in setDrawables_doesNotUpdateOtherUpdatableDrawables() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20115/src/android/security/cts/CVE_2022_20115/ |
D | DeviceTest.java | 62 mDevice.executeShellCommand(mContext.getResources().getString(R.string.sendBroadcast) in enableAirplaneMode() 63 + " " + mContext.getResources().getString(R.string.airplaneModeEnable)); in enableAirplaneMode() 64 TestUtils.waitUntil(mContext.getResources().getString(R.string.failedToEnable), in enableAirplaneMode() 67 assumeNoException(mContext.getResources().getString(R.string.failedToExecute), e); in enableAirplaneMode() 76 mContext.getResources().getString(R.string.getAirplaneModeStatus)) in isAirplaneModeOn() 79 assumeNoException(mContext.getResources().getString(R.string.failedToExecute), e); in isAirplaneModeOn() 89 mContext.getResources().getString(R.string.getAirplaneModeStatus)) in isAirplaneModeOff() 92 assumeNoException(mContext.getResources().getString(R.string.failedToExecute), e); in isAirplaneModeOff() 109 assumeTrue(mContext.getResources().getString(R.string.failedToOpenApp), mDevice in testCellLocation() 114 mDevice.executeShellCommand(mContext.getResources().getString(R.string.sendBroadcast) in testCellLocation() [all …]
|
D | PocActivity.java | 50 setResultForSP(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), 51 getResources().getString(R.string.assumptionFailure)); 56 context.getResources().getString(R.string.serviceStateIntentExtra)); 58 setResultForSP(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), 59 getResources().getString(R.string.assumptionFailure)); 69 .getResources().getInteger(R.integer.MAX_WAIT_TIME_MS))) { 72 Thread.sleep(context.getResources() 80 setResultForSP(getResources().getInteger(R.integer.FAIL), 81 getResources().getString(R.string.errorMessage)); 83 setResultForSP(getResources().getInteger(R.integer.PASS), [all …]
|
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/ |
D | OverlayableTest.java | 94 String result = context.getResources().getString(R.string.not_overlayable); in testOverlayPolicyAll() 97 result = context.getResources().getString(R.string.policy_public); in testOverlayPolicyAll() 100 result = context.getResources().getString(R.string.policy_product); in testOverlayPolicyAll() 103 result = context.getResources().getString(R.string.policy_system); in testOverlayPolicyAll() 106 result = context.getResources().getString(R.string.policy_vendor); in testOverlayPolicyAll() 109 result = context.getResources().getString(R.string.policy_signature); in testOverlayPolicyAll() 112 result = context.getResources().getString(R.string.other_policy_public); in testOverlayPolicyAll() 121 String result = context.getResources().getString(R.string.policy_public); in testOverlayCodeNotLoaded() 134 String result = context.getResources().getString(R.string.not_overlayable); in testSameSignatureNoOverlayableSucceeds() 137 result = context.getResources().getString(R.string.policy_public); in testSameSignatureNoOverlayableSucceeds() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 214 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig 282 Resources res = config.getResources(); in testAllEmptyConfigs() 289 res = config.getResources(); in testAllEmptyConfigs() 297 res = config.getResources(); in testAllEmptyConfigs() 304 res = config.getResources(); in testAllEmptyConfigs() 311 res = config.getResources(); in testAllEmptyConfigs() 318 res = config.getResources(); in testAllEmptyConfigs() 325 res = config.getResources(); in testAllEmptyConfigs() 332 res = config.getResources(); in testAllEmptyConfigs() 339 res = config.getResources(); in testAllEmptyConfigs() [all …]
|
D | Resources_ThemeTest.java | 63 mResTheme = getContext().getResources().newTheme(); in setUp() 94 XmlPullParser parser = getContext().getResources().getXml(R.xml.colors); in testObtainStyledAttributes() 118 getContext().getResources().getValue(R.raw.testmp3, value, true); in testResolveAttribute() 125 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() 138 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations() 148 Resources res = getContext().getResources(); in testRebase() 179 final Resources res = getContext().getResources(); in testGetDrawable() 190 final Resources res = getContext().getResources(); in testGetResources() 192 assertSame(res, theme.getResources()); in testGetResources() 198 final Resources res = getContext().getResources(); in testEmptyDoesNotGetOverriden()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 103 new BitmapDrawable(mContext.getResources()); in testConstructor() 105 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor() 114 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor() 118 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor() 125 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() 142 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testBitmapDrawableOpticalInset() 159 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() 171 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() 185 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() 199 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/ |
D | PocService.java | 35 setResult(getResources().getInteger(R.integer.fail), in onCreate() 36 getResources().getString(R.string.vulnerableMessage)); in onCreate() 41 setResult(getResources().getInteger(R.integer.pass), in onDestroy() 42 getResources().getString(R.string.passMessage)); in onDestroy() 48 getResources().getString(R.string.pocSharedPref), Context.MODE_PRIVATE); in setResult()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | DialogPreferenceTest.java | 43 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle() 49 String titleExp = mActivity.getResources().getString( in testGetDialogTitle() 56 Drawable drawableExp = mActivity.getResources().getDrawable(R.drawable.ic_launcher); in testGetDialogIcon() 62 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage() 69 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText() 76 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0953/src/android/security/cts/CVE_2021_0953/ |
D | PocActivity.java | 77 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onCreate() 90 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onCreate() 95 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onCreate() 115 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onCreate() 133 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() 141 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() 160 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() 171 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() 181 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() 191 sendTestResult(getResources().getInteger(R.integer.assumption_failure), in onActivityResult() [all …]
|
D | DeviceTest.java | 53 result.getString(context.getResources().getString(R.string.message_key))); in testMutablePendingIntent() 55 result.getInt(context.getResources().getString(R.string.status_key))); in testMutablePendingIntent() 65 assumeTrue(status.getErrorMessage(), status.getStatusCode() != context.getResources() in testMutablePendingIntent() 68 context.getResources().getInteger(R.integer.fail)); in testMutablePendingIntent() 76 intent.putExtra(context.getResources().getString(R.string.callback_key), cb); in launchActivity()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0338/src/android/security/cts/CVE_2020_0338/ |
D | DeviceTest.java | 60 context.getResources().getString(R.string.SHARED_PREFERENCE), in testCVE_2020_0338() 62 result = sh.getInt(context.getResources().getString(R.string.RESULT_KEY), 0); in testCVE_2020_0338() 63 message = sh.getString(context.getResources().getString(R.string.MESSAGE_KEY), null); in testCVE_2020_0338() 66 result != context.getResources().getInteger(R.integer.ASSUMPTION_FAILURE)); in testCVE_2020_0338() 67 assertNotEquals(message, result, context.getResources().getInteger(R.integer.FAIL)); in testCVE_2020_0338()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewPaddingTest.java | 72 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding() 73 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding() 74 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding() 75 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding() 76 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding() 77 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding() 78 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding() 80 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding() 81 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/ |
D | PocActivity.java | 47 String pkg = isCar ? getResources().getString(R.string.settingsPkgCar) in credentialStorageReset() 48 : getResources().getString(R.string.settingsPkg); in credentialStorageReset() 49 String cls = isCar ? getResources().getString(R.string.certClsCar) in credentialStorageReset() 50 : getResources().getString(R.string.certCls); in credentialStorageReset()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/ |
D | DeviceTest.java | 61 .getResources().getInteger(R.integer.pass)) { in testdeleteNotificationChannelGroup() 69 context.getResources().getInteger(R.integer.timeoutMs), in testdeleteNotificationChannelGroup() 73 context.getResources().getInteger(R.integer.pass)); in testdeleteNotificationChannelGroup() 77 assumeTrue(message, result != context.getResources() in testdeleteNotificationChannelGroup() 80 context.getResources().getInteger(R.integer.fail)); in testdeleteNotificationChannelGroup()
|
D | PocService.java | 48 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate() 69 setResult(getResources().getInteger(R.integer.fail), in exploitBug() 72 setResult(getResources().getInteger(R.integer.fail), in exploitBug() 75 setResult(getResources().getInteger(R.integer.pass), in exploitBug() 94 Resources resources = getResources(); in createNotificationIcon()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39797/test-app/src/android/security/cts/CVE_2021_39797_test/ |
D | PocActivity.java | 54 setResult(prefs, getResources().getInteger(R.integer.noAssumptionFailure), ""); in onCreate() 63 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate() 78 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate() 83 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate() 95 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate() 99 setResult(prefs, getResources().getInteger(R.integer.noAssumptionFailure), ""); in onCreate()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Utils.java | 35 private static Resources getResources() { in getResources() method in Utils 36 return InstrumentationRegistry.getTargetContext().getResources(); in getResources() 40 return getResources().openRawResource(resId); in obtainInputStream() 44 Resources res = getResources(); in getAsResourceUri() 76 String name = getResources().getResourceEntryName(resId).toString(); in obtainFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioDescriptorActivity.java | 172 getResources() in detectHalVersion() 184 mInvalidHalErrorMsg = getResources().getString( in detectHalVersion() 270 return new Pair<>(true, getResources().getString(R.string.audio_descriptor_pass)); in testAudioDescriptors() 276 false, getResources().getString(R.string.audio_descriptor_standard_none)); in isAudioDescriptorValid() 280 false, getResources().getString(R.string.audio_descriptor_is_null)); in isAudioDescriptorValid() 286 return new Pair<>(false, getResources().getString( in isAudioDescriptorValid() 302 return new Pair<>(false, getResources().getString( in verifyShortAudioDescriptor() 312 return new Pair<>(true, getResources().getString(R.string.audio_descriptor_pass)); in verifyShortAudioDescriptor() 318 return new Pair<>(false, getResources().getString( in verifyShortAudioDescriptor() 325 return new Pair<>(false, getResources().getString( in verifyShortAudioDescriptor() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BitmapFactoryDecodeStreamTest.java | 42 … inStream = new BufferedInputStream(getInstrumentation().getContext().getResources().openRawResour… in testNinePatchHeapOverflow() 51 …loitImage = new BufferedInputStream(getInstrumentation().getContext().getResources().openRawResour… in testPocCVE_2017_0691() 59 …loitImage = new BufferedInputStream(getInstrumentation().getContext().getResources().openRawResour… in test_b65290323()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetDimensionsTest.java | 38 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBePositive() 44 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBeLessThanMaxRadius() 52 Resources resources = getInstrumentation().getTargetContext().getResources(); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RefocusTest.java | 72 Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), in refocus() 103 context.getResources().getResourcePackageName(resID) + '/' + in getResourceRef() 104 context.getResources().getResourceTypeName(resID) + '/' + in getResourceRef() 105 context.getResources().getResourceEntryName(resID)); in getResourceRef()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | Rgba16fTests.java | 47 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions() 68 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha() 92 AssetManager assets = getActivity().getResources().getAssets(); in testMasked() 96 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(), in testMasked() 126 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
|