/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() 48 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate() 59 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup() 63 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup() 74 setResult(getResources().getInteger(R.integer.pass), in createNotificationGroup() 105 data.writeInt(getResources().getInteger(R.integer.setFlag)); in createNotificationGroup() 106 data.writeInt(getResources().getInteger(R.integer.setFlag)); in createNotificationGroup() 108 data.writeInt(getResources().getInteger(R.integer.setFlag)); in createNotificationGroup() 109 data.writeByte((byte) getResources().getInteger(R.integer.setFlag)); in createNotificationGroup() 112 getResources().getInteger(R.integer.setFlag)); 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() 75 .getInteger(R.integer.assumptionFailure)); in testService() 77 context.getResources().getInteger(R.integer.fail)); in testService()
|
/cts/hostsidetests/securitybulletin/test-apps/TestBluetoothDiscoverable/src/android/security/cts/TestBluetoothDiscoverable/ |
D | PocActivity.java | 47 int code = getInteger(R.integer.enable); in onCreate() 49 code = getInteger(R.integer.disable); in onCreate() 70 uiDevice.wait(Until.hasObject(selector), getInteger(R.integer.timeoutMs)); in onCreate() 76 sendTestResult(getInteger(R.integer.success), ""); in onCreate() 79 sendTestResult(getInteger(R.integer.assumptionFailure), e.getMessage()); in onCreate() 86 if (requestCode == getInteger(R.integer.enable) && resultCode == Activity.RESULT_OK) { in onActivityResult() 87 sendTestResult(getInteger(R.integer.enable), ""); in onActivityResult() 88 } else if (requestCode == getInteger(R.integer.disable) in onActivityResult() 90 sendTestResult(getInteger(R.integer.disable), ""); in onActivityResult()
|
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20429/ |
D | PocActivity.java | 46 int code = getInteger(R.integer.cve_2022_20429_enable); in onResume() 48 code = getInteger(R.integer.cve_2022_20429_disable); in onResume() 74 Until.hasObject(selector), getInteger(R.integer.cve_2022_20429_timeoutMs)); in onResume() 80 sendTestResult(getInteger(R.integer.cve_2022_20429_success), ""); in onResume() 83 sendTestResult(getInteger(R.integer.cve_2022_20429_failure), e.getMessage()); in onResume() 90 if (requestCode == getInteger(R.integer.cve_2022_20429_enable) in onActivityResult() 92 sendTestResult(getInteger(R.integer.cve_2022_20429_enable), ""); in onActivityResult() 93 } else if (requestCode == getInteger(R.integer.cve_2022_20429_disable) in onActivityResult() 95 sendTestResult(getInteger(R.integer.cve_2022_20429_disable), ""); in onActivityResult()
|
D | CVE_2022_20429.java | 81 mStatusCode = getInteger(R.integer.cve_2022_20429_failure); in testPocCVE_2022_20429() 99 getInteger(R.integer.cve_2022_20429_failure)); in testPocCVE_2022_20429() 141 getInteger(R.integer.cve_2022_20429_timeoutMs), TimeUnit.MILLISECONDS); in testPocCVE_2022_20429() 176 getInteger(R.integer.cve_2022_20429_timeoutMs), TimeUnit.MILLISECONDS)); in switchBluetoothMode() 177 assumeTrue(mErrorMessage, mStatusCode != getInteger(R.integer.cve_2022_20429_failure)); in switchBluetoothMode()
|
/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 …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20004/test-app/src/android/security/cts/CVE_2022_20004_test/ |
D | PocActivity.java | 61 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 71 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 88 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 92 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 101 sendTestResult(resources.getInteger(R.integer.pass), ""); in onCreate() 104 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 109 sendTestResult(resources.getInteger(R.integer.assumption_failure), in onCreate() 113 sendTestResult(resources.getInteger(R.integer.fail), getString(R.string.fail_msg)); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceRequestVerifierActivity.java | 258 integer -> { in requestAction() 259 if (integer.equals( in requestAction() 263 setFailed("Request called back with result: " + integer); in requestAction() 294 integer -> { in requestAction() 295 if (integer.equals( in requestAction() 300 setFailed("Request called back with result: " + integer); in requestAction() 329 integer -> { in requestAction() 330 if (integer.equals(StatusBarManager.TILE_ADD_REQUEST_RESULT_TILE_ADDED)) { in requestAction() 333 setFailed("Request called back with result: " + integer); in requestAction() 369 integer -> { in test() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/ |
D | DeviceTest.java | 79 int result = mSharedPrefs.getInt(key, getIntegerRes(R.integer.assumptionFailure)); in checkResult() 83 result != getIntegerRes(R.integer.assumptionFailure)); in checkResult() 87 mIsVulnerable && result == getIntegerRes(R.integer.fail)); in checkResult() 95 launchMainActivity(getIntegerRes(R.integer.twoActivities)); in testRaceCondition() 107 getIntegerRes(R.integer.assumptionFailure)) == getIntegerRes( in testRaceCondition() 108 R.integer.pass)) { in testRaceCondition() 114 getIntegerRes(R.integer.assumptionFailure)) == getIntegerRes( in testRaceCondition() 115 R.integer.pass)) { in testRaceCondition() 142 launchMainActivity(getIntegerRes(R.integer.threeActivities)); in testRaceCondition() 143 preferenceChanged.tryAcquire(getIntegerRes(R.integer.permitCount), timeoutSec, in testRaceCondition()
|
D | FirstPocActivity.java | 35 setSharedPreferenes(getResources().getInteger(R.integer.fail)); in onResume() 41 setSharedPreferenes(getResources().getInteger(R.integer.pass)); in onPause()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/ |
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() 96 resources.getInteger(R.integer.width), in createNotificationIcon() 97 resources.getInteger(R.integer.height), in createNotificationIcon()
|
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() 78 .getInteger(R.integer.assumptionFailure)); in testdeleteNotificationChannelGroup() 80 context.getResources().getInteger(R.integer.fail)); in testdeleteNotificationChannelGroup()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20115/src/android/security/cts/CVE_2022_20115/ |
D | PocActivity.java | 50 setResultForSP(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), 58 setResultForSP(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), 69 .getResources().getInteger(R.integer.MAX_WAIT_TIME_MS))) { 73 .getInteger(R.integer.BROADCAST_WAIT_TIME_MS)); 80 setResultForSP(getResources().getInteger(R.integer.FAIL), 83 setResultForSP(getResources().getInteger(R.integer.PASS),
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/ |
D | PocService.java | 48 mResources.getInteger(R.integer.requestCode), in onStartCommand() 56 mResources.getInteger(R.integer.requestCode), in onStartCommand() 94 .setDesiredHeight(mResources.getInteger(R.integer.bubbleMetaDataheight)) in onStartCommand() 118 mResources.getInteger(R.integer.idPocNotification), in onStartCommand() 129 getResources().getInteger(R.integer.iconWidth), in createNotificationIcon() 130 getResources().getInteger(R.integer.iconHeight), 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/hostsidetests/securitybulletin/test-apps/CVE-2022-20415/src/android/security/cts/CVE_2022_20415/ |
D | DeviceTest.java | 53 Bitmap testBitmap = Bitmap.createBitmap(mResources.getInteger(R.integer.width), in createNotificationIcon() 54 mResources.getInteger(R.integer.height), Bitmap.Config.ARGB_8888); in createNotificationIcon() 63 mResources.getInteger(R.integer.requestCodeIntent), in tryNotificationStart() 86 mResources.getInteger(R.integer.idTestNotification), pocNotification); in tryNotificationStart() 87 mNotificationManager.notify(mResources.getInteger(R.integer.idSummaryNotification), in tryNotificationStart() 126 mNotificationManager.cancel(mResources.getInteger(R.integer.idSummaryNotification)); in testFullScreenIntent() 128 mResources.getInteger(R.integer.idTestNotification)); in testFullScreenIntent()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/util/ |
D | ParcelableUtils.java | 50 public static void writeNullableInt(Parcel parcel, Integer integer) { in writeNullableInt() argument 51 writeBoolean(parcel, integer != null); in writeNullableInt() 52 if (integer != null) { in writeNullableInt() 53 parcel.writeInt(integer); in writeNullableInt()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 106 android.appwidget.cts.R.integer.first_target_cell_appwidget_size)) in verifyInstalledProviders() 110 android.appwidget.cts.R.integer.first_target_cell_appwidget_size)) in verifyInstalledProviders() 112 … assertEquals(getIntResource(android.appwidget.cts.R.integer.first_update_period_millis), in verifyInstalledProviders() 118 assertEquals(getIntResource(android.appwidget.cts.R.integer.first_resize_mode), in verifyInstalledProviders() 120 assertEquals(getIntResource(android.appwidget.cts.R.integer.first_widget_category), in verifyInstalledProviders() 155 android.appwidget.cts.R.integer.second_target_cell_appwidget_size)) in verifyInstalledProviders() 159 android.appwidget.cts.R.integer.second_target_cell_appwidget_size)) in verifyInstalledProviders() 161 … assertEquals(getIntResource(android.appwidget.cts.R.integer.second_update_period_millis), in verifyInstalledProviders() 167 assertEquals(getIntResource(android.appwidget.cts.R.integer.second_resize_mode), in verifyInstalledProviders() 169 assertEquals(getIntResource(android.appwidget.cts.R.integer.second_widget_category), in verifyInstalledProviders()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20116/src/android/security/cts/CVE_2022_20116/ |
D | PocService.java | 46 Bitmap bitmap = Bitmap.createBitmap(getIntegerRes(R.integer.width), in createNotificationIcon() 47 getIntegerRes(R.integer.height), Bitmap.Config.ARGB_8888); in createNotificationIcon() 61 PendingIntent.getService(this, getResources().getInteger(R.integer.requestCode), in showNotification() 67 startForeground(getIntegerRes(R.integer.notificationId), notification); in showNotification()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | TestRearDisplayCrashingActivity.java | 42 mWindowAreaComponent.startRearDisplayPresentationSession(this, integer -> { in onPostResume() 43 if (integer == WindowAreaComponent.SESSION_STATE_ACTIVE) { in onPostResume()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39626/src/android/security/cts/CVE_2021_39626/ |
D | PocActivity.java | 72 sendTestResult(getInteger(R.integer.pass), ""); in onCreate() 77 sendTestResult(getInteger(R.integer.assumptionFailure), e.getMessage()); in onCreate() 86 sendTestResult(getInteger(R.integer.enabled), ""); in onActivityResult() 89 sendTestResult(getInteger(R.integer.disabled), ""); in onActivityResult()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/ |
D | StaticSharedLib.java | 26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion() 30 .getInteger(android.os.lib.provider.recursive.R.integer.version); in getRecursiveVersion()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/ |
D | PocActivity.java | 43 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate() 51 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate() 55 setResult(getResources().getInteger(R.integer.noFailure), ""); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/ |
D | DeviceTest.java | 100 int result = resources.getInteger(R.integer.pocServNotStart); in testService() 107 resources.getInteger(R.integer.pocServNotStart)); in testService() 109 if (result < resources.getInteger(R.integer.pocServNotStart)) { in testService() 115 result != resources.getInteger(R.integer.pocServNotStart)); in testService() 116 assertEquals(message, resources.getInteger(R.integer.pass), result); in testService()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0338/src/android/security/cts/CVE_2020_0338/ |
D | PocActivity.java | 61 setResult(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), e.toString()); in readFileDescriptor() 66 setResult(getResources().getInteger(R.integer.FAIL), "Vulnerable to b/123700107!!"); in readFileDescriptor() 90 setResult(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), e.toString()); in grantSettingsPermissions()
|