Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 18 of 18) 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 …]
DBleConnectionPriorityServerService.java240 BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(DESCRIPTOR_UUID, 0x11); in createService() local
241 characteristic.addDescriptor(descriptor); in createService()
244 characteristic.addDescriptor(descriptor); in createService()
247 characteristic.addDescriptor(descriptor); in createService()
/cts/tests/tests/net/src/android/net/cts/
DVpnServiceTest.java49 ParcelFileDescriptor descriptor = null; in testEstablish() local
52 descriptor = mVpnService.new Builder().addAddress("8.8.8.8", 30).establish(); in testEstablish()
53 assertNull(descriptor); in testEstablish()
56 descriptor.close(); in testEstablish()
93 ParcelFileDescriptor descriptor = ParcelFileDescriptor.fromDatagramSocket(socket); in testProtect_int() local
96 assertFalse(mVpnService.protect(descriptor.getFd())); in testProtect_int()
99 descriptor.close(); in testProtect_int()
/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()
370 for (AudioEffect.Descriptor descriptor : AudioEffect.queryEffects()) { in testVisualizerCapture_CVE_2017_0396()
371 if (descriptor.type.compareTo(UUID.fromString(VISUALIZER_TYPE)) != 0) { in testVisualizerCapture_CVE_2017_0396()
403 descriptor.type, descriptor.uuid, 0 /* priority */, in testVisualizerCapture_CVE_2017_0396()
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.java468 for (AudioEffect.Descriptor descriptor : AudioEffect.queryEffects()) { in verifyZeroPVSizeRejectedForSetParameter()
469 if (descriptor.type.compareTo(effectType) != 0) continue; in verifyZeroPVSizeRejectedForSetParameter()
479 ae = (AudioEffect) ct.newInstance(descriptor.type, descriptor.uuid, in verifyZeroPVSizeRejectedForSetParameter()
483 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.java91 Descriptor descriptor = bucketInfo.getDescriptorForType(); in assertBucketTimePresent() local
93 FieldDescriptor bucketNum = descriptor.findFieldByName("bucket_num"); in assertBucketTimePresent()
94 FieldDescriptor startMillis = descriptor.findFieldByName("start_bucket_elapsed_millis"); in assertBucketTimePresent()
95 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/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.java106 final AssetFileDescriptor descriptor = in readTypedFully() local
109 try (AutoCloseInputStream in = new AutoCloseInputStream(descriptor)) { in readTypedFully()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java2555 final ParcelFileDescriptor descriptor = ParcelFileDescriptor.open(file,
2569 savePrintedPage(adapter, descriptor, pageRanges, result);
2582 descriptor.close();
2607 final ParcelFileDescriptor descriptor = ParcelFileDescriptor.open(file,
2623 savePrintedPage(adapter, descriptor, pageRanges, result);
2633 descriptor.close();
2866 final ParcelFileDescriptor descriptor, final PageRange[] pageRanges,
2868 adapter.onWrite(pageRanges, descriptor,
2874 descriptor.close();
/cts/tests/tests/os/src/android/os/cts/
DMessengerTest.java74 public IInterface queryLocalInterface(String descriptor) {
/cts/tools/dasm/src/dasm/
DDAsm.java392 void newMethod(String name, String descriptor, int access) { in newMethod() argument
394 System.out.println("newMethod(" + name + ", " + descriptor + ", " in newMethod()
405 method_nat = new CstNat(new CstString(name), new CstString(descriptor)); in newMethod()