Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp43 const RingBufferDescriptor *descriptor) { in AudioEndpoint_validateQueueDescriptor() argument
44 if (descriptor == nullptr) { in AudioEndpoint_validateQueueDescriptor()
49 if (descriptor->capacityInFrames < 1 in AudioEndpoint_validateQueueDescriptor()
50 || descriptor->capacityInFrames > RIDICULOUSLY_LARGE_BUFFER_CAPACITY) { in AudioEndpoint_validateQueueDescriptor()
52 descriptor->capacityInFrames); in AudioEndpoint_validateQueueDescriptor()
57 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
58 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
60 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
64 if (descriptor->dataAddress == nullptr) { in AudioEndpoint_validateQueueDescriptor()
70 descriptor->dataAddress); in AudioEndpoint_validateQueueDescriptor()
[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/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/core/java/android/content/
DContentProviderNative.java48 attachInterface(this, descriptor); in ContentProviderNative()
62 (IContentProvider)obj.queryLocalInterface(descriptor); in asInterface()
84 data.enforceInterface(IContentProvider.descriptor); in onTransact()
141 data.enforceInterface(IContentProvider.descriptor); in onTransact()
151 data.enforceInterface(IContentProvider.descriptor); in onTransact()
160 data.enforceInterface(IContentProvider.descriptor); in onTransact()
175 data.enforceInterface(IContentProvider.descriptor); in onTransact()
189 data.enforceInterface(IContentProvider.descriptor); in onTransact()
208 data.enforceInterface(IContentProvider.descriptor); in onTransact()
223 data.enforceInterface(IContentProvider.descriptor); in onTransact()
[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()
/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/base/services/usb/java/com/android/server/usb/descriptors/
DUsbConfigDescriptor.java82 private boolean isAudioInterface(UsbInterfaceDescriptor descriptor) { in isAudioInterface() argument
83 return descriptor.getUsbClass() == UsbDescriptor.CLASSID_AUDIO in isAudioInterface()
84 && descriptor.getUsbSubclass() == UsbDescriptor.AUDIO_AUDIOSTREAMING; in isAudioInterface()
103 for (UsbInterfaceDescriptor descriptor : mInterfaceDescriptors) { in toAndroid()
104 if (!mBlockAudio || !isAudioInterface(descriptor)) { in toAndroid()
105 filteredInterfaces.add(descriptor.toAndroid(parser)); in toAndroid()
/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/tools/stats_log_api_gen/
Dtest_collation.cpp82 int errorCount = collate_atoms(Event::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
150 int errorCount = collate_atoms(IntAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
161 int errorCount = collate_atoms(BadTypesEvent::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
172 collate_atoms(BadSkippedFieldSingle::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
184 collate_atoms(BadSkippedFieldMultiple::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
196 collate_atoms(BadAttributionNodePosition::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
203 int errorCount = collate_atoms(BadStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
210 int errorCount = collate_atoms(GoodStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
217 collate_atoms(GoodEventWithBinaryFieldAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
224 collate_atoms(BadEventWithBinaryFieldAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
[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/services/core/java/com/android/server/media/
DMediaRouterService.java1557 public boolean updateDescriptor(RemoteDisplayState descriptor) { in updateDescriptor() argument
1559 if (mDescriptor != descriptor) { in updateDescriptor()
1560 mDescriptor = descriptor; in updateDescriptor()
1565 if (descriptor != null) { in updateDescriptor()
1566 if (descriptor.isValid()) { in updateDescriptor()
1567 final List<RemoteDisplayInfo> routeDescriptors = descriptor.displays; in updateDescriptor()
1713 public boolean updateDescriptor(RemoteDisplayInfo descriptor) { in updateDescriptor() argument
1715 if (mDescriptor != descriptor) { in updateDescriptor()
1716 mDescriptor = descriptor; in updateDescriptor()
1717 if (descriptor != null) { in updateDescriptor()
[all …]
/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()
DIVibra.cpp59 const SLVibraDescriptor *d = Vibra_id_descriptors[0].descriptor; in IVibra_SetFrequency()
99 const SLVibraDescriptor *d = Vibra_id_descriptors[0].descriptor; in IVibra_SetIntensity()
123 const SLVibraDescriptor *d = Vibra_id_descriptors[0].descriptor; in IVibra_GetIntensity()
155 thiz->mFrequency = Vibra_id_descriptors[0].descriptor->minFrequency; in IVibra_init()
/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/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/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/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/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/jni/
Dcom_android_server_tv_TvUinputBridge.cpp306 UInputDescriptor descriptor; in open() local
307 if (!descriptor.Open(name, uniqueId, GOOGLE_VIRTUAL_REMOTE_PRODUCT_ID)) { in open()
313 descriptor.EnableKey(KEYS[i].linuxKeyCode); in open()
316 if (!descriptor.Create()) { in open()
320 return new NativeConnection(descriptor.Detach(), maxPointers, ConnectionType::kRemoteDevice); in open()
328 UInputDescriptor descriptor; in openGamepad() local
329 if (!descriptor.Open(name, uniqueId, GOOGLE_VIRTUAL_GAMEPAD_PROUCT_ID)) { in openGamepad()
335 descriptor.EnableKey(GAMEPAD_KEYS[i].linuxUinputKeyCode); in openGamepad()
339 descriptor.EnableAxesEvents(); in openGamepad()
342 descriptor.EnableAxis(axis.linuxUinputAxis, axis.linuxUinputRangeMin, in openGamepad()
[all …]
/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