Home
last modified time | relevance | path

Searched refs:getInteger (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpController.java156 .getReferenceTime().getGpsTime().getGpsWeek().getInteger().intValue(); in buildNavMessageProto()
166 alpha[0] = ionoModel.getAlfa0().getInteger().byteValue() * IONOSPHERIC_ALFA_0_SCALE_FACTOR; in buildNavMessageProto()
167 alpha[1] = ionoModel.getAlfa1().getInteger().byteValue() * IONOSPHERIC_ALFA_1_SCALE_FACTOR; in buildNavMessageProto()
168 alpha[2] = ionoModel.getAlfa2().getInteger().byteValue() * IONOSPHERIC_ALFA_2_SCALE_FACTOR; in buildNavMessageProto()
169 alpha[3] = ionoModel.getAlfa3().getInteger().byteValue() * IONOSPHERIC_ALFA_3_SCALE_FACTOR; in buildNavMessageProto()
173 beta[0] = ionoModel.getBeta0().getInteger().byteValue() * IONOSPHERIC_BETA_0_SCALE_FACTOR; in buildNavMessageProto()
174 beta[1] = ionoModel.getBeta1().getInteger().byteValue() * IONOSPHERIC_BETA_1_SCALE_FACTOR; in buildNavMessageProto()
175 beta[2] = ionoModel.getBeta2().getInteger().byteValue() * IONOSPHERIC_BETA_2_SCALE_FACTOR; in buildNavMessageProto()
176 beta[3] = ionoModel.getBeta3().getInteger().byteValue() * IONOSPHERIC_BETA_3_SCALE_FACTOR; in buildNavMessageProto()
183 int satID = navModelElement.getSatelliteID().getInteger().intValue(); in buildNavMessageProto()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39808/src/android/security/cts/CVE_2021_39808/
DPocService.java44 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 …]
DDeviceTest.java58 .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/
DPocActivity.java38 int getInteger(int resId) { in getInteger() method in PocActivity
39 return getResources().getInteger(resId); in getInteger()
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()
[all …]
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20429/
DPocActivity.java37 int getInteger(int resId) { in getInteger() method in PocActivity
38 return getResources().getInteger(resId); in getInteger()
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()
[all …]
DCVE_2022_20429.java81 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()
162 int getInteger(int resId) { in getInteger() method in CVE_2022_20429
163 return mContext.getResources().getInteger(resId); in getInteger()
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/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java157 ? String.valueOf(mediaFormat.getInteger(MediaFormat.KEY_TRACK_ID)) in toExoPlayerFormat()
162 mediaFormat.getInteger( in toExoPlayerFormat()
165 mediaFormat.getInteger( in toExoPlayerFormat()
168 mediaFormat.getInteger(MediaFormat.KEY_WIDTH, /* defaultValue= */ Format.NO_VALUE); in toExoPlayerFormat()
170 mediaFormat.getInteger(MediaFormat.KEY_HEIGHT, /* defaultValue= */ Format.NO_VALUE); in toExoPlayerFormat()
175 mediaFormat.getInteger( in toExoPlayerFormat()
187 mediaFormat.getInteger( in toExoPlayerFormat()
191 mediaFormat.getInteger( in toExoPlayerFormat()
203 mediaFormat.getInteger(MediaFormat.KEY_IS_AUTOSELECT, /* defaultValue= */ 0) != 0 in toExoPlayerFormat()
207 mediaFormat.getInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, /* defaultValue= */ 0) in toExoPlayerFormat()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0953/src/android/security/cts/CVE_2021_0953/
DPocActivity.java77 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/
DPocActivity.java61 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/hostsidetests/securitybulletin/test-apps/CVE-2021-39626/src/android/security/cts/CVE_2021_39626/
DPocActivity.java39 int getInteger(@IntegerRes int resId) { in getInteger() method in PocActivity
40 return getResources().getInteger(resId); in getInteger()
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/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DPocService.java48 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()
DDeviceTest.java61 .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/
DPocActivity.java50 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/tests/tests/media/common/src/android/media/cts/
DNdkMediaCodec.java123 int width = format.getInteger(MediaFormat.KEY_WIDTH, -1); in configure()
124 int height = format.getInteger(MediaFormat.KEY_HEIGHT, -1); in configure()
125 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure()
126 int bitRate = format.getInteger(MediaFormat.KEY_BIT_RATE, -1); in configure()
127 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure()
128 int iFrameInterval = format.getInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); in configure()
130 format.getInteger(MediaFormat.KEY_LOW_LATENCY, -1) : -1; in configure()
131 int range = format.getInteger(MediaFormat.KEY_COLOR_RANGE, -1); in configure()
132 int standard = format.getInteger(MediaFormat.KEY_COLOR_STANDARD, -1); in configure()
133 int transfer = format.getInteger(MediaFormat.KEY_COLOR_TRANSFER, -1); in configure()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/
DPocService.java48 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/
DPocActivity.java54 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/
DDeviceTest.java53 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/hostsidetests/securitybulletin/test-apps/CVE-2021-0487/src/android/security/cts/CVE_2021_0487/
DPocService.java37 int getInteger(@IntegerRes int resId) { in getInteger() method in PocService
38 return getResources().getInteger(resId); in getInteger()
65 sendTestResult(getInteger(R.integer.assumptionFailure), e.getMessage()); in onCreate()
78 sendTestResult(getInteger(R.integer.pass), ""); in onStartCommand()
80 sendTestResult(getInteger(R.integer.assumptionFailure), e.getMessage()); in onStartCommand()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0441/src/android/security/cts/CVE_2021_0441/
DDeviceTest.java48 int getInteger(@IntegerRes int resId) { in getInteger() method in DeviceTest
49 return mAppContext.getResources().getInteger(resId); in getInteger()
76 device.wait(Until.hasObject(selectorAlert), getInteger(R.integer.wait_time_ms)); in testCVE_2021_0441()
78 getInteger(R.integer.wait_time_ms)); in testCVE_2021_0441()
92 && text.contains(Integer.toString(getInteger(R.integer.pictures)))) { in testCVE_2021_0441()
/cts/tests/tests/media/extractor/src/android/media/extractor/cts/
DMediaExtractorTest.java190 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvheDtr()
193 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheDtr()
197 trackFormatForDolbyVision.getInteger(MediaFormat.KEY_TRACK_ID); in testDolbyVisionMediaExtractorProfileDvheDtr()
199 final int trackIdForBackwardCompat = trackFormat.getInteger(MediaFormat.KEY_TRACK_ID); in testDolbyVisionMediaExtractorProfileDvheDtr()
239 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvheSt()
242 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheSt()
246 trackFormatForDolbyVision.getInteger(MediaFormat.KEY_TRACK_ID); in testDolbyVisionMediaExtractorProfileDvheSt()
248 final int trackIdForBackwardCompat = trackFormat.getInteger(MediaFormat.KEY_TRACK_ID); in testDolbyVisionMediaExtractorProfileDvheSt()
288 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvavSe()
291 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvavSe()
[all …]
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/
DStaticSharedLib.java26 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/
DPocActivity.java43 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-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DFirstPocActivity.java35 setSharedPreferenes(getResources().getInteger(R.integer.fail)); in onResume()
41 setSharedPreferenes(getResources().getInteger(R.integer.pass)); in onPause()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/
DDeviceTest.java100 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/
DPocActivity.java61 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()

12345678910>>...15