Home
last modified time | relevance | path

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

12345678910>>...17

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioCommunicationDeviceTest.java136 if (commDevice.getType() != device.getType()) { in doSetCommunicationDeviceSuccessTest()
138 + device.getType() + " but got: " + commDevice.getType()); in doSetCommunicationDeviceSuccessTest()
156 if (device.getType() == originalCommDevice.getType()) { in testSetCommunicationDeviceDeniedNotModeOwnerNotPrivileged()
175 && listenerDevice.getType() != originalCommDevice.getType()) { in testSetCommunicationDeviceDeniedNotModeOwnerNotPrivileged()
180 || listenerDevice.getType() != originalCommDevice.getType()) { in testSetCommunicationDeviceDeniedNotModeOwnerNotPrivileged()
182 + originalCommDevice.getType() in testSetCommunicationDeviceDeniedNotModeOwnerNotPrivileged()
184 ? AudioDeviceInfo.TYPE_UNKNOWN : listenerDevice.getType())); in testSetCommunicationDeviceDeniedNotModeOwnerNotPrivileged()
207 fail("setCommunicationDevice should fail for device: " + device.getType()); in testSetInvalidCommunicationDeviceFail()
349 if (device.getType() != originalDevice.getType()) { in testCommunicationDeviceListener()
362 if (listenerDevice == null || listenerDevice.getType() != requestedDevice.getType()) { 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.java203 String type = service.getType(); in keyStores()
210 assertEquals(algorithm, ks.getType()); in keyStores()
221 return (!(ks.getType().equals("JKS") in isSecretKeyEnabled()
222 || ks.getType().equals("CaseExactJKS") in isSecretKeyEnabled()
223 || (ks.getType().equals("PKCS12")) in isSecretKeyEnabled()
224 || (ks.getType().equals("AndroidKeyStore")))); in isSecretKeyEnabled()
229 return (!(ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("SunJSSE"))); in isCertificateEnabled()
233 return (ks.getType().equals("CaseExactJKS") in isCaseSensitive()
234 || ks.getType().equals("BKS") in isCaseSensitive()
235 || ks.getType().equals("BouncyCastle") in isCaseSensitive()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DChecksumsTest.java249 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testDefaultChecksums()
267 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
269 assertEquals(checksums[1].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
271 assertEquals(checksums[2].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
273 assertEquals(checksums[3].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
275 assertEquals(checksums[4].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
277 assertEquals(checksums[5].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testSplitsDefaultChecksums()
293 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256); in testFixedDefaultChecksums()
325 assertEquals(checksums[0].getType(), TYPE_PARTIAL_MERKLE_ROOT_1M_SHA512); in testFixedSha512DefaultChecksums()
347 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/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DSettingsProviderSettingChangedStatsTests.java62 assertEquals(2, reports.get(0).getType()); in testSettingsChanged()
65 assertEquals(1, reports.get(1).getType()); in testSettingsChanged()
68 assertEquals(0, reports.get(2).getType()); in testSettingsChanged()
71 assertEquals(2, reports.get(3).getType()); in testSettingsChanged()
74 assertEquals(1, reports.get(4).getType()); in testSettingsChanged()
77 assertEquals(0, reports.get(5).getType()); in testSettingsChanged()
/cts/tests/tests/content/src/android/content/res/cts/
DTypedArrayTest.java137 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type1)); in testGetType()
138 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type2)); in testGetType()
139 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type3)); in testGetType()
140 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type4)); in testGetType()
141 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type5)); in testGetType()
142 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type6)); in testGetType()
143 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type7)); in testGetType()
144 assertEquals(TypedValue.TYPE_STRING, t.getType(R.styleable.style1_type8)); in testGetType()
145 assertEquals(TypedValue.TYPE_FLOAT, t.getType(R.styleable.style1_type9)); in testGetType()
146 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 …]
/cts/tests/credentials/src/android/credentials/cts/unittests/
DCredentialTest.java55 assertThat(cred.getType()).isEqualTo(type); in testConstructor()
68 new Bundle()).getType()).isSameInstanceAs(Credential.TYPE_PASSWORD_CREDENTIAL); in testGetType()
85 assertThat(outCred.getType()).isEqualTo(inCred.getType()); in testWriteToParcel()
DGetCredentialExceptionTest.java52 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type()
65 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message()
78 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_cause()
92 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message_cause()
DClearCredentialStateExceptionTest.java50 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type()
62 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message()
74 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_cause()
88 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message_cause()
DCreateCredentialExceptionTest.java51 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type()
64 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message()
77 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_cause()
91 assertThat(exc.getType()).isEqualTo(type); in testConstructor_type_message_cause()
DTestUtils.java42 assertThat(a.getType()).isEqualTo(b.getType()); in assertEquals()
51 assertThat(a.getType()).isEqualTo(b.getType()); in assertEquals()
66 assertThat(a.getType()).isEqualTo(b.getType()); in assertEquals()
DGetCredentialResponseTest.java53 assertThat(response.getCredential().getType()).isEqualTo(type); in testConstructor()
67 assertThat(response2.getCredential().getType()).isEqualTo( in testWriteToParcel()
68 response2.getCredential().getType()); in testWriteToParcel()
DCreateCredentialRequestTest.java92 assertThat(req.getType()).isEqualTo(type); in testConstructor_setOrigin()
117 assertThat(req.getType()).isEqualTo(type); in testConstructor()
139 assertThat(req2.getType()).isEqualTo(req1.getType()); in testWriteToParcel()
/cts/tests/credentials/src/android/credentials/cts/unittests/service/
DCredentialEntryTest.java85 assertThat(entry.getType()).isSameInstanceAs(sCredOption.getType()); in testConstructorWithBeginGetCredentialOption_success()
119 assertThat(entry.getType()).isEqualTo(sCredEntryType); in testConstructorWithRawId_success()
130 assertThat(entry2.getType()).isEqualTo( in testWriteToParcel()
131 entry1.getType()); in testWriteToParcel()
DBeginGetCredentialOptionTest.java77 assertThat(option.getType()).isEqualTo(type); in testConstructor_success()
93 assertThat(option2.getType()).isEqualTo(option1.getType()); in testWriteToParcel_success()
/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/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java172 assertEquals(Icon.TYPE_BITMAP, icon.getType()); in testBitmapIcon_getType()
179 assertEquals(Icon.TYPE_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveBitmapIcon_getType()
187 assertEquals(Icon.TYPE_DATA, icon.getType()); in testDataIcon_getType()
199 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
203 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
207 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
223 assertEquals(Icon.TYPE_URI_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveFileIcon_getType()
227 assertEquals(Icon.TYPE_URI_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveFileIcon_getType()
237 assertEquals(Icon.TYPE_RESOURCE, icon.getType()); in testResourceIcon_getType()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DFormEditRecordTest.java50 assertEquals(EDIT_TYPE_CLICK, clickRecord.getType()); in testClickType()
69 assertEquals(EDIT_TYPE_SET_INDICES, setIndicesRecord.getType()); in testSetIndicesType()
88 assertEquals(EDIT_TYPE_SET_TEXT, setTextRecord.getType()); in testSetTextType()
111 assertEquals(in.getType(), out.getType()); in parcelable_textType()
130 assertEquals(in.getType(), out.getType()); in parcelable_indicesType()
149 assertEquals(in.getType(), out.getType()); in parcelable_clickType()
/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()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothGattServiceTest.java58 public void getType() { in getType() method in BluetoothGattServiceTest
59 assertEquals(mBluetoothGattService.getType(), BluetoothGattService.SERVICE_TYPE_PRIMARY); in getType()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DSidecarUtil.java129 .map(d -> d.getType()) in getSidecarDisplayFeatureTypes()
188 newDisplayFeature.setType(d.getType()); in assertEqualWindowLayoutInfo()
213 && portraitDisplayFeature.getType() == landscapeDisplayFeature.getType()) { in assertEqualWindowLayoutInfo()
243 newDisplayFeature.setType(d.getType()); in getMutualDisplayFeatures()

12345678910>>...17