Home
last modified time | relevance | path

Searched refs:getType (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioCommunicationDeviceTest.java58 if (commDevice == null || commDevice.getType() != device.getType()) { in testSetValidCommunicationDevice()
60 + device.getType() + " but got: " in testSetValidCommunicationDevice()
62 ? AudioDeviceInfo.TYPE_UNKNOWN : commDevice.getType())); in testSetValidCommunicationDevice()
96 fail("setCommunicationDevice should fail for device: " + device.getType()); in testSetInvalidCommunicationDevice()
198 if (device.getType() != originalDevice.getType()) { in testCommunicationDeviceListener()
210 if (listenerDevice == null || listenerDevice.getType() != requestedDevice.getType()) { in testCommunicationDeviceListener()
212 + requestedDevice.getType() + " but got: " in testCommunicationDeviceListener()
214 ? AudioDeviceInfo.TYPE_UNKNOWN : listenerDevice.getType())); in testCommunicationDeviceListener()
217 if (getterDevice == null || getterDevice.getType() != listenerDevice.getType()) { in testCommunicationDeviceListener()
219 + listenerDevice.getType() + " but got: " in testCommunicationDeviceListener()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DTtsSpanTest.java60 assertEquals("test.type.two", t.getType()); in testGetType()
85 assertEquals("test.type.five", t.getType()); in testWriteAndReadParcel()
104 assertEquals("test.type.builder", t.getType()); in testBuilder()
120 assertEquals("test.type.semioticClassBuilder", t.getType()); in testSemioticClassBuilder()
135 assertEquals(TtsSpan.TYPE_TEXT, t.getType()); in testTextBuilder()
142 assertEquals(TtsSpan.TYPE_TEXT, t.getType()); in testTextBuilder()
155 assertEquals(TtsSpan.TYPE_CARDINAL, t.getType()); in testCardinalBuilder()
164 assertEquals(TtsSpan.TYPE_CARDINAL, t.getType()); in testCardinalBuilder()
171 assertEquals(TtsSpan.TYPE_CARDINAL, t.getType()); in testCardinalBuilder()
178 assertEquals(TtsSpan.TYPE_CARDINAL, t.getType()); in testCardinalBuilder()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java179 String type = service.getType(); in keyStores()
186 assertEquals(algorithm, ks.getType()); in keyStores()
197 return (!(ks.getType().equals("JKS") in isSecretKeyEnabled()
198 || ks.getType().equals("CaseExactJKS") in isSecretKeyEnabled()
199 || (ks.getType().equals("PKCS12")) in isSecretKeyEnabled()
200 || (ks.getType().equals("AndroidKeyStore")))); in isSecretKeyEnabled()
205 return (!(ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("SunJSSE"))); in isCertificateEnabled()
209 return (ks.getType().equals("CaseExactJKS") in isCaseSensitive()
210 || ks.getType().equals("BKS") in isCaseSensitive()
211 || ks.getType().equals("BouncyCastle") in isCaseSensitive()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DChecksumsTest.java248 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testDefaultChecksums()
265 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
267 assertEquals(checksums[1].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
269 assertEquals(checksums[2].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
271 assertEquals(checksums[3].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
273 assertEquals(checksums[4].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
275 assertEquals(checksums[5].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
290 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testFixedDefaultChecksums()
320 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA512); in testFixedSha512DefaultChecksums()
340 assertEquals(checksums[0].getType(), TYPE_WHOLE_MERKLE_ROOT_4K_SHA256); in testFixedFSVerityDefaultChecksums()
[all …]
/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyTestCommand.java40 PowerPolicyTestCommandType getType() { in getType() method in PowerPolicyTestCommand
61 mTestClient.printResultHeader(getType().name()); in execute()
76 mTestClient.printResultHeader(getType().name()); in execute()
105 mTestClient.printResultHeader(getType().name()); in execute()
122 mTestClient.printResultHeader(getType().name()); in execute()
141 mTestClient.printResultHeader(getType().name()); in execute()
160 mTestClient.printResultHeader(getType().name() + ": " + mData); in execute()
184 mTestClient.printResultHeader(getType().name()); in execute()
203 mTestClient.printResultHeader(getType().name()); in execute()
/cts/tests/tests/content/src/android/content/res/cts/
DTypedArrayTest.java116 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type1)); in testGetType()
117 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type2)); in testGetType()
118 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type3)); in testGetType()
119 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type4)); in testGetType()
120 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type5)); in testGetType()
121 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type6)); in testGetType()
122 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type7)); in testGetType()
123 assertEquals(TypedValue.TYPE_STRING, t.getType(R.styleable.style1_type8)); in testGetType()
124 assertEquals(TypedValue.TYPE_FLOAT, t.getType(R.styleable.style1_type9)); in testGetType()
125 assertEquals(TypedValue.TYPE_FRACTION, t.getType(R.styleable.style1_type10)); in testGetType()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java96 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testBlur()
97 a2_copy = Allocation.createTyped(mRS, a2.getType()); in testBlur()
101 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testBlur()
725 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testColorMatrix()
726 a2_copy = Allocation.createTyped(mRS, a2.getType()); in testColorMatrix()
736 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
737 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
747 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
748 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
762 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testConvolve3x3()
[all …]
DIntrinsicBlur.java77 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) { in copyInput()
81 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) { in copyInput()
89 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) { in copyOutput()
93 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) { in copyOutput()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java163 assertEquals(Icon.TYPE_BITMAP, icon.getType()); in testBitmapIcon_getType()
170 assertEquals(Icon.TYPE_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveBitmapIcon_getType()
178 assertEquals(Icon.TYPE_DATA, icon.getType()); in testDataIcon_getType()
190 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
194 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
198 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
214 assertEquals(Icon.TYPE_URI_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveFileIcon_getType()
218 assertEquals(Icon.TYPE_URI_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveFileIcon_getType()
228 assertEquals(Icon.TYPE_RESOURCE, icon.getType()); in testResourceIcon_getType()
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java97 if (s.getType() < Sensor.TYPE_DEVICE_PRIVATE_BASE && in setUp()
98 … (!context.getPackageManager().isInstantApp() || s.getType() != Sensor.TYPE_HEART_RATE)) { in setUp()
141 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()); in testSensorOperations_accelerometer()
155 assertEquals(Sensor.TYPE_STEP_COUNTER, sensor.getType()); in testSensorOperations_stepCounter()
169 assertEquals(Sensor.TYPE_STEP_DETECTOR, sensor.getType()); in testSensorOperations_stepDetector()
183 assertEquals(Sensor.TYPE_MAGNETIC_FIELD, sensor.getType()); in testSensorOperations_magneticField()
198 assertEquals(Sensor.TYPE_GYROSCOPE, sensor.getType()); in testSensorOperations_gyroscope()
212 assertEquals(Sensor.TYPE_PRESSURE, sensor.getType()); in testSensorOperations_pressure()
224 assertEquals(Sensor.TYPE_ORIENTATION, sensor.getType()); in testSensorOperations_orientation()
234 assertEquals(Sensor.TYPE_TEMPERATURE, sensor.getType()); in testSensorOperations_temperature()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfo_RangeInfoTest.java53 assertEquals(RangeInfo.RANGE_TYPE_INT, r.getType()); in testObtain()
59 assertEquals(RangeInfo.RANGE_TYPE_FLOAT, r.getType()); in testObtain()
65 assertEquals(RangeInfo.RANGE_TYPE_PERCENT, r.getType()); in testObtain()
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java63 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testStartPrimaryActionMode()
77 assertEquals(ActionMode.TYPE_FLOATING, mode.getType()); in testStartFloatingActionMode()
90 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testStartTypelessActionMode()
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_SimRecordsNoSimTest.java77 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_ADN))).isEqualTo( in getType_recordsDir()
80 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_FDN))).isEqualTo( in getType_recordsDir()
83 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_SDN))).isEqualTo( in getType_recordsDir()
90 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_ADN, 3))).isEqualTo( in getType_recordItem()
93 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_FDN, 3))).isEqualTo( in getType_recordItem()
96 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_SDN, 3))).isEqualTo( in getType_recordItem()
102 assertThat(mResolver.getType( in getType_invalidUri_returnsNull()
DSimPhonebookContract_ElementaryFilesNoSimTest.java63 String mimeType = mResolver.getType(ElementaryFiles.CONTENT_URI); in getType_elementaryFiles()
70 String mimeType = mResolver.getType( in getType_itemUri()
78 assertThat(mResolver.getType( in getType_invalidUri_returnsNull()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DDexParser.java65 public Entry.EntryType getType() { in getType() method in DexParser
110 mInternalApiClassBuilderMap, classDef.getType()); in parse()
129 fieldBuilder.setType(ClassUtils.getCanonicalName(dxField.getType())); in parse()
189 apiAnnotationBuilder.setType(ClassUtils.getCanonicalName(annotation.getType())); in getAnnotationList()
251 fieldBuilder.setType(ClassUtils.getCanonicalName(f.getType())); in processField()
270 if (t.getType().length() == 1) { in isInternal()
273 } else if (t.getType().charAt(0) == ClassUtils.TYPE_ARRAY) { in isInternal()
280 return f.getType(); in getSignature()
298 + f.getType(); in getSignature()
302 return ClassUtils.getCanonicalName(f.getType()); in getCanonicalName()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DSidecarUtil.java113 .map(d -> d.getType()) in getSidecarDisplayFeatureTypes()
166 newDisplayFeature.setType(d.getType()); in assertEqualWindowLayoutInfo()
191 && portraitDisplayFeature.getType() == landscapeDisplayFeature.getType()) { in assertEqualWindowLayoutInfo()
221 newDisplayFeature.setType(d.getType()); in getMutualDisplayFeatures()
DTestGetWindowLayoutInfoActivity.java126 && mFeature.getType() == other.mFeature.getType(); in equals()
132 result = 31 * result + mFeature.getType(); in hashCode()
DExtensionUtil.java191 .map(d -> ((FoldingFeature) d).getType()) in getExtensionDisplayFeatureTypes()
248 return new FoldingFeature(newBounds, f.getType(), f.getState()); in assertEqualWindowLayoutInfo()
283 if (portraitFoldingFeature.getType() != landscapeFoldingFeature.getType() in assertEqualWindowLayoutInfo()
320 return new FoldingFeature(r, f.getType(), f.getState()); in getMutualDisplayFeatures()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DIntrinsicBLAS.java131 Element e = ref.getType().getElement(); in verifyMatrix()
198 if (X.getType().getY() > 2) { in validateVecInput()
209 int M = A.getType().getY(); in validateGEMV()
210 int N = A.getType().getX(); in validateGEMV()
211 if (!A.getType().getElement().isCompatible(e) || in validateGEMV()
212 !X.getType().getElement().isCompatible(e) || in validateGEMV()
213 !Y.getType().getElement().isCompatible(e)) { in validateGEMV()
216 if (X.getType().getY() > 1 || Y.getType().getY() > 1) { in validateGEMV()
231 if (X.getType().getX() != expectedXDim || in validateGEMV()
232 Y.getType().getX() != expectedYDim) { in validateGEMV()
[all …]
/cts/tests/tests/slice/src/android/slice/cts/
DSliceSpecTest.java60 assertEquals(s.getType(), s2.getType()); in verify()
/cts/tests/tests/os/src/android/os/cts/
DPatternMatcherTest.java53 assertEquals(PatternMatcher.PATTERN_LITERAL, mPatternMatcher.getType()); in testGetType()
56 assertEquals(PatternMatcher.PATTERN_PREFIX, mPatternMatcher.getType()); in testGetType()
59 assertEquals(PatternMatcher.PATTERN_SIMPLE_GLOB, mPatternMatcher.getType()); in testGetType()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java49 && info1.getType() == info2.getType() in compareTvInputInfos()
110 assertEquals(mStubInfo.getType(), infoFromParcel.getType()); in testTvInputInfoOp()
143 assertEquals(mStubInfo.getType(), TvInputInfo.TYPE_TUNER); in testGetTypeForTuner()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java252 assertEquals(getContext().getContentResolver().getType(PERM_URI), EXPECTED_MIME_TYPE); in testGetMimeTypePermission()
262 assertEquals(getContext().getContentResolver().getType(PRIV_URI), EXPECTED_MIME_TYPE); in testGetMimeTypePrivate()
272 assertEquals(getContext().getContentResolver().getType(AMBIGUOUS_URI), EXPECTED_MIME_TYPE); in testGetMimeTypeAmbiguous()
286 getContext().getContentResolver().getType(AMBIGUOUS_URI_COMPAT)); in testGetMimeTypeAmbiguousCompat()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DSavedDatasetsInfoTest.java41 assertThat(new SavedDatasetsInfo(TYPE_PASSWORDS, 0).getType()).isEqualTo(TYPE_PASSWORDS); in testType_passwords()
46 assertThat(new SavedDatasetsInfo(TYPE_OTHER, 0).getType()).isEqualTo(TYPE_OTHER); in testType_other()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerFrontendTest.java120 assertEquals(FrontendSettings.TYPE_ANALOG, settings.getType()); in testAnalogFrontendSettingsWithIntFrequency()
171 assertEquals(FrontendSettings.TYPE_ATSC3, settings.getType()); in testAtsc3FrontendSettingsWithIntFrequency()
214 assertEquals(FrontendSettings.TYPE_ATSC, settings.getType()); in testAtscFrontendSettingsWithIntFrequency()
248 assertEquals(FrontendSettings.TYPE_DVBC, settings.getType()); in testDvbcFrontendSettingsWithIntFrequency()
298 assertEquals(FrontendSettings.TYPE_DVBS, settings.getType()); in testDvbsFrontendSettingsWithIntFrequency()
353 assertEquals(FrontendSettings.TYPE_DVBT, settings.getType()); in testDvbtFrontendSettingsWithIntFrequency()
400 assertEquals(FrontendSettings.TYPE_ISDBS3, settings.getType()); in testIsdbs3FrontendSettingsWithIntFrequency()
436 assertEquals(FrontendSettings.TYPE_ISDBS, settings.getType()); in testIsdbsFrontendSettingsWithIntFrequency()
483 assertEquals(FrontendSettings.TYPE_ISDBT, settings.getType()); in testIsdbtFrontendSettingsWithIntFrequency()
545 assertEquals(FrontendSettings.TYPE_DTMB, settings.getType()); in testDtmbFrontendSettingsWithIntFrequency()
[all …]

12345678910>>...13