Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 24 of 24) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleServerService.java598 BluetoothGattDescriptor descriptor = null; in getDescriptor() local
602 descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID); in getDescriptor()
603 if (descriptor == null) { in getDescriptor()
607 return descriptor; in getDescriptor()
620 … BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(UPDATE_DESCRIPTOR_UUID, 0x11); in createAdditionalNotificationService() local
621 descriptor.setValue(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); in createAdditionalNotificationService()
622 notiCharacteristic.addDescriptor(descriptor); in createAdditionalNotificationService()
628 descriptor = new BluetoothGattDescriptor(UPDATE_DESCRIPTOR_UUID, 0x11); in createAdditionalNotificationService()
629 descriptor.setValue(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); in createAdditionalNotificationService()
630 notiCharacteristic.addDescriptor(descriptor); in createAdditionalNotificationService()
[all …]
DBleEncryptedServerService.java278 BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(DESCRIPTOR_UUID, 0x11); in createService() local
279 characteristic.addDescriptor(descriptor); in createService()
282 descriptor = new BluetoothGattDescriptor(DESCRIPTOR_ENCRYPTED_READ_UUID, 0x02); in createService()
283 characteristic.addDescriptor(descriptor); in createService()
284 descriptor = new BluetoothGattDescriptor(DESCRIPTOR_ENCRYPTED_WRITE_UUID, 0x20); in createService()
285 characteristic.addDescriptor(descriptor); in createService()
290 descriptor = new BluetoothGattDescriptor(DESCRIPTOR_UUID, 0x11); in createService()
291 characteristic.addDescriptor(descriptor); in createService()
294 descriptor = new BluetoothGattDescriptor(DESCRIPTOR_UUID, 0x11); in createService()
295 characteristic.addDescriptor(descriptor); in createService()
[all …]
DBleClientService.java557 BluetoothGattDescriptor descriptor = getDescriptor(uid); in writeDescriptor() local
558 if (descriptor != null) { in writeDescriptor()
559 descriptor.setValue(writeValue.getBytes()); in writeDescriptor()
560 mBluetoothGatt.writeDescriptor(descriptor); in writeDescriptor()
565 BluetoothGattDescriptor descriptor = getDescriptor(uuid); in readDescriptor() local
566 if (descriptor != null) { in readDescriptor()
567 mBluetoothGatt.readDescriptor(descriptor); in readDescriptor()
572 BluetoothGattDescriptor descriptor = getDescriptor(cuid, duid); in writeDescriptor() local
573 if (descriptor != null) { in writeDescriptor()
574 descriptor.setValue(writeValue.getBytes()); in writeDescriptor()
[all …]
DBleEncryptedClientService.java241 BluetoothGattDescriptor descriptor = null; in getDescriptor() local
245 descriptor = characteristic.getDescriptor(uid); in getDescriptor()
246 if (descriptor == null) { in getDescriptor()
250 return descriptor; in getDescriptor()
264 BluetoothGattDescriptor descriptor; in startEncryptedAction() local
279 descriptor = getDescriptor(DESCRIPTOR_ENCRYPTED_WRITE_UUID); in startEncryptedAction()
280 descriptor.setValue(WRITE_VALUE.getBytes()); in startEncryptedAction()
281 mBluetoothGatt.writeDescriptor(descriptor); in startEncryptedAction()
285 descriptor = getDescriptor(DESCRIPTOR_ENCRYPTED_READ_UUID); in startEncryptedAction()
286 mBluetoothGatt.readDescriptor(descriptor); in startEncryptedAction()
[all …]
DBleCocServerService.java401 BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(DESCRIPTOR_UUID, 0x11); in createService() local
402 descriptor.setValue(WRITE_VALUE.getBytes()); in createService()
403 characteristic.addDescriptor(descriptor); in createService()
/cts/tests/tests/net/src/android/net/cts/
DVpnServiceTest.java51 ParcelFileDescriptor descriptor = null; in testEstablish() local
54 descriptor = mVpnService.new Builder().addAddress("8.8.8.8", 30).establish(); in testEstablish()
55 assertNull(descriptor); in testEstablish()
58 descriptor.close(); in testEstablish()
97 ParcelFileDescriptor descriptor = ParcelFileDescriptor.fromDatagramSocket(socket); in testProtect_int() local
100 assertFalse(mVpnService.protect(descriptor.getFd())); in testProtect_int()
103 descriptor.close(); in testProtect_int()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp52 effect_descriptor_t descriptor; in main() local
53 memset(&descriptor, 0, sizeof(descriptor)); in main()
54 descriptor.type = EFFECT_UIID_EQUALIZER; in main()
55 descriptor.uuid = *EFFECT_UUID_NULL; in main()
81 gEffect = audioFlinger->createEffect(&descriptor, effectClient, priority, in main()
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java62 for (AudioEffect.Descriptor descriptor : AudioEffect.queryEffects()) { in testAllEffects()
67 descriptor.type, in testAllEffects()
68 descriptor.uuid, // uuid overrides type in testAllEffects()
71 Log.w(TAG, "effect " + testName + " " + descriptor.name in testAllEffects()
77 Log.d(TAG, "effect " + testName + " " + descriptor.name + " success"); in testAllEffects()
79 Log.e(TAG, "effect " + testName + " " + descriptor.name + " exception failed!", in testAllEffects()
83 Log.e(TAG, "effect " + testName + " " + descriptor.name + " assert failed!", in testAllEffects()
375 for (AudioEffect.Descriptor descriptor : AudioEffect.queryEffects()) { in testVisualizerCapture_CVE_2017_0396()
376 if (descriptor.type.compareTo(UUID.fromString(VISUALIZER_TYPE)) != 0) { in testVisualizerCapture_CVE_2017_0396()
408 descriptor.type, descriptor.uuid, 0 /* priority */, in testVisualizerCapture_CVE_2017_0396()
DIBinderExchange.java57 java.lang.String descriptor = DESCRIPTOR; in onTransact() local
60 reply.writeString(descriptor); in onTransact()
64 data.enforceInterface(descriptor); in onTransact()
72 data.enforceInterface(descriptor); in onTransact()
DVisualizerEffectTest.java50 AudioEffect.Descriptor descriptor = descriptors[i]; in testVisualizer_MalformedConstructor() local
51 if (descriptor.type.compareTo(UUID.fromString(VISUALIZER_TYPE)) == 0) { in testVisualizer_MalformedConstructor()
DEffectBundleTest.java482 for (AudioEffect.Descriptor descriptor : AudioEffect.queryEffects()) { in verifyZeroPVSizeRejectedForSetParameter()
483 if (descriptor.type.compareTo(effectType) != 0) continue; in verifyZeroPVSizeRejectedForSetParameter()
493 ae = (AudioEffect) ct.newInstance(descriptor.type, descriptor.uuid, in verifyZeroPVSizeRejectedForSetParameter()
497 Log.w(TAG, "Failed to create effect " + descriptor.uuid); in verifyZeroPVSizeRejectedForSetParameter()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DVpnTestActivity.java54 private ParcelFileDescriptor descriptor = null; field in VpnTestActivity
105 descriptor = service.new Builder().addAddress("8.8.8.8", 30).establish(); in establishVpn()
106 if (descriptor == null) { in establishVpn()
115 descriptor.close(); in establishVpn()
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DMetricsUtils.java148 Descriptor descriptor = bucketInfo.getDescriptorForType(); in assertBucketTimePresent() local
150 FieldDescriptor bucketNum = descriptor.findFieldByName("bucket_num"); in assertBucketTimePresent()
151 FieldDescriptor startMillis = descriptor.findFieldByName("start_bucket_elapsed_millis"); in assertBucketTimePresent()
152 FieldDescriptor endMillis = descriptor.findFieldByName("end_bucket_elapsed_millis"); in assertBucketTimePresent()
/cts/tools/cfassembler/src/dxconvext/
DClassFileParser.java133 String name, String descriptor) { in processFileBytes()
137 + ",desc: " + descriptor); in processFileBytes()
153 String name, String descriptor, Member member) { in processFileBytes()
156 + descriptor); in processFileBytes()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDynamicConfigDeviceSide.java57 ParcelFileDescriptor descriptor = resolver.openFileDescriptor(sdcardUri,"r"); in DynamicConfigDeviceSide() local
59 initializeConfig(new ParcelFileDescriptor.AutoCloseInputStream(descriptor)); in DynamicConfigDeviceSide()
DBusinessLogicTestCase.java93 ParcelFileDescriptor descriptor = resolver.openFileDescriptor(sdcardUri, "r"); in loadBusinessLogic() local
95 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)); in loadBusinessLogic()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDynamicConfigDeviceSide.java57 ParcelFileDescriptor descriptor = resolver.openFileDescriptor(sdcardUri,"r"); in DynamicConfigDeviceSide() local
59 initializeConfig(new ParcelFileDescriptor.AutoCloseInputStream(descriptor)); in DynamicConfigDeviceSide()
DBusinessLogicTestCase.java85 ParcelFileDescriptor descriptor = resolver.openFileDescriptor(sdcardUri, "r"); in loadBusinessLogic() local
87 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)); in loadBusinessLogic()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBootClassPathClassesProvider.java42 .map(descriptor -> { in getAllClasses()
43 String classname = descriptor.replace('/', '.'); in getAllClasses()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp104 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring descriptor) { in Java_android_jvmti_JvmtiActivity_didSeeLoadOf() argument
106 ScopedUtfChars str(env, descriptor); in Java_android_jvmti_JvmtiActivity_didSeeLoadOf()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java122 final AssetFileDescriptor descriptor = in readTypedFully() local
125 try (AutoCloseInputStream in = new AutoCloseInputStream(descriptor)) { in readTypedFully()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DREADME.md10 4. `cat rdesc` will print the descriptor of this device
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java2349 final ParcelFileDescriptor descriptor = ParcelFileDescriptor.open(file, in testPrinting() local
2358 savePrintedPage(adapter, descriptor, pageRanges, result); in testPrinting()
2371 descriptor.close(); in testPrinting()
2396 final ParcelFileDescriptor descriptor = ParcelFileDescriptor.open(file, in testPrintingPagesCount() local
2407 savePrintedPage(adapter, descriptor, pageRanges, result); in testPrintingPagesCount()
2417 descriptor.close(); in testPrintingPagesCount()
2669 final ParcelFileDescriptor descriptor, final PageRange[] pageRanges, in savePrintedPage() argument
2671 adapter.onWrite(pageRanges, descriptor, in savePrintedPage()
2677 descriptor.close(); in savePrintedPage()
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/
DAuthenticator.java55 public IInterface queryLocalInterface(String descriptor) {