Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp50 const RingBufferDescriptor *descriptor) { in AudioEndpoint_validateQueueDescriptor() argument
51 if (descriptor == nullptr) { in AudioEndpoint_validateQueueDescriptor()
56 if (descriptor->capacityInFrames < 1 in AudioEndpoint_validateQueueDescriptor()
57 || descriptor->capacityInFrames > RIDICULOUSLY_LARGE_BUFFER_CAPACITY) { in AudioEndpoint_validateQueueDescriptor()
59 descriptor->capacityInFrames); in AudioEndpoint_validateQueueDescriptor()
64 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
65 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
67 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
71 if (descriptor->dataAddress == nullptr) { in AudioEndpoint_validateQueueDescriptor()
77 descriptor->dataAddress); in AudioEndpoint_validateQueueDescriptor()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptorParser.java118 UsbDescriptor descriptor = null; in allocDescriptor() local
124 descriptor = mDeviceDescriptor = new UsbDeviceDescriptor(length, type); in allocDescriptor()
128 descriptor = mCurConfigDescriptor = new UsbConfigDescriptor(length, type); in allocDescriptor()
139 descriptor = mCurInterfaceDescriptor = new UsbInterfaceDescriptor(length, type); in allocDescriptor()
150 descriptor = new UsbEndpointDescriptor(length, type); in allocDescriptor()
153 (UsbEndpointDescriptor) descriptor); in allocDescriptor()
166 descriptor = new UsbHIDDescriptor(length, type); in allocDescriptor()
173 descriptor = new UsbInterfaceAssoc(length, type); in allocDescriptor()
180 descriptor = UsbACInterface.allocDescriptor(this, stream, length, type); in allocDescriptor()
184 descriptor = UsbACEndpoint.allocDescriptor(this, length, type); in allocDescriptor()
[all …]
/frameworks/base/tools/incident_section_gen/
Dmain.cpp108 static bool generateIncidentSectionsCpp(Descriptor const* descriptor) in generateIncidentSectionsCpp() argument
114 N = descriptor->field_count(); in generateIncidentSectionsCpp()
116 const FieldDescriptor* field = descriptor->field(i); in generateIncidentSectionsCpp()
191 static inline PrivacyFlags getPrivacyFlags(const Descriptor* descriptor) { in getPrivacyFlags() argument
192 return descriptor->options().GetExtension(msg_privacy); in getPrivacyFlags()
196 static inline Destination getMessageDest(const Descriptor* descriptor, const Destination overridden… in getMessageDest() argument
197 return overridden != DEST_UNSET ? overridden : getPrivacyFlags(descriptor).dest(); in getMessageDest()
226 static inline string getMessageName(const Descriptor* descriptor, const Destination overridden) { in getMessageName() argument
228 return replaceAll(descriptor->full_name(), '.', "_") + "__MSG__" + in getMessageName()
229 to_string(getMessageDest(descriptor, overridden)); in getMessageName()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DPipeManagerTest.java53 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_basic() local
56 assertDescriptor(descriptor, HELLO_BYTES); in testReadDocument_basic()
60 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_error() local
63 assertDescriptorError(descriptor); in testReadDocument_error()
68 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_basic() local
71 assertDescriptor(descriptor, HELLO_BYTES); in testReadThumbnail_basic()
75 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_error() local
78 assertDescriptorError(descriptor); in testReadThumbnail_error()
81 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) in assertDescriptor() argument
86 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in assertDescriptor()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DCasManager.cpp36 ProgramCasManager(unsigned programNumber, const CADescriptor &descriptor);
39 bool addStream(unsigned elementaryPID, const CADescriptor &descriptor);
51 CasSession(const CADescriptor &descriptor) : in CasSession()
52 mCADescriptor(descriptor) {} in CasSession()
71 unsigned programNumber, const CADescriptor &descriptor) : in ProgramCasManager() argument
74 mProgramCas(descriptor) {} in ProgramCasManager()
82 unsigned elementaryPID, const CADescriptor &descriptor) { in addStream() argument
88 mProgramNumber, elementaryPID, descriptor.mSystemID); in addStream()
89 mStreamPidToCasMap.add(elementaryPID, CasSession(descriptor)); in addStream()
144 const CADescriptor &descriptor = session->mCADescriptor; in initSession() local
[all …]
/frameworks/base/core/java/android/database/
DBulkCursorNative.java37 attachInterface(this, descriptor); in BulkCursorNative()
49 IBulkCursor in = (IBulkCursor)obj.queryLocalInterface(descriptor); in asInterface()
63 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
77 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
84 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
91 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
102 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
110 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
118 data.enforceInterface(IBulkCursor.descriptor); in onTransact()
162 data.writeInterfaceToken(IBulkCursor.descriptor); in getWindow()
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyFetcher.cpp71 bool same_parity = (((container.descriptor(0).id() & 0x01) ^ in ObtainKey()
72 (container.descriptor(1).id() & 0x01)) == 0); in ObtainKey()
76 container.descriptor(0).ecm().asset_id(), in ObtainKey()
77 container.descriptor(0).id(), in ObtainKey()
78 container.descriptor(1).id()); in ObtainKey()
82 *asset_id = container.descriptor(0).ecm().asset_id(); in ObtainKey()
109 container.descriptor(i).ecm().buffer(), asset_); in ObtainKey()
118 key.key_id = container.descriptor(i).id(); in ObtainKey()
119 key.key_bytes = container.descriptor(i).ecm().content_key(); in ObtainKey()
/frameworks/base/tools/incident_report/
Dmain.cpp39 static bool read_message(CodedInputStream* in, Descriptor const* descriptor,
41 static void print_message(Out* out, Descriptor const* descriptor, GenericMessage const* message);
45 read_length_delimited(CodedInputStream* in, uint32 fieldId, Descriptor const* descriptor, in read_length_delimited() argument
50 fprintf(stderr, "Fail to read size of %s\n", descriptor->name().c_str()); in read_length_delimited()
54 FieldDescriptor const* field = descriptor->FindFieldByNumber(fieldId); in read_length_delimited()
87 read_message(CodedInputStream* in, Descriptor const* descriptor, GenericMessage* message) in read_message() argument
105 tag, tag, in->CurrentPosition(), descriptor->name().c_str()); in read_message()
114 tag, tag, in->CurrentPosition(), descriptor->name().c_str()); in read_message()
118 if (!read_length_delimited(in, fieldId, descriptor, message)) { in read_message()
120 tag, tag, in->CurrentPosition(), descriptor->name().c_str()); in read_message()
[all …]
/frameworks/base/tools/stats_log_api_gen/
Dtest_collation.cpp86 int errorCount = collate_atoms(Event::descriptor(), &atoms); in TEST()
154 int errorCount = collate_atoms(IntAtom::descriptor(), &atoms); in TEST()
164 int errorCount = collate_atoms(BadTypesEvent::descriptor(), &atoms); in TEST()
174 int errorCount = collate_atoms(BadSkippedFieldSingle::descriptor(), &atoms); in TEST()
185 int errorCount = collate_atoms(BadSkippedFieldMultiple::descriptor(), &atoms); in TEST()
197 collate_atoms(BadAttributionNodePosition::descriptor(), &atoms); in TEST()
204 int errorCount = collate_atoms(BadStateAtoms::descriptor(), &atoms); in TEST()
211 int errorCount = collate_atoms(GoodStateAtoms::descriptor(), &atoms); in TEST()
218 collate_atoms(GoodEventWithBinaryFieldAtom::descriptor(), &atoms); in TEST()
225 collate_atoms(BadEventWithBinaryFieldAtom::descriptor(), &atoms); in TEST()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/
DUsbDescriptorsTree.java105 UsbDescriptor descriptor = descriptors.get(descrIndex); in parse() local
106 switch (descriptor.getType()) { in parse()
111 addDeviceDescriptor((UsbDeviceDescriptor) descriptor); in parse()
115 addConfigDescriptor((UsbConfigDescriptor) descriptor); in parse()
119 addInterfaceDescriptor((UsbInterfaceDescriptor) descriptor); in parse()
123 addEndpointDescriptor((UsbEndpointDescriptor) descriptor); in parse()
130 addACInterface((UsbACInterface) descriptor); in parse()
/frameworks/base/core/java/android/content/
DContentProviderNative.java47 attachInterface(this, descriptor); in ContentProviderNative()
61 (IContentProvider)obj.queryLocalInterface(descriptor); in asInterface()
83 data.enforceInterface(IContentProvider.descriptor); in onTransact()
138 data.enforceInterface(IContentProvider.descriptor); in onTransact()
149 data.enforceInterface(IContentProvider.descriptor); in onTransact()
162 data.enforceInterface(IContentProvider.descriptor); in onTransact()
175 data.enforceInterface(IContentProvider.descriptor); in onTransact()
193 data.enforceInterface(IContentProvider.descriptor); in onTransact()
208 data.enforceInterface(IContentProvider.descriptor); in onTransact()
224 data.enforceInterface(IContentProvider.descriptor); in onTransact()
[all …]
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.cpp131 …ufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDescriptor *descriptor) { in resolve() argument
135 (void **) &descriptor->readCounterAddress); in resolve()
141 (void **) &descriptor->writeCounterAddress); in resolve()
146 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); in resolve()
151 descriptor->bytesPerFrame = mBytesPerFrame; in resolve()
152 descriptor->framesPerBurst = mFramesPerBurst; in resolve()
153 descriptor->capacityInFrames = mCapacityInFrames; in resolve()
154 descriptor->flags = mFlags; in resolve()
/frameworks/wilhelm/src/
Ddevices.h22 const SLAudioInputDescriptor *descriptor; member
27 const SLAudioOutputDescriptor *descriptor; member
32 const SLLEDDescriptor *descriptor; member
37 const SLVibraDescriptor *descriptor; member
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java1373 public boolean updateDescriptor(RemoteDisplayState descriptor) { in updateDescriptor() argument
1375 if (mDescriptor != descriptor) { in updateDescriptor()
1376 mDescriptor = descriptor; in updateDescriptor()
1381 if (descriptor != null) { in updateDescriptor()
1382 if (descriptor.isValid()) { in updateDescriptor()
1383 final List<RemoteDisplayInfo> routeDescriptors = descriptor.displays; in updateDescriptor()
1529 public boolean updateDescriptor(RemoteDisplayInfo descriptor) { in updateDescriptor() argument
1531 if (mDescriptor != descriptor) { in updateDescriptor()
1532 mDescriptor = descriptor; in updateDescriptor()
1533 if (descriptor != null) { in updateDescriptor()
[all …]
/frameworks/base/core/java/android/os/
DNativeHandle.java55 public NativeHandle(@NonNull FileDescriptor descriptor, boolean own) { in NativeHandle() argument
56 this(new FileDescriptor[] {descriptor}, new int[0], own); in NativeHandle()
67 FileDescriptor descriptor = new FileDescriptor(); in createFileDescriptorArray() local
68 descriptor.setInt$(fds[i]); in createFileDescriptorArray()
69 list[i] = descriptor; in createFileDescriptorArray()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java352 public boolean addDescriptor(BluetoothGattDescriptor descriptor) { in addDescriptor() argument
353 mDescriptors.add(descriptor); in addDescriptor()
354 descriptor.setCharacteristic(this); in addDescriptor()
364 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor()
365 if (descriptor.getUuid().equals(uuid) in getDescriptor()
366 && descriptor.getInstanceId() == instanceId) { in getDescriptor()
367 return descriptor; in getDescriptor()
492 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor()
493 if (descriptor.getUuid().equals(uuid)) { in getDescriptor()
494 return descriptor; in getDescriptor()
/frameworks/wilhelm/src/itf/
DIEngineCapabilities.cpp121 *pDescriptor = *id_descriptor->descriptor; in IEngineCapabilities_QueryLEDCapabilities()
132 *pDescriptor = *id_descriptor->descriptor; in IEngineCapabilities_QueryLEDCapabilities()
163 *pDescriptor = *id_descriptor->descriptor; in IEngineCapabilities_QueryVibraCapabilities()
174 *pDescriptor = *id_descriptor->descriptor; in IEngineCapabilities_QueryVibraCapabilities()
219 while (NULL != id_descriptor_LED->descriptor) in IEngineCapabilities_init()
223 while (NULL != id_descriptor_Vibra->descriptor) in IEngineCapabilities_init()
/frameworks/av/media/libeffects/downmix/tests/
Ddownmixtest.cpp207 downmix_cntxt_s descriptor = {}; in main() local
208 DownmixDefaultConfig(&(descriptor.config)); in main()
238 descriptor.config.inputCfg.samplingRate = samplingFreq; in main()
239 descriptor.config.outputCfg.samplingRate = samplingFreq; in main()
242 uint32_t *audioType = &descriptor.config.inputCfg.channels; in main()
263 descriptor.numProcessChannels = in main()
272 descriptor.numFileChannels = fChannels; in main()
297 const int err = DowmixMainProcess(&descriptor, finp, fout); in main()
/frameworks/base/core/java/android/hardware/radio/
DRadioManager.java918 BandConfig(BandDescriptor descriptor) { in BandConfig() argument
919 mDescriptor = Objects.requireNonNull(descriptor); in BandConfig()
1043 public FmBandConfig(FmBandDescriptor descriptor) { in FmBandConfig() argument
1044 super((BandDescriptor)descriptor); in FmBandConfig()
1045 mStereo = descriptor.isStereoSupported(); in FmBandConfig()
1046 mRds = descriptor.isRdsSupported(); in FmBandConfig()
1047 mTa = descriptor.isTaSupported(); in FmBandConfig()
1048 mAf = descriptor.isAfSupported(); in FmBandConfig()
1049 mEa = descriptor.isEaSupported(); in FmBandConfig()
1190 public Builder(FmBandDescriptor descriptor) { in Builder() argument
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DActivityRecognitionProxy.java97 String descriptor = binder.getInterfaceDescriptor(); in initializeService() local
100 descriptor)) { in initializeService()
107 .equals(descriptor)) { in initializeService()
112 Log.e(TAG, "Invalid descriptor found on connection: " + descriptor); in initializeService()
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt41 using a file descriptor. These EGL fence sync objects have nearly
43 except that they have an additional attribute storing the file descriptor
92 must be set to either a file descriptor that refers to a native fence
110 descriptor, so the caller must not use it after calling eglCreateSyncKHR."
126 set to a file descriptor that refers to the new native fence object. This
197 attribute is not EGL_NO_NATIVE_FENCE_FD_ANDROID then that file descriptor
209 duplicates the file descriptor stored in the
211 object and returns the new file descriptor.
242 RESOLVED: Whenever a file descriptor is passed into or returned from an
243 EGL call in this extension, ownership of that file descriptor is
[all …]
/frameworks/native/include/binder/
DIInterface.h62 if (obj->getInterfaceDescriptor() != INTERFACE::descriptor) { in checked_interface_cast()
100 static const ::android::String16 descriptor; \
137 const ::android::String16 I##INTERFACE::descriptor( \
141 return I##INTERFACE::descriptor; \
150 I##INTERFACE::descriptor).get()); \
191 if (_descriptor == INTERFACE::descriptor) return this; in queryLocalInterface()
/frameworks/native/libs/binder/include/binder/
DIInterface.h62 if (obj->getInterfaceDescriptor() != INTERFACE::descriptor) { in checked_interface_cast()
100 static const ::android::String16 descriptor; \
137 const ::android::String16 I##INTERFACE::descriptor( \
141 return I##INTERFACE::descriptor; \
150 I##INTERFACE::descriptor).get()); \
191 if (_descriptor == INTERFACE::descriptor) return this; in queryLocalInterface()
/frameworks/av/media/libaudiohal/impl/
DEffectHalHidl.cpp60 const EffectDescriptor& descriptor, effect_descriptor_t* halDescriptor) { in effectDescriptorToHal() argument
61 HidlUtils::uuidToHal(descriptor.type, &halDescriptor->type); in effectDescriptorToHal()
62 HidlUtils::uuidToHal(descriptor.uuid, &halDescriptor->uuid); in effectDescriptorToHal()
63 halDescriptor->flags = static_cast<uint32_t>(descriptor.flags); in effectDescriptorToHal()
64 halDescriptor->cpuLoad = descriptor.cpuLoad; in effectDescriptorToHal()
65 halDescriptor->memoryUsage = descriptor.memoryUsage; in effectDescriptorToHal()
66 memcpy(halDescriptor->name, descriptor.name.data(), descriptor.name.size()); in effectDescriptorToHal()
68 descriptor.implementor.data(), descriptor.implementor.size()); in effectDescriptorToHal()
/frameworks/base/services/core/java/com/android/server/input/
DPersistentDataStore.java272 String descriptor = parser.getAttributeValue(null, "descriptor"); in loadInputDevicesFromXml() local
273 if (descriptor == null) { in loadInputDevicesFromXml()
277 if (mInputDevices.containsKey(descriptor)) { in loadInputDevicesFromXml()
283 mInputDevices.put(descriptor, state); in loadInputDevicesFromXml()
294 final String descriptor = entry.getKey(); in saveToXml() local
297 serializer.attribute(null, "descriptor", descriptor); in saveToXml()
430 String descriptor = parser.getAttributeValue(null, "descriptor"); in loadFromXml() local
431 if (descriptor == null) { in loadFromXml()
436 if (mKeyboardLayouts.contains(descriptor)) { in loadFromXml()
441 mKeyboardLayouts.add(descriptor); in loadFromXml()
[all …]

1234567