Home
last modified time | relevance | path

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

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageDescriptorTest.java45 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingConstants() local
46 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_encodingConstants()
61 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingObject() local
62 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_encodingObject()
76 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_proprietaryEncoding() local
77 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_proprietaryEncoding()
92 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantStretch() local
93 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_transformationConstantStretch()
108 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantCrop() local
109 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_transformationConstantCrop()
[all …]
/packages/services/Car/tools/
Dupdate-obd2-sensors.py30 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/data/
DSectionParser.java907 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/apps/TV/tuner/src/com/android/tv/tuner/dvb/
DDvbTunerHal.java140 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/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java120 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/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DReadableArchiveTest.java84 private void loadArchive(ParcelFileDescriptor descriptor, String mimeType) in loadArchive() argument
88 descriptor, in loadArchive()
95 private void loadArchive(ParcelFileDescriptor descriptor) in loadArchive() argument
97 loadArchive(descriptor, "application/zip"); in loadArchive()
393 final ParcelFileDescriptor descriptor = mArchive.openDocument( in commonTestOpenDocument() local
396 assertTrue(Archive.canSeek(descriptor)); in commonTestOpenDocument()
398 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in commonTestOpenDocument()
399 Os.lseek(descriptor.getFileDescriptor(), "I love ".length(), OsConstants.SEEK_SET); in commonTestOpenDocument()
401 Os.lseek(descriptor.getFileDescriptor(), 0, OsConstants.SEEK_SET); in commonTestOpenDocument()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DFileImageRequest.java39 final FileImageRequestDescriptor descriptor) { in FileImageRequest() argument
40 super(context, descriptor); in FileImageRequest()
41 mPath = descriptor.path; in FileImageRequest()
42 mCanUseThumbnail = descriptor.canUseThumbnail; in FileImageRequest()
DDecodedImageResource.java203 final ImageRequestDescriptor descriptor = in loadMediaBlocking() local
206 (float) descriptor.desiredWidth / bitmapWidth, in loadMediaBlocking()
207 (float) descriptor.desiredHeight / bitmapHeight); in loadMediaBlocking()
DVideoThumbnailRequest.java36 final UriImageRequestDescriptor descriptor) { in VideoThumbnailRequest() argument
37 super(context, descriptor); in VideoThumbnailRequest()
DUriImageRequest.java29 public UriImageRequest(final Context context, final D descriptor) { in UriImageRequest() argument
30 super(context, descriptor); in UriImageRequest()
DAvatarGroupRequestDescriptor.java49 final AvatarRequestDescriptor descriptor = new AvatarRequestDescriptor( in convertToDescriptor() local
51 avatarDescriptors.add(descriptor); in convertToDescriptor()
DCompositeImageRequest.java46 public CompositeImageRequest(final Context context, final D descriptor) { in CompositeImageRequest() argument
47 super(context, descriptor); in CompositeImageRequest()
DNetworkUriImageRequest.java40 public NetworkUriImageRequest(Context context, D descriptor) { in NetworkUriImageRequest() argument
41 super(context, descriptor); in NetworkUriImageRequest()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DCarBleCentralManager.java316 BluetoothGattDescriptor descriptor =
318 descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
319 if (!gatt.writeDescriptor(descriptor)) {
335 public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,
337 super.onDescriptorWrite(gatt, descriptor, status);
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java206 Context context, ParcelFileDescriptor descriptor, Uri archiveUri, in createForParcelFileDescriptor() argument
209 if (canSeek(descriptor)) { in createForParcelFileDescriptor()
210 return new ReadableArchive(context, descriptor, in createForParcelFileDescriptor()
231 new ParcelFileDescriptor.AutoCloseInputStream(descriptor); in createForParcelFileDescriptor()
257 FileUtils.closeQuietly(descriptor); in createForParcelFileDescriptor()
DWriteableArchive.java119 Context context, ParcelFileDescriptor descriptor, Uri archiveUri, int accessMode, in createForParcelFileDescriptor() argument
123 return new WriteableArchive(context, descriptor, archiveUri, accessMode, in createForParcelFileDescriptor()
128 FileUtils.closeQuietly(descriptor); in createForParcelFileDescriptor()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/data/
DSectionParserTest.java125 ContentAdvisoryDescriptor descriptor = createDescriptorForTest(ratingRegion); in testGenerateContentRating_validInputs() local
129 Collections.singletonList((TsDescriptor) descriptor))) in testGenerateContentRating_validInputs()
138 ContentAdvisoryDescriptor descriptor = createDescriptorForTest(ratingRegion); in testGenerateContentRating_invalidInput() local
141 Collections.singletonList((TsDescriptor) descriptor))) in testGenerateContentRating_invalidInput()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java171 ImageRequestDescriptor descriptor;
173 descriptor = new AvatarGroupRequestDescriptor(avatarUri, mIconSize, mIconSize);
175 descriptor = new AvatarRequestDescriptor(avatarUri, mIconSize, mIconSize);
179 descriptor.buildSyncMediaRequest(mContext);
DWidgetConversationService.java437 UriImageRequestDescriptor descriptor; in getAttachmentBitmap() local
439 descriptor = new MessagePartImageRequestDescriptor(part, in getAttachmentBitmap()
445 descriptor = new MessagePartVideoThumbnailRequestDescriptor(part); in getAttachmentBitmap()
451 descriptor.buildSyncMediaRequest(mContext); in getAttachmentBitmap()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattServer.java93 BluetoothGattDescriptor descriptor = in GattServer() local
98 characteristic.addDescriptor(descriptor); in GattServer()
152 BluetoothGattDescriptor descriptor) { in onDescriptorReadRequest() argument
158 BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, in onDescriptorWriteRequest() argument
/packages/services/Car/tools/keventreader/server/
Dinputsource.cpp46 return descriptor() >= 0; in operator bool()
49 int InputSource::descriptor() const { in descriptor() function in InputSource
Deventgatherer.cpp27 mFds.push_back({dev->descriptor(), POLLIN, 0}); in EventGatherer()
28 mDevices.emplace(dev->descriptor(), std::move(dev)); in EventGatherer()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DRequestGetImage.java38 public RequestGetImage(String imageHandle, BipImageDescriptor descriptor) { in RequestGetImage() argument
43 mImageDescriptor = descriptor; in RequestGetImage()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.kt334 val descriptor = descriptors[i] in getTimeZones() constant
335 tzIds[i] = descriptor!!.mTimeZoneId in getTimeZones()
336 tzNames[i] = descriptor.mTimeZoneName in getTimeZones()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientPhotoManager.java67 final AvatarRequestDescriptor descriptor = in populatePhotoBytesAsync()
69 final BindableMediaRequest<ImageResource> req = descriptor.buildAsyncMediaRequest( in populatePhotoBytesAsync()

123