/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlOffsetDescriptorTest.java | 34 VolumeControlOffsetDescriptor descriptor = new VolumeControlOffsetDescriptor(); in testVolumeControlOffsetDescriptorInvalidIdOperations() local 41 assertThat(descriptor.setValue(invalidId, testValue)).isFalse(); in testVolumeControlOffsetDescriptorInvalidIdOperations() 42 assertThat(descriptor.getValue(invalidId)).isEqualTo(0); in testVolumeControlOffsetDescriptorInvalidIdOperations() 43 assertThat(descriptor.setDescription(invalidId, testDesc)).isFalse(); in testVolumeControlOffsetDescriptorInvalidIdOperations() 45 assertThat(descriptor.getDescription(invalidId)).isNull(); in testVolumeControlOffsetDescriptorInvalidIdOperations() 46 assertThat(descriptor.setLocation(invalidId, testLocation)).isFalse(); in testVolumeControlOffsetDescriptorInvalidIdOperations() 48 assertThat(descriptor.getLocation(invalidId)).isEqualTo(0); in testVolumeControlOffsetDescriptorInvalidIdOperations() 53 VolumeControlOffsetDescriptor descriptor = new VolumeControlOffsetDescriptor(); in testVolumeControlOffsetDescriptorMultipleInstanceAdded() local 58 assertThat(descriptor.size()).isEqualTo(0); in testVolumeControlOffsetDescriptorMultipleInstanceAdded() 59 descriptor.add(validId); in testVolumeControlOffsetDescriptorMultipleInstanceAdded() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/utils/ |
D | HealthConnectMappingsTest.java | 91 for (DataTypeDescriptor descriptor : getAllDataTypeDescriptors()) { in getHealthReadPermission() 94 descriptor.getPermissionCategory())) in getHealthReadPermission() 95 .isEqualTo(descriptor.getReadPermission()); in getHealthReadPermission() 103 for (DataTypeDescriptor descriptor : getAllDataTypeDescriptors()) { in getHealthReadPermission_equalsToLegacy() 106 descriptor.getPermissionCategory())) in getHealthReadPermission_equalsToLegacy() 109 descriptor.getPermissionCategory())); in getHealthReadPermission_equalsToLegacy() 116 for (DataTypeDescriptor descriptor : getAllDataTypeDescriptors()) { in getHealthWritePermission() 117 assertWithMessage(descriptor.getRecordClass().getSimpleName()) in getHealthWritePermission() 120 descriptor.getPermissionCategory())) in getHealthWritePermission() 121 .isEqualTo(descriptor.getWritePermission()); in getHealthWritePermission() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipImageDescriptorTest.java | 48 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingConstants() local 49 assertThat(descriptor.toString()).isEqualTo(expected); in testBuildImageDescriptor_encodingConstants() 66 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingObject() local 67 assertThat(descriptor.toString()).isEqualTo(expected); in testBuildImageDescriptor_encodingObject() 84 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_proprietaryEncoding() local 85 assertThat(descriptor.toString()).isEqualTo(expected); in testBuildImageDescriptor_proprietaryEncoding() 102 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantStretch() local 103 assertThat(descriptor.toString()).isEqualTo(expected); in testBuildImageDescriptor_transformationConstantStretch() 120 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantCrop() local 121 assertThat(descriptor.toString()).isEqualTo(expected); in testBuildImageDescriptor_transformationConstantCrop() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioService.java | 743 LeAudioGroupDescriptor descriptor = entry.getValue(); in cleanup() local 745 if (descriptor.isActive()) { in cleanup() 746 descriptor.setActiveState(ACTIVE_STATE_INACTIVE); in cleanup() 749 descriptor.mDirection, in cleanup() 759 for (LeAudioDeviceDescriptor descriptor : mDeviceDescriptors.values()) { in cleanup() 760 LeAudioStateMachine sm = descriptor.mStateMachine; in cleanup() 871 LeAudioDeviceDescriptor descriptor = mDeviceDescriptors.get(device); in createDeviceDescriptor() local 872 if (descriptor == null) { in createDeviceDescriptor() 874 descriptor = mDeviceDescriptors.get(device); in createDeviceDescriptor() 880 return descriptor; in createDeviceDescriptor() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/utils/ |
D | InternalHealthConnectMappingsTest.java | 73 for (var descriptor : descriptors) { in getRecordTypeIdForUuid() 74 String className = descriptor.getRecordHelper().getClass().getSimpleName(); in getRecordTypeIdForUuid() 75 int recordTypeId = descriptor.getRecordTypeIdentifier(); in getRecordTypeIdForUuid() 98 for (var descriptor : descriptors) { in getRecordTypeIdForUuid_equalsToLegacy() 99 String className = descriptor.getRecordHelper().getClass().getSimpleName(); in getRecordTypeIdForUuid_equalsToLegacy() 100 int recordTypeId = descriptor.getRecordTypeIdentifier(); in getRecordTypeIdForUuid_equalsToLegacy() 118 for (var descriptor : descriptors) { in getRecordHelpers() 119 assertThat(recordHelpers).contains(descriptor.getRecordHelper()); in getRecordHelpers() 143 for (var descriptor : descriptors) { in getRecordHelper() 144 int recordTypeId = descriptor.getRecordTypeIdentifier(); in getRecordHelper() [all …]
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | PipeManagerTest.java | 54 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_basic() local 57 assertDescriptor(descriptor, HELLO_BYTES); in testReadDocument_basic() 61 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_error() local 64 assertDescriptorError(descriptor); in testReadDocument_error() 69 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_basic() local 72 assertDescriptor(descriptor, HELLO_BYTES); in testReadThumbnail_basic() 76 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_error() local 79 assertDescriptorError(descriptor); in testReadThumbnail_error() 82 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) in assertDescriptor() argument 87 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in assertDescriptor() [all …]
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Gatt.kt | 96 val descriptor: BluetoothGattDescriptor? = in writeAttFromHandle() constant 98 checkNotNull(descriptor) { in writeAttFromHandle() 102 gattInstance.writeDescriptorBlocking(descriptor, request.value.toByteArray()) in writeAttFromHandle() 238 val descriptor: BluetoothGattDescriptor? = in readCharacteristicDescriptorFromHandle() constant 240 checkNotNull(descriptor) { "Descriptor handle ${request.handle} not found." } in readCharacteristicDescriptorFromHandle() 241 val readValue = gattInstance.readDescriptorBlocking(descriptor) in readCharacteristicDescriptorFromHandle() 302 val descriptor: BluetoothGattDescriptor? = in setCharacteristicNotificationFromHandle() constant 304 checkNotNull(descriptor) { "Found no descriptor with handle ${request.handle}" } in setCharacteristicNotificationFromHandle() 305 var characteristic = descriptor.getCharacteristic() in setCharacteristicNotificationFromHandle() 310 descriptor, in setCharacteristicNotificationFromHandle() [all …]
|
D | GattInstance.kt | 131 descriptor: BluetoothGattDescriptor, in onDescriptorRead() 138 descriptor.getUuid() == gattInstanceValueRead.uuid && in onDescriptorRead() 139 descriptor.getInstanceId() >= gattInstanceValueRead.handle in onDescriptorRead() 160 descriptor: BluetoothGattDescriptor, in onDescriptorWrite() 332 descriptor: BluetoothGattDescriptor in readDescriptorBlocking() 338 descriptor.getUuid(), in readDescriptorBlocking() 339 descriptor.getInstanceId(), in readDescriptorBlocking() 344 if (mGatt.readDescriptor(descriptor)) { in readDescriptorBlocking() 373 descriptor: BluetoothGattDescriptor, in writeDescriptorBlocking() 377 descriptor.getUuid(), in writeDescriptorBlocking() [all …]
|
/packages/modules/Bluetooth/floss/pandora/floss/ |
D | bluetooth_gatt_service.py | 84 'descriptors': [descriptor.to_dict() for descriptor in self.descriptors], 146 …descriptors=[create_gatt_characteristic_descriptor(descriptor) for descriptor in characteristic['d… 152 def create_gatt_characteristic_descriptor(descriptor): argument 161 return Descriptor(instance_id=descriptor['instance_id'], 162 permissions=descriptor['permissions'], 163 uuid=str(uuid.UUID(bytes=bytes(descriptor['uuid']))).upper(), 164 value=descriptor.get('value'))
|
/packages/modules/Virtualization/libs/vbmeta/src/ |
D | descriptor.rs | 44 descriptor: AvbHashtreeDescriptor, field 51 extern "C" fn desc_cb(descriptor: *const AvbDescriptor, user_data: *mut c_void) -> bool { in from_image() 55 if !avb_descriptor_validate_and_byteswap(descriptor, desc.as_mut_ptr()) { in from_image() 63 descriptor as *const _ as *const u8, in from_image() 119 let descriptor = unsafe { in to_hashtree() localVariable 127 Ok(HashtreeDescriptor { descriptor, data }) in to_hashtree() 140 + self.descriptor.partition_name_len as usize in root_digest() 141 + self.descriptor.salt_len as usize; in root_digest() 142 let end = begin + self.descriptor.root_digest_len as usize; in root_digest()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | BinderTracker.java | 141 String descriptor; 143 descriptor = binder.getInterfaceDescriptor(); 144 if (sAllowedFrameworkClasses.contains(descriptor)) { 149 descriptor = binder.getClass().getSimpleName(); 154 mMainThreadTraceStack.peekLast(), descriptor, transactionCode, 157 Log.d(TAG, "MainThread-IPC " + descriptor + " ignored due to " + ipcBypass); 203 public final String descriptor; 208 String activeTrace, String descriptor, int transactionCode, String stackTrace) { 210 this.descriptor = descriptor;
|
/packages/modules/Bluetooth/system/bta/hh/ |
D | bta_hh_api.cc | 313 size_t len = sizeof(tBTA_HH_MAINT_DEV) + dscp_info.descriptor.dl_len; in BTA_HhAddDev() 326 if (dscp_info.descriptor.dl_len != 0 && dscp_info.descriptor.dsc_list) { in BTA_HhAddDev() 327 p_buf->dscp_info.descriptor.dl_len = dscp_info.descriptor.dl_len; in BTA_HhAddDev() 328 p_buf->dscp_info.descriptor.dsc_list = (uint8_t*)(p_buf + 1); in BTA_HhAddDev() 329 memcpy(p_buf->dscp_info.descriptor.dsc_list, dscp_info.descriptor.dsc_list, in BTA_HhAddDev() 330 dscp_info.descriptor.dl_len); in BTA_HhAddDev() 332 p_buf->dscp_info.descriptor.dsc_list = NULL; in BTA_HhAddDev() 333 p_buf->dscp_info.descriptor.dl_len = 0; in BTA_HhAddDev()
|
/packages/services/Car/tools/ |
D | update-obd2-sensors.py | 30 def __init__(self, descriptor): argument 33 self.descriptor = descriptor 145 "public final class %sSensorIndex {\n" % theSensors.descriptor + \ 146 " private %sSensorIndex() {}\n" % theSensors.descriptor 157 theSensors.descriptor.upper(), 159 self.adjustSensorId(theSensors.descriptor.upper(), str(theSensor.id)) 162 def adjustSensorId(self, descriptor, sensorId): argument 164 return "DIAGNOSTIC_SENSOR_%s_%s" % (descriptor, sensorId.upper()) 170 return "%sSensorIndex.%s," % (theSensors.descriptor,sensorName) 202 intSensors = SensorList(descriptor="Integer") [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/ |
D | DvbTunerHal.java | 140 ParcelFileDescriptor descriptor = in openDvbFrontEndFd() local 143 if (descriptor != null) { in openDvbFrontEndFd() 144 return descriptor.detachFd(); in openDvbFrontEndFd() 153 ParcelFileDescriptor descriptor = in openDvbDemuxFd() local 156 if (descriptor != null) { in openDvbDemuxFd() 157 return descriptor.detachFd(); in openDvbDemuxFd() 166 ParcelFileDescriptor descriptor = in openDvbDvrFd() local 169 if (descriptor != null) { in openDvbDvrFd() 170 return descriptor.detachFd(); in openDvbDvrFd()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/ |
D | CoverArt.java | 119 public byte[] getImage(BipImageDescriptor descriptor) { in getImage() argument 120 debug("GetImage(descriptor=" + descriptor); in getImage() 122 if (descriptor == null) return getImage(); in getImage() 123 if (!isDescriptorValid(descriptor)) { in getImage() 134 private static boolean isDescriptorValid(BipImageDescriptor descriptor) { in isDescriptorValid() argument 135 debug("isDescriptorValid(descriptor=" + descriptor + ")"); in isDescriptorValid() 136 if (descriptor == null) return false; in isDescriptorValid() 138 BipEncoding encoding = descriptor.getEncoding(); in isDescriptorValid() 139 BipPixel pixel = descriptor.getPixel(); in isDescriptorValid()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | VpnServiceTest.java | 78 ParcelFileDescriptor descriptor = null; in testEstablish() local 81 descriptor = mVpnService.new Builder().addAddress("8.8.8.8", 30).establish(); in testEstablish() 82 assertNull(descriptor); in testEstablish() 85 descriptor.close(); in testEstablish() 128 ParcelFileDescriptor descriptor = ParcelFileDescriptor.fromDatagramSocket(socket); in testProtect_int() local 131 assertFalse(mVpnService.protect(descriptor.getFd())); in testProtect_int() 134 descriptor.close(); in testProtect_int()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | SectionParser.java | 907 for (TsDescriptor descriptor : descriptors) { in parseVCT() 908 if (descriptor instanceof ExtendedChannelNameDescriptor) { in parseVCT() 910 (ExtendedChannelNameDescriptor) descriptor; in parseVCT() 1212 for (TsDescriptor descriptor : descriptors) { in generateAudioTracks() 1213 if (descriptor instanceof Ac3AudioDescriptor) { in generateAudioTracks() 1214 Ac3AudioDescriptor audioDescriptor = (Ac3AudioDescriptor) descriptor; in generateAudioTracks() 1232 for (TsDescriptor descriptor : descriptors) { in generateAudioTracks() 1233 if (descriptor instanceof Iso639LanguageDescriptor) { in generateAudioTracks() 1235 (Iso639LanguageDescriptor) descriptor; in generateAudioTracks() 1288 for (TsDescriptor descriptor : descriptors) { in generateCaptionTracks() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/ |
D | TbsGattTest.java | 132 BluetoothGattDescriptor descriptor = in configureNotifications() local 134 assertThat(descriptor).isNotNull(); in configureNotifications() 139 descriptor, in configureNotifications() 922 BluetoothGattDescriptor descriptor = in testClientCharacteristicConfiguration() local 926 mTbsGatt.mGattServerCallback.onDescriptorReadRequest(mFirstDevice, 1, 0, descriptor); in testClientCharacteristicConfiguration() 938 mTbsGatt.mGattServerCallback.onDescriptorReadRequest(mFirstDevice, 1, 0, descriptor); in testClientCharacteristicConfiguration() 950 mTbsGatt.mGattServerCallback.onDescriptorReadRequest(mFirstDevice, 1, 0, descriptor); in testClientCharacteristicConfiguration() 966 BluetoothGattDescriptor descriptor = in testMultipleClientCharacteristicConfiguration() local 970 mTbsGatt.mGattServerCallback.onDescriptorReadRequest(mFirstDevice, 1, 0, descriptor); in testMultipleClientCharacteristicConfiguration() 979 mTbsGatt.mGattServerCallback.onDescriptorReadRequest(mSecondDevice, 1, 0, descriptor); in testMultipleClientCharacteristicConfiguration() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AsyncImageView.java | 120 public void setImageResourceId(@Nullable final ImageRequestDescriptor descriptor) { in setImageResourceId() argument 121 final String requestKey = (descriptor == null) ? null : descriptor.getKey(); in setImageResourceId() 134 maybeSetupPlaceholderDrawable(descriptor); in setImageResourceId() 136 descriptor.buildAsyncMediaRequest(getContext(), this); in setImageResourceId() 164 private void maybeSetupPlaceholderDrawable(final ImageRequestDescriptor descriptor) { in maybeSetupPlaceholderDrawable() argument 165 if (!TextUtils.isEmpty(descriptor.getKey()) && mPlaceholderDrawable != null) { in maybeSetupPlaceholderDrawable() 166 if (descriptor.sourceWidth != ImageRequest.UNSPECIFIED_SIZE && in maybeSetupPlaceholderDrawable() 167 descriptor.sourceHeight != ImageRequest.UNSPECIFIED_SIZE) { in maybeSetupPlaceholderDrawable() 173 descriptor.sourceWidth, descriptor.sourceHeight)); in maybeSetupPlaceholderDrawable()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 300 public boolean addDescriptor(BluetoothGattDescriptor descriptor) { in addDescriptor() argument 301 mDescriptors.add(descriptor); in addDescriptor() 302 descriptor.setCharacteristic(this); in addDescriptor() 312 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor() 313 if (descriptor.getUuid().equals(uuid) && descriptor.getInstanceId() == instanceId) { in getDescriptor() 314 return descriptor; in getDescriptor() 438 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor() 439 if (descriptor.getUuid().equals(uuid)) { in getDescriptor() 440 return descriptor; in getDescriptor()
|
D | BluetoothGattCallback.java | 166 BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {} in onDescriptorRead() argument 179 @NonNull BluetoothGattDescriptor descriptor, in onDescriptorRead() argument 182 onDescriptorRead(gatt, descriptor, status); in onDescriptorRead() 194 BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {} in onDescriptorWrite() argument
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/profiles/ |
D | MultiProfilePagerAdapter.java | 252 ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = mItems.get(pageNumber); in setupProfileTabs() local 255 profileButton.setText(descriptor.mTabLabel); in setupProfileTabs() 256 profileButton.setContentDescription(descriptor.mTabAccessibilityLabel); in setupProfileTabs() 258 TabHost.TabSpec profileTabSpec = tabHost.newTabSpec(descriptor.mTabTag) in setupProfileTabs() 339 final ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = getItem(position); in instantiateItem() local 340 container.addView(descriptor.mRootView); in instantiateItem() 341 return descriptor.mRootView; in instantiateItem() 650 ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = in showEmptyResolverListEmptyState() 652 descriptor.mEmptyStateUi.showSpinner(); in showEmptyResolverListEmptyState() 663 ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = in showEmptyState() local [all …]
|
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/ |
D | SampleTunerTvInputSectionParser.java | 77 for (TsDescriptor descriptor : descriptors) { in parseTvctSection() 78 if (descriptor instanceof ExtendedChannelNameDescriptor) { in parseTvctSection() 80 (ExtendedChannelNameDescriptor)descriptor; in parseTvctSection() 149 TsDescriptor descriptor = null; in parseDescriptors() local 152 descriptor = parseExtendedChannelNameDescriptor(data, pos, pos + length); in parseDescriptors() 157 if (descriptor != null) { in parseDescriptors() 158 descriptors.add(descriptor); in parseDescriptors()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/ |
D | VolumeControlOffsetDescriptor.java | 108 Descriptor descriptor = entry.getValue(); in dump() local 111 ProfileService.println(sb, " value: " + descriptor.mValue); in dump() 112 ProfileService.println(sb, " location: " + descriptor.mLocation); in dump() 113 ProfileService.println(sb, " description: " + descriptor.mDescription); in dump()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | FileImageRequest.java | 39 final FileImageRequestDescriptor descriptor) { in FileImageRequest() argument 40 super(context, descriptor); in FileImageRequest() 41 mPath = descriptor.path; in FileImageRequest() 42 mCanUseThumbnail = descriptor.canUseThumbnail; in FileImageRequest()
|