/frameworks/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 43 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/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbDescriptorParser.java | 133 UsbDescriptor descriptor = null; in allocDescriptor() local 139 descriptor = mDeviceDescriptor = new UsbDeviceDescriptor(length, type); in allocDescriptor() 143 descriptor = mCurConfigDescriptor = new UsbConfigDescriptor(length, type); in allocDescriptor() 154 descriptor = mCurInterfaceDescriptor = new UsbInterfaceDescriptor(length, type); in allocDescriptor() 165 descriptor = new UsbEndpointDescriptor(length, type); in allocDescriptor() 168 (UsbEndpointDescriptor) descriptor); in allocDescriptor() 181 descriptor = new UsbHIDDescriptor(length, type); in allocDescriptor() 188 descriptor = new UsbInterfaceAssoc(length, type); in allocDescriptor() 198 descriptor = UsbACInterface.allocDescriptor(this, stream, length, type); in allocDescriptor() 205 descriptor = UsbVCInterface.allocDescriptor(this, stream, length, type); in allocDescriptor() [all …]
|
D | UsbConfigDescriptor.java | 82 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/base/tools/incident_section_gen/ |
D | main.cpp | 108 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/ |
D | AndroidKeyStoreProvider.java | 206 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 223 return new AndroidKeyStoreECPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 226 return new AndroidKeyStoreRSAPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 251 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreKeyPairFromKeystore() argument 254 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreKeyPairFromKeystore() 280 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreSecretKeyFromKeystore() argument 284 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreSecretKeyFromKeystore() 294 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() 306 return new AndroidKeyStoreSecretKey(descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() 328 KeyDescriptor descriptor = new KeyDescriptor(); in loadAndroidKeyStoreKeyFromKeystore() local [all …]
|
D | AndroidKeyStoreKey.java | 49 AndroidKeyStoreKey(@NonNull KeyDescriptor descriptor, in AndroidKeyStoreKey() argument 54 mDescriptor = descriptor; in AndroidKeyStoreKey() 66 KeyDescriptor descriptor = new KeyDescriptor(); in getKeyIdDescriptor() local 67 descriptor.nspace = mKeyId; in getKeyIdDescriptor() 68 descriptor.domain = Domain.KEY_ID; in getKeyIdDescriptor() 69 descriptor.alias = null; in getKeyIdDescriptor() 70 descriptor.blob = null; in getKeyIdDescriptor() 71 return descriptor; in getKeyIdDescriptor()
|
D | AndroidKeyStoreRSAPublicKey.java | 37 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()
|
D | AndroidKeyStoreECPublicKey.java | 39 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()
|
D | AndroidKeyStoreSpi.java | 135 KeyDescriptor descriptor = new KeyDescriptor(); in makeKeyDescriptor() local 136 descriptor.domain = getTargetDomain(); in makeKeyDescriptor() 137 descriptor.nspace = mNamespace; // ignored if Domain.App; in makeKeyDescriptor() 138 descriptor.alias = alias; in makeKeyDescriptor() 139 descriptor.blob = null; in makeKeyDescriptor() 140 return descriptor; in makeKeyDescriptor() 153 KeyDescriptor descriptor = makeKeyDescriptor(alias); in getKeyMetadata() local 156 return mKeyStore.getKeyEntry(descriptor); in getKeyMetadata() 433 KeyDescriptor descriptor = ksKey.getUserKeyDescriptor(); in setPrivateKeyEntry() local 436 assertCanReplace(alias, targetDomain, mNamespace, descriptor); in setPrivateKeyEntry() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | CasManager.cpp | 36 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/ |
D | ClearKeyFetcher.cpp | 71 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/ |
D | BulkCursorNative.java | 37 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/ |
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, 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/keystore/java/android/security/ |
D | KeyStore2.java | 149 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/base/core/java/android/content/ |
D | ContentProviderNative.java | 49 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/av/media/libaaudio/src/binding/ |
D | RingBufferParcelable.cpp | 100 …ufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDescriptor *descriptor) { in resolve() argument 104 (void **) &descriptor->readCounterAddress); in resolve() 110 (void **) &descriptor->writeCounterAddress); in resolve() 115 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); in resolve() 120 descriptor->bytesPerFrame = mBytesPerFrame; in resolve() 121 descriptor->framesPerBurst = mFramesPerBurst; in resolve() 122 descriptor->capacityInFrames = mCapacityInFrames; in resolve() 123 descriptor->flags = mFlags; in resolve()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/ |
D | UsbDescriptorsTree.java | 105 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/ |
D | devices.h | 22 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/ |
D | test_collation.cpp | 81 int errorCount = collate_atoms(Event::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 149 int errorCount = collate_atoms(IntAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 160 int errorCount = collate_atoms(BadTypesEvent::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 171 collate_atoms(BadSkippedFieldSingle::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 183 collate_atoms(BadSkippedFieldMultiple::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 195 collate_atoms(BadAttributionNodePosition::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 202 int errorCount = collate_atoms(BadStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 209 int errorCount = collate_atoms(GoodStateAtoms::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 216 collate_atoms(GoodEventWithBinaryFieldAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() 223 collate_atoms(BadEventWithBinaryFieldAtom::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_SystemServer.cpp | 57 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/core/java/android/os/ |
D | NativeHandle.java | 53 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/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 1577 public boolean updateDescriptor(RemoteDisplayState descriptor) { in updateDescriptor() argument 1579 if (mDescriptor != descriptor) { in updateDescriptor() 1580 mDescriptor = descriptor; in updateDescriptor() 1585 if (descriptor != null) { in updateDescriptor() 1586 if (descriptor.isValid()) { in updateDescriptor() 1587 final List<RemoteDisplayInfo> routeDescriptors = descriptor.displays; in updateDescriptor() 1733 public boolean updateDescriptor(RemoteDisplayInfo descriptor) { in updateDescriptor() argument 1735 if (mDescriptor != descriptor) { in updateDescriptor() 1736 mDescriptor = descriptor; in updateDescriptor() 1737 if (descriptor != null) { in updateDescriptor() [all …]
|
/frameworks/wilhelm/src/itf/ |
D | IEngineCapabilities.cpp | 121 *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/ |
D | downmixtest.cpp | 204 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()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 350 public boolean addDescriptor(BluetoothGattDescriptor descriptor) { in addDescriptor() argument 351 mDescriptors.add(descriptor); in addDescriptor() 352 descriptor.setCharacteristic(this); in addDescriptor() 362 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor() 363 if (descriptor.getUuid().equals(uuid) in getDescriptor() 364 && descriptor.getInstanceId() == instanceId) { in getDescriptor() 365 return descriptor; in getDescriptor() 490 for (BluetoothGattDescriptor descriptor : mDescriptors) { in getDescriptor() 491 if (descriptor.getUuid().equals(uuid)) { in getDescriptor() 492 return descriptor; in getDescriptor()
|