Home
last modified time | relevance | path

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

123456789

/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp36 const RingBufferDescriptor *descriptor) { in AudioEndpoint_validateQueueDescriptor() argument
37 if (descriptor == nullptr) { in AudioEndpoint_validateQueueDescriptor()
42 if (descriptor->capacityInFrames < 1 in AudioEndpoint_validateQueueDescriptor()
43 || descriptor->capacityInFrames > RIDICULOUSLY_LARGE_BUFFER_CAPACITY) { in AudioEndpoint_validateQueueDescriptor()
45 descriptor->capacityInFrames); in AudioEndpoint_validateQueueDescriptor()
50 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
51 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
53 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
57 if (descriptor->dataAddress == nullptr) { in AudioEndpoint_validateQueueDescriptor()
63 descriptor->dataAddress); in AudioEndpoint_validateQueueDescriptor()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptorParser.java137 UsbDescriptor descriptor = null; in allocDescriptor() local
143 descriptor = mDeviceDescriptor = new UsbDeviceDescriptor(length, type); in allocDescriptor()
147 descriptor = mCurConfigDescriptor = new UsbConfigDescriptor(length, type); in allocDescriptor()
158 descriptor = mCurInterfaceDescriptor = new UsbInterfaceDescriptor(length, type); in allocDescriptor()
169 descriptor = mCurEndpointDescriptor = new UsbEndpointDescriptor(length, type); in allocDescriptor()
172 (UsbEndpointDescriptor) descriptor); in allocDescriptor()
185 descriptor = new UsbHIDDescriptor(length, type); in allocDescriptor()
192 descriptor = new UsbInterfaceAssoc(length, type); in allocDescriptor()
202 descriptor = in allocDescriptor()
204 if (descriptor instanceof UsbMSMidiHeader) { in allocDescriptor()
[all …]
DUsbConfigDescriptor.java86 private boolean isAudioInterface(UsbInterfaceDescriptor descriptor) { in isAudioInterface() argument
87 return descriptor.getUsbClass() == UsbDescriptor.CLASSID_AUDIO in isAudioInterface()
88 && descriptor.getUsbSubclass() == UsbDescriptor.AUDIO_AUDIOSTREAMING; in isAudioInterface()
107 for (UsbInterfaceDescriptor descriptor : mInterfaceDescriptors) { in toAndroid()
108 if (!mBlockAudio || !isAudioInterface(descriptor)) { in toAndroid()
109 filteredInterfaces.add(descriptor.toAndroid(parser)); in toAndroid()
/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/keystore/java/android/security/keystore2/
DAndroidKeyStoreProvider.java214 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse()
229 return new AndroidKeyStoreECPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse()
232 return new AndroidKeyStoreRSAPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse()
236 return new AndroidKeyStoreEdECPublicKey(descriptor, metadata, ED25519_OID, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse()
239 return new AndroidKeyStoreXDHPublicKey(descriptor, metadata, X25519_ALIAS, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse()
264 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreKeyPairFromKeystore() argument
267 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreKeyPairFromKeystore()
293 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreSecretKeyFromKeystore() argument
297 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreSecretKeyFromKeystore()
307 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse()
[all …]
DAndroidKeyStoreKey.java55 public AndroidKeyStoreKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreKey() argument
60 mDescriptor = descriptor; in AndroidKeyStoreKey()
72 KeyDescriptor descriptor = new KeyDescriptor(); in getKeyIdDescriptor() local
73 descriptor.nspace = mKeyId; in getKeyIdDescriptor()
74 descriptor.domain = Domain.KEY_ID; in getKeyIdDescriptor()
75 descriptor.alias = null; in getKeyIdDescriptor()
76 descriptor.blob = null; in getKeyIdDescriptor()
77 return descriptor; in getKeyIdDescriptor()
DAndroidKeyStoreRSAPublicKey.java37 public AndroidKeyStoreRSAPublicKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreRSAPublicKey() argument
42 super(descriptor, metadata, x509EncodedForm, KeyProperties.KEY_ALGORITHM_RSA, in AndroidKeyStoreRSAPublicKey()
48 public AndroidKeyStoreRSAPublicKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreRSAPublicKey() argument
51 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getModulus(), in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStoreECPublicKey.java39 public AndroidKeyStoreECPublicKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreECPublicKey() argument
44 super(descriptor, metadata, x509EncodedForm, KeyProperties.KEY_ALGORITHM_EC, securityLevel); in AndroidKeyStoreECPublicKey()
49 public AndroidKeyStoreECPublicKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreECPublicKey() argument
52 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getParams(), info.getW()); in AndroidKeyStoreECPublicKey()
/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/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/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/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/native/libs/binder/tests/
DbinderHostDeviceTestService.cpp28 Service(std::string_view descriptor) : mDescriptor(descriptor.data(), descriptor.size()) {} in Service() argument
42 auto descriptor = argv[2]; in main() local
46 auto service = android::sp<Service>::make(descriptor); in main()
/frameworks/base/core/java/android/content/
DContentProviderNative.java49 attachInterface(this, descriptor); in ContentProviderNative()
63 (IContentProvider)obj.queryLocalInterface(descriptor); in asInterface()
85 data.enforceInterface(IContentProvider.descriptor); in onTransact()
142 data.enforceInterface(IContentProvider.descriptor); in onTransact()
152 data.enforceInterface(IContentProvider.descriptor); in onTransact()
161 data.enforceInterface(IContentProvider.descriptor); in onTransact()
176 data.enforceInterface(IContentProvider.descriptor); in onTransact()
190 data.enforceInterface(IContentProvider.descriptor); in onTransact()
209 data.enforceInterface(IContentProvider.descriptor); in onTransact()
224 data.enforceInterface(IContentProvider.descriptor); in onTransact()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore2.java149 void delete(KeyDescriptor descriptor) throws KeyStoreException { in delete() argument
151 service.deleteKey(descriptor); in delete()
219 public KeyDescriptor grant(KeyDescriptor descriptor, int granteeUid, int accessVector) in grant() argument
222 (service) -> service.grant(descriptor, granteeUid, accessVector) in grant()
234 public void ungrant(KeyDescriptor descriptor, int granteeUid) in ungrant() argument
237 service.ungrant(descriptor, granteeUid); in ungrant()
250 public KeyEntryResponse getKeyEntry(@NonNull KeyDescriptor descriptor) in getKeyEntry() argument
252 return handleRemoteExceptionWithRetry((service) -> service.getKeyEntry(descriptor)); in getKeyEntry()
296 public void deleteKey(@NonNull KeyDescriptor descriptor) in deleteKey() argument
299 service.deleteKey(descriptor); in deleteKey()
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.cpp104 …ufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDescriptor *descriptor) { in resolve() argument
108 (void **) &descriptor->readCounterAddress); in resolve()
114 (void **) &descriptor->writeCounterAddress); in resolve()
119 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); in resolve()
124 descriptor->bytesPerFrame = mBytesPerFrame; in resolve()
125 descriptor->framesPerBurst = mFramesPerBurst; in resolve()
126 descriptor->capacityInFrames = mCapacityInFrames; in resolve()
127 descriptor->flags = mFlags; in resolve()
DAudioEndpointParcelable.cpp98 aaudio_result_t AudioEndpointParcelable::resolve(EndpointDescriptor *descriptor) { in resolve() argument
100 &descriptor->upMessageQueueDescriptor); in resolve()
103 &descriptor->downMessageQueueDescriptor); in resolve()
107 &descriptor->dataQueueDescriptor); in resolve()
111 aaudio_result_t AudioEndpointParcelable::resolveDataQueue(RingBufferDescriptor *descriptor) { in resolveDataQueue() argument
112 return mDownDataQueueParcelable.resolve(mSharedMemories, descriptor); in resolveDataQueue()
/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/wilhelm/src/
Ddevices.h22 const SLAudioInputDescriptor *descriptor; member
27 const SLAudioOutputDescriptor *descriptor; member
32 const SLLEDDescriptor *descriptor; member
37 const SLVibraDescriptor *descriptor; member
/frameworks/proto_logging/stats/stats_log_api_gen/
Dtest_collation.cpp81 int errorCount = collate_atoms(Event::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
159 int errorCount = collate_atoms(IntAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
169 int errorCount = collate_atoms(BadTypesEvent::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
180 collate_atoms(BadSkippedFieldSingle::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
192 collate_atoms(BadSkippedFieldMultiple::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
204 collate_atoms(BadAttributionNodePosition::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
211 int errorCount = collate_atoms(BadStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
218 int errorCount = collate_atoms(GoodStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
224 int errorCount = collate_atoms(BadUidAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
231 int errorCount = collate_atoms(GoodUidAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_SystemServer.cpp57 const std::string instance = std::string() + IStats::descriptor + "/default"; in startStatsAidlService()
69 ALOGW_IF(err != android::OK, "Cannot register HIDL %s: %d", IStats::descriptor, err); in startStatsHidlService()
113 LOG_ALWAYS_FATAL_IF(err != OK, "Cannot register %s: %d", ISensorManager::descriptor, err); in android_server_SystemServer_startHidlServices()
117 hardware::defaultServiceManager1_2()->getTransport(ISchedulingPolicyService::descriptor, in android_server_SystemServer_startHidlServices()
121 ISchedulingPolicyService::descriptor, err); in android_server_SystemServer_startHidlServices()
123 ALOGW("%s is deprecated. Skipping registration.", ISchedulingPolicyService::descriptor); in android_server_SystemServer_startHidlServices()
/frameworks/base/keystore/tests/src/android/security/keystore2/
DAndroidKeyStoreEdECPublicKeyTest.java39 private static KeyDescriptor descriptor() { in descriptor() method in AndroidKeyStoreEdECPublicKeyTest
53 metadata.key = descriptor(); in metadata()
96 AndroidKeyStoreEdECPublicKey pkey = new AndroidKeyStoreEdECPublicKey(descriptor(), in testParsingOfValidKeys()
110 () -> new AndroidKeyStoreEdECPublicKey(descriptor(), metadata(null, null), "EdDSA", in testFailedParsingOfKeysWithDifferentOid()
119 () -> new AndroidKeyStoreEdECPublicKey(descriptor(), metadata(null, null), "EdDSA", in testFailedParsingOfKeysWithWrongSize()
/frameworks/base/core/java/android/os/
DNativeHandle.java53 public NativeHandle(@NonNull FileDescriptor descriptor, boolean own) { in NativeHandle() argument
54 this(new FileDescriptor[] {descriptor}, new int[0], own); in NativeHandle()
65 FileDescriptor descriptor = new FileDescriptor(); in createFileDescriptorArray() local
66 descriptor.setInt$(fds[i]); in createFileDescriptorArray()
67 list[i] = descriptor; in createFileDescriptorArray()
/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.cpp204 downmix_cntxt_s descriptor = {}; in main() local
205 DownmixDefaultConfig(&(descriptor.config)); in main()
235 descriptor.config.inputCfg.samplingRate = samplingFreq; in main()
236 descriptor.config.outputCfg.samplingRate = samplingFreq; in main()
239 uint32_t *audioType = &descriptor.config.inputCfg.channels; in main()
260 descriptor.numProcessChannels = in main()
269 descriptor.numFileChannels = fChannels; in main()
294 const int err = DowmixMainProcess(&descriptor, finp, fout); in main()

123456789