Home
last modified time | relevance | path

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

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleServerService.java611 BluetoothGattDescriptor descriptor = null; in getDescriptor() local
615 descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID); in getDescriptor()
616 if (descriptor == null) { in getDescriptor()
620 return descriptor; in getDescriptor()
645 BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(UPDATE_DESCRIPTOR_UUID, in createAdditionalNotificationService() local
647 descriptor.setValue(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); in createAdditionalNotificationService()
648 notiCharacteristic.addDescriptor(descriptor); in createAdditionalNotificationService()
654 descriptor = new BluetoothGattDescriptor(UPDATE_DESCRIPTOR_UUID, 0x11); in createAdditionalNotificationService()
655 descriptor.setValue(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); in createAdditionalNotificationService()
656 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.java665 BluetoothGattDescriptor descriptor = getDescriptor(uid); in writeDescriptor() local
666 if (descriptor != null) { in writeDescriptor()
671 descriptor.setValue(writeValue.getBytes()); in writeDescriptor()
672 mBluetoothGatt.writeDescriptor(descriptor, writeValue.getBytes()); in writeDescriptor()
677 BluetoothGattDescriptor descriptor = getDescriptor(uuid); in readDescriptor() local
678 if (descriptor != null) { in readDescriptor()
679 mBluetoothGatt.readDescriptor(descriptor); in readDescriptor()
684 BluetoothGattDescriptor descriptor = getDescriptor(cuid, duid); in writeDescriptor() local
685 if (descriptor != null) { in writeDescriptor()
690 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 …]
/cts/hostsidetests/biometrics/src/android/server/biometrics/cts/
DSensorInfo.java44 public Info(SensorStateProto descriptor) { in Info() argument
45 mStrength = descriptor.getCurrentStrength(); in Info()
46 mModality = descriptor.getModality(); in Info()
56 public SensorInfo(BiometricServiceStateProto descriptor) { in SensorInfo() argument
57 for (SensorServiceStateProto serviceStateProto : descriptor.getSensorServiceStatesList()) { in SensorInfo()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp69 effect_descriptor_t descriptor; in main() local
70 memset(&descriptor, 0, sizeof(descriptor)); in main()
71 descriptor.type = EFFECT_UIID_EQUALIZER; in main()
72 descriptor.uuid = *EFFECT_UUID_NULL; in main()
97 legacy2aidl_effect_descriptor_t_EffectDescriptor(descriptor)); in main()
114 descriptor = VALUE_OR_RETURN_STATUS( in main()
/cts/tools/test-api-map/device-side/src/com/android/xts/apimapper/helper/
DDeviceApiMapperHelperRule.java47 (callerClass, callerMethod, opcode, methodOwner, methodName, descriptor, callerEntity)
56 descriptor,
62 mStats.onMethodCalled(className, methodName, descriptor);
92 String descriptor, in logMethodCall() argument
103 descriptor in logMethodCall()
110 getPackageClass(realClass), methodName, descriptor); in logMethodCall()
DDeviceMethodCallHook.java45 String methodOwner, String methodName, String descriptor, Object receiverObject) { in onBeforeCall() argument
50 methodOwner, methodName, descriptor, receiverObject); in onBeforeCall()
53 methodOwner, methodName, descriptor, receiverObject); in onBeforeCall()
DOnBeforeCallListener.java36 String methodName, String descriptor, Object callerEntity); in onBeforeCall() argument
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java69 for (AudioEffect.Descriptor descriptor : descriptors) { in testAllEffects()
74 descriptor.type, in testAllEffects()
75 descriptor.uuid, // uuid overrides type in testAllEffects()
78 Log.w(TAG, "effect " + testName + " " + descriptor.name in testAllEffects()
84 Log.d(TAG, "effect " + testName + " " + descriptor.name + " success"); in testAllEffects()
86 Log.e(TAG, "effect " + testName + " " + descriptor.name + " exception failed!", in testAllEffects()
90 Log.e(TAG, "effect " + testName + " " + descriptor.name + " assert failed!", in testAllEffects()
390 for (AudioEffect.Descriptor descriptor : descriptors) { in testVisualizerCapture_CVE_2017_0396()
391 if (descriptor.type.compareTo(UUID.fromString(VISUALIZER_TYPE)) != 0) { in testVisualizerCapture_CVE_2017_0396()
424 descriptor.type, descriptor.uuid, 0 /* priority */, in testVisualizerCapture_CVE_2017_0396()
DCVE_2024_49738.java40 final String descriptor = "cve_2024_49738_new"; in testPocCVE_2024_49738() local
47 parcel.writeStrongBinder(new Binder(descriptor)); in testPocCVE_2024_49738()
57 .that(parcel.readStrongBinder().getInterfaceDescriptor().contains(descriptor)) in testPocCVE_2024_49738()
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.java52 AudioEffect.Descriptor descriptor = descriptors[i]; in testVisualizer_MalformedConstructor() local
53 if (descriptor.type.compareTo(UUID.fromString(VISUALIZER_TYPE)) == 0) { in testVisualizer_MalformedConstructor()
/cts/libs/input/src/com/android/cts/input/
DInputDeviceAssociationByDescriptor.kt63 val descriptor = inputManager.getInputDevice(deviceId)!!.descriptor in associate() constant
66 descriptor, in associate()
82 return InputDeviceAssociationByDescriptor(inputManager, descriptor, display) in associate()
/cts/tools/test-api-map/instrumenttool/src/com/android/xts/apimapper/adapter/
DRuleInjectingAdapter.kt67 private val instanceRuleFieldDesc = Type.getType(Rule::class.java).descriptor in <lambda>()
68 private val classRuleFieldDesc = Type.getType(ClassRule::class.java).descriptor in <lambda>()
355 descriptor: String, in <lambda>()
365 if (isJunit3Test && name == RUN_BARE_METHOD && descriptor == RUN_BARE_DESC) { in <lambda>()
369 var mv = super.visitMethod(access, realName, descriptor, signature, exceptions) in <lambda>()
372 if (name == CLASS_INITIALIZER_NAME && descriptor == CLASS_INITIALIZER_DESC) { in <lambda>()
375 mv = InstanceRuleInjectingAdapter(access, name, descriptor, mv) in <lambda>()
425 descriptor: String, in <lambda>()
427 ) : AdviceAdapter(OPCODE_VERSION, next, access, name, descriptor) { in <lambda>()
DMethodCallHookingAdapter.kt72 descriptor: String, in <lambda>()
78 descriptor, in <lambda>()
79 super.visitMethod(access, name, descriptor, signature, exceptions) in <lambda>()
/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/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsFrameTracerDataSourceTest.java74 DataSourceDescriptor descriptor = state.getDataSources(i).getDsDescriptor(); in testFrameTracerProducerAvailable() local
75 if (descriptor != null) { in testFrameTracerProducerAvailable()
76 if (descriptor.getName().equals(FRAME_TRACER_SOURCE_NAME)) { in testFrameTracerProducerAvailable()
DCtsGpuProfilingDataTest.java201 DataSourceDescriptor descriptor = source.getDsDescriptor(); in testProfilingDataProducersAvailable() local
202 if (descriptor != null) { in testProfilingDataProducersAvailable()
203 if (descriptor.getName().equals(COUNTERS_SOURCE_NAME)) { in testProfilingDataProducersAvailable()
209 descriptor.hasGpuCounterDescriptor()); in testProfilingDataProducersAvailable()
212 descriptor.getGpuCounterDescriptor().getSpecsList().stream() in testProfilingDataProducersAvailable()
216 if (descriptor.getName().equals(STAGES_SOURCE_NAME)) { in testProfilingDataProducersAvailable()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationShellTest.java57 @NonNull ParcelFileDescriptor descriptor, in writeString()
60 try (AutoCloseOutputStream stream = new AutoCloseOutputStream(descriptor)) { in writeString()
64 private String readString(@NonNull ParcelFileDescriptor descriptor) throws IOException { in readString() argument
65 try (AutoCloseInputStream stream = new AutoCloseInputStream(descriptor)) { in readString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioDescriptorActivity.java278 for (AudioDescriptor descriptor : device.getAudioDescriptors()) { in testAudioDescriptors()
279 mLastTestedAudioDescriptor = descriptor; in testAudioDescriptors()
280 Pair<Boolean, String> ret = isAudioDescriptorValid(descriptor); in testAudioDescriptors()
289 private Pair<Boolean, String> isAudioDescriptorValid(AudioDescriptor descriptor) { in isAudioDescriptorValid() argument
290 if (descriptor.getStandard() == AudioDescriptor.STANDARD_NONE) { in isAudioDescriptorValid()
294 if (descriptor.getDescriptor() == null) { in isAudioDescriptorValid()
298 switch (descriptor.getStandard()) { in isAudioDescriptorValid()
300 return verifyShortAudioDescriptor(descriptor.getDescriptor()); in isAudioDescriptorValid()
303 R.string.audio_descriptor_unrecognized_standard, descriptor.getStandard())); in isAudioDescriptorValid()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDynamicConfigDeviceSide.java58 ParcelFileDescriptor descriptor = resolver.openFileDescriptor(sdcardUri,"r"); in DynamicConfigDeviceSide() local
60 initializeConfig(new ParcelFileDescriptor.AutoCloseInputStream(descriptor)); in DynamicConfigDeviceSide()
/cts/tools/cfassembler/src/dxconvext/
DClassFileParser.java132 String name, String descriptor) { in processFileBytes()
136 + ",desc: " + descriptor); in processFileBytes()
152 String name, String descriptor, Member member) { in processFileBytes()
155 + descriptor); in processFileBytes()
/cts/tests/input/src/android/input/cts/
DKeyboardLayoutTest.kt109 private fun getKeyboardLayoutTypeForLayoutDescriptor(descriptor: String): String? { in getKeyboardLayoutTypeForLayoutDescriptor()
111 inputManager.getKeyboardLayoutTypeForLayoutDescriptor(descriptor) in getKeyboardLayoutTypeForLayoutDescriptor()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBootClassPathClassesProvider.java47 .map(descriptor -> { in getAllClasses()
48 String classname = descriptor.replace('/', '.'); in getAllClasses()

12