/frameworks/av/media/libaaudio/src/client/ |
H A D | AudioEndpoint.cpp | 50 const RingBufferDescriptor *descriptor) { 51 if (descriptor == nullptr) { 52 ALOGE("AudioEndpoint_validateQueueDescriptor() NULL descriptor"); 56 if (descriptor->capacityInFrames < 1 57 || descriptor->capacityInFrames > RIDICULOUSLY_LARGE_BUFFER_CAPACITY) { 59 descriptor->capacityInFrames); 64 if (descriptor->bytesPerFrame < 1 65 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { 67 descriptor->bytesPerFrame); 71 if (descriptor 49 AudioEndpoint_validateQueueDescriptor(const char *type, const RingBufferDescriptor *descriptor) argument 129 const RingBufferDescriptor *descriptor = &pEndpointDescriptor->upMessageQueueDescriptor; local [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | UsbDescriptorParser.java | 43 // Obtained from the first AudioClass Header descriptor. 59 * to be parsed (and parse them). Useful for parsing a stored descriptor buffer. 72 * @return the USB Spec value associated with the Device descriptor for the 118 UsbDescriptor descriptor = null; 124 descriptor = mDeviceDescriptor = new UsbDeviceDescriptor(length, type); 128 descriptor = mCurConfigDescriptor = new UsbConfigDescriptor(length, type); 139 descriptor = mCurInterfaceDescriptor = new UsbInterfaceDescriptor(length, type); 150 descriptor = new UsbEndpointDescriptor(length, type); 153 (UsbEndpointDescriptor) descriptor); 166 descriptor [all...] |
/frameworks/wilhelm/src/ |
H A D | devices.h | 22 const SLAudioInputDescriptor *descriptor; member in struct:AudioInput_id_descriptor 27 const SLAudioOutputDescriptor *descriptor; member in struct:AudioOutput_id_descriptor 32 const SLLEDDescriptor *descriptor; member in struct:LED_id_descriptor 37 const SLVibraDescriptor *descriptor; member in struct:Vibra_id_descriptor 44 /** \brief Associates a codec ID with a corresponding codec descriptor */ 48 const SLAudioCodecDescriptor *mDescriptor; ///< The corresponding descriptor
|
/frameworks/support/mediarouter/src/androidTest/java/androidx/mediarouter/media/ |
H A D | TestUtils.java | 21 MediaRouteDescriptor descriptor = new MediaRouteDescriptor.Builder(id, name).build(); 23 routeInfo.updateDescriptor(descriptor);
|
H A D | MediaRouteProviderTest.java | 49 // Tests for empty descriptor 51 MediaRouteProviderDescriptor descriptor = builder.build(); 52 assertTrue(descriptor.getRoutes().isEmpty()); 59 descriptor = builder.build(); 60 List<MediaRouteDescriptor> routes = descriptor.getRoutes(); 74 descriptor = builder.build(); 75 routes = descriptor.getRoutes(); 88 descriptor = builder.build(); 89 routes = descriptor.getRoutes(); 99 descriptor [all...] |
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | PipeManagerTest.java | 53 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( 56 assertDescriptor(descriptor, HELLO_BYTES); 60 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( 63 assertDescriptorError(descriptor); 68 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( 71 assertDescriptor(descriptor, HELLO_BYTES); 75 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( 78 assertDescriptorError(descriptor); 81 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) argument 86 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { 95 assertDescriptorError(ParcelFileDescriptor descriptor) argument [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/ |
H A D | UsbDescriptorsTree.java | 60 * Adds THE device descriptor as the root of the tree. 67 * Adds A config descriptor to the tree. 75 * Adds AN interface descriptor to the current configuration in the tree. 83 * Adds an endpoint descriptor to the current interface in the tree. 90 * Adds an audio-class interface descriptor to the current interface in the tree. 97 * Parses the linear descriptor list contained in the parser argument, into a tree 105 UsbDescriptor descriptor = descriptors.get(descrIndex); 106 switch (descriptor.getType()) { 111 addDeviceDescriptor((UsbDeviceDescriptor) descriptor); 115 addConfigDescriptor((UsbConfigDescriptor) descriptor); [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyFetcher.cpp | 71 bool same_parity = (((container.descriptor(0).id() & 0x01) ^ 72 (container.descriptor(1).id() & 0x01)) == 0); 76 container.descriptor(0).ecm().asset_id(), 77 container.descriptor(0).id(), 78 container.descriptor(1).id()); 82 *asset_id = container.descriptor(0).ecm().asset_id(); 109 container.descriptor(i).ecm().buffer(), asset_); 118 key.key_id = container.descriptor(i).id(); 119 key.key_bytes = container.descriptor(i).ecm().content_key();
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | CasManager.cpp | 36 ProgramCasManager(unsigned programNumber, const CADescriptor &descriptor); 39 bool addStream(unsigned elementaryPID, const CADescriptor &descriptor); 51 CasSession(const CADescriptor &descriptor) : argument 52 mCADescriptor(descriptor) {} 71 unsigned programNumber, const CADescriptor &descriptor) : 74 mProgramCas(descriptor) {} 82 unsigned elementaryPID, const CADescriptor &descriptor) { 88 mProgramNumber, elementaryPID, descriptor.mSystemID); 89 mStreamPidToCasMap.add(elementaryPID, CasSession(descriptor)); 144 const CADescriptor &descriptor local 70 ProgramCasManager( unsigned programNumber, const CADescriptor &descriptor) argument 81 addStream( unsigned elementaryPID, const CADescriptor &descriptor) argument 277 addProgram( unsigned programNumber, const CADescriptor &descriptor) argument 294 addStream( unsigned programNumber, unsigned elementaryPID, const CADescriptor &descriptor) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | BulkCursorNative.java | 36 attachInterface(this, descriptor); 48 IBulkCursor in = (IBulkCursor)obj.queryLocalInterface(descriptor); 62 data.enforceInterface(IBulkCursor.descriptor); 76 data.enforceInterface(IBulkCursor.descriptor); 83 data.enforceInterface(IBulkCursor.descriptor); 90 data.enforceInterface(IBulkCursor.descriptor); 101 data.enforceInterface(IBulkCursor.descriptor); 109 data.enforceInterface(IBulkCursor.descriptor); 117 data.enforceInterface(IBulkCursor.descriptor); 160 data.writeInterfaceToken(IBulkCursor.descriptor); [all...] |
/frameworks/base/tools/incident_section_gen/ |
H A D | main.cpp | 104 static bool generateIncidentSectionsCpp(Descriptor const* descriptor) argument 110 N = descriptor->field_count(); 112 const FieldDescriptor* field = descriptor->field(i); 189 static inline PrivacyFlags getPrivacyFlags(const Descriptor* descriptor) { argument 190 return descriptor->options().GetExtension(msg_privacy); 194 static inline Destination getMessageDest(const Descriptor* descriptor, const Destination overridden) { argument 195 return overridden != DEST_UNSET ? overridden : getPrivacyFlags(descriptor).dest(); 224 static inline string getMessageName(const Descriptor* descriptor, const Destination overridden) { argument 226 return replaceAll(descriptor->full_name(), '.', "_") + "__MSG__" + 227 to_string(getMessageDest(descriptor, overridde 244 isDefaultMessageImpl(const Descriptor* descriptor, const Destination dest, set<string>* parents) argument 273 isDefaultMessage(const Descriptor* descriptor, const Destination dest) argument 284 sortFields(const Descriptor* descriptor) argument 298 generatePrivacyFlags(const Descriptor* descriptor, const Destination overridden, map<string, bool> &variableNames, set<string>* parents) argument 392 generateSectionListCpp(Descriptor const* descriptor) argument 531 generateCsv(Descriptor const* descriptor, const string& indent, set<string>* parents, const Destination containerDest = DEST_UNSET) argument 567 Descriptor const* descriptor = IncidentProto::descriptor(); local [all...] |
/frameworks/av/media/libaaudio/src/binding/ |
H A D | RingBufferParcelable.cpp | 131 aaudio_result_t RingBufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDescriptor *descriptor) { argument 135 (void **) &descriptor->readCounterAddress); 141 (void **) &descriptor->writeCounterAddress); 146 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); 151 descriptor->bytesPerFrame = mBytesPerFrame; 152 descriptor->framesPerBurst = mFramesPerBurst; 153 descriptor->capacityInFrames = mCapacityInFrames; 154 descriptor->flags = mFlags;
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattCallback.java | 120 * Callback reporting the result of a descriptor read operation. 123 * @param descriptor Descriptor that was read from the associated remote device. 127 public void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, argument 132 * Callback indicating the result of a descriptor write operation. 135 * @param descriptor Descriptor that was writte to the associated remote device. 139 public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, argument
|
H A D | BluetoothGattServerCallback.java | 82 * A remote client has requested to read a local descriptor. 90 * @param descriptor Descriptor to be read 93 int offset, BluetoothGattDescriptor descriptor) { 97 * A remote client has requested to write to a local descriptor. 104 * @param descriptor Descriptor to be written to. 108 * @param value The value the client wants to assign to the descriptor 111 BluetoothGattDescriptor descriptor, 92 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument 110 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
|
/frameworks/base/tools/stats_log_api_gen/ |
H A D | test_collation.cpp | 86 int errorCount = collate_atoms(Event::descriptor(), &atoms); 154 int errorCount = collate_atoms(IntAtom::descriptor(), &atoms); 164 int errorCount = collate_atoms(BadTypesEvent::descriptor(), &atoms); 174 int errorCount = collate_atoms(BadSkippedFieldSingle::descriptor(), &atoms); 185 int errorCount = collate_atoms(BadSkippedFieldMultiple::descriptor(), &atoms); 197 collate_atoms(BadAttributionNodePosition::descriptor(), &atoms); 204 int errorCount = collate_atoms(BadStateAtoms::descriptor(), &atoms); 211 int errorCount = collate_atoms(GoodStateAtoms::descriptor(), &atoms);
|
/frameworks/base/core/java/android/os/ |
H A D | IHwBinder.java | 40 * Return as IHwInterface instance only if this implements descriptor. 42 * @param descriptor for example foo.bar@1.0::IBaz 46 public IHwInterface queryLocalInterface(String descriptor); argument
|
H A D | ServiceManagerNative.java | 39 (IServiceManager)obj.queryLocalInterface(descriptor); 49 attachInterface(this, descriptor); 57 data.enforceInterface(IServiceManager.descriptor); 65 data.enforceInterface(IServiceManager.descriptor); 73 data.enforceInterface(IServiceManager.descriptor); 83 data.enforceInterface(IServiceManager.descriptor); 91 data.enforceInterface(IServiceManager.descriptor); 123 data.writeInterfaceToken(IServiceManager.descriptor); 135 data.writeInterfaceToken(IServiceManager.descriptor); 148 data.writeInterfaceToken(IServiceManager.descriptor); [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | SessionRoute.cpp | 93 const sp<DeviceDescriptor>& descriptor, 107 if (descriptor != 0 || route->mDeviceDescriptor != 0) { 111 route->mDeviceDescriptor = descriptor; 113 route = new SessionRoute(session, streamType, source, descriptor, uid); 115 if (descriptor != 0) { 90 addRoute(audio_session_t session, audio_stream_type_t streamType, audio_source_t source, const sp<DeviceDescriptor>& descriptor, uid_t uid) argument
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | ActivityRecognitionProxy.java | 109 String descriptor; 111 descriptor = binder.getInterfaceDescriptor(); 113 Log.e(TAG, "Unable to get interface descriptor.", e); 118 .equals(descriptor)) { 137 .equals(descriptor)) { 150 Log.e(TAG, "Invalid descriptor found on connection: " + descriptor);
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/ |
H A D | MediaRouteProviderDescriptor.java | 67 * Returns true if the route provider descriptor and all of the routes that 70 * This verification is deep. If the provider descriptor is known to be 124 * Creates an empty media route provider descriptor builder. 131 * Creates a media route provider descriptor builder whose initial contents are 132 * copied from an existing descriptor. 134 public Builder(MediaRouteProviderDescriptor descriptor) { argument 135 if (descriptor == null) { 136 throw new IllegalArgumentException("descriptor must not be null"); 139 mBundle = new Bundle(descriptor.mBundle); 141 descriptor [all...] |
/frameworks/base/tools/incident_report/ |
H A D | main.cpp | 39 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, argument 50 fprintf(stderr, "Fail to read size of %s\n", descriptor->name().c_str()); 54 FieldDescriptor const* field = descriptor->FindFieldByNumber(fieldId); 87 read_message(CodedInputStream* in, Descriptor const* descriptor, GenericMessage* message) argument 105 tag, tag, in->CurrentPosition(), descriptor->name().c_str()); 114 tag, tag, in->CurrentPosition(), descriptor->name().c_str()); 118 if (!read_length_delimited(in, fieldId, descriptor, message)) { 120 tag, tag, in->CurrentPosition(), descriptor 221 print_message(Out* out, Descriptor const* descriptor, GenericMessage const* message) argument 316 Descriptor const* descriptor = IncidentProto::descriptor(); local 573 Descriptor const* descriptor = IncidentProto::descriptor(); local [all...] |
/frameworks/native/include/ui/ |
H A D | Gralloc2.h | 106 Error allocate(BufferDescriptor descriptor, uint32_t count, 109 Error allocate(BufferDescriptor descriptor, argument 112 return allocate(descriptor, 1, outStride, outBufferHandle); 118 BufferDescriptor descriptor; local 119 Error error = mMapper.createDescriptor(descriptorInfo, &descriptor); 121 error = allocate(descriptor, count, outStride, outBufferHandles);
|
/frameworks/native/libs/ui/include/ui/ |
H A D | Gralloc2.h | 106 Error allocate(BufferDescriptor descriptor, uint32_t count, 109 Error allocate(BufferDescriptor descriptor, argument 112 return allocate(descriptor, 1, outStride, outBufferHandle); 118 BufferDescriptor descriptor; local 119 Error error = mMapper.createDescriptor(descriptorInfo, &descriptor); 121 error = allocate(descriptor, count, outStride, outBufferHandles);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Gralloc2.h | 106 Error allocate(BufferDescriptor descriptor, uint32_t count, 109 Error allocate(BufferDescriptor descriptor, argument 112 return allocate(descriptor, 1, outStride, outBufferHandle); 118 BufferDescriptor descriptor; local 119 Error error = mMapper.createDescriptor(descriptorInfo, &descriptor); 121 error = allocate(descriptor, count, outStride, outBufferHandles);
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/ |
H A D | MediaRouteProviderDescriptor.java | 67 * Returns true if the route provider descriptor and all of the routes that 70 * This verification is deep. If the provider descriptor is known to be 124 * Creates an empty media route provider descriptor builder. 131 * Creates a media route provider descriptor builder whose initial contents are 132 * copied from an existing descriptor. 134 public Builder(MediaRouteProviderDescriptor descriptor) { argument 135 if (descriptor == null) { 136 throw new IllegalArgumentException("descriptor must not be null"); 139 mBundle = new Bundle(descriptor.mBundle); 141 descriptor [all...] |