/frameworks/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 36 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/ |
D | UsbDescriptorParser.java | 137 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 …]
|
D | UsbConfigDescriptor.java | 86 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/ |
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 | 215 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 237 return new AndroidKeyStoreECPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 240 return new AndroidKeyStoreRSAPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 244 return new AndroidKeyStoreEdECPublicKey(descriptor, metadata, ED25519_OID, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 247 return new AndroidKeyStoreXDHPublicKey(descriptor, metadata, X25519_ALIAS, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 272 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreKeyPairFromKeystore() argument 275 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreKeyPairFromKeystore() 301 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreSecretKeyFromKeystore() argument 305 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreSecretKeyFromKeystore() 315 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() [all …]
|
D | AndroidKeyStoreKey.java | 55 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()
|
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()
|
/frameworks/av/media/module/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/native/libs/binder/tests/ |
D | binderHostDeviceTestService.cpp | 28 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/ |
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() 154 data.enforceInterface(IContentProvider.descriptor); in onTransact() 164 data.enforceInterface(IContentProvider.descriptor); in onTransact() 173 data.enforceInterface(IContentProvider.descriptor); in onTransact() 188 data.enforceInterface(IContentProvider.descriptor); in onTransact() 202 data.enforceInterface(IContentProvider.descriptor); in onTransact() 221 data.enforceInterface(IContentProvider.descriptor); in onTransact() [all …]
|
/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/base/services/core/jni/ |
D | com_android_server_SystemServer.cpp | 53 const std::string instance = std::string() + IStats::descriptor + "/default"; in startStatsAidlService() 67 ALOGW_IF(err != android::OK, "Cannot register HIDL %s: %d", IStats::descriptor, err); in startStatsHidlService() 79 const std::string instance = std::string() + ISensorManager::descriptor + "/default"; in startSensorManagerAidlService() 96 android::hardware::defaultServiceManager1_2()->getTransport(ISensorManager::descriptor, in startSensorManagerHidlService() 100 ISensorManager::descriptor, err); in startSensorManagerHidlService() 102 ALOGW("%s is deprecated. Skipping registration.", ISensorManager::descriptor); in startSensorManagerHidlService() 146 hardware::defaultServiceManager1_2()->getTransport(ISchedulingPolicyService::descriptor, in android_server_SystemServer_startHidlServices() 150 ISchedulingPolicyService::descriptor, err); in android_server_SystemServer_startHidlServices() 152 ALOGW("%s is deprecated. Skipping registration.", ISchedulingPolicyService::descriptor); in android_server_SystemServer_startHidlServices()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore2.java | 150 void delete(KeyDescriptor descriptor) throws KeyStoreException { in delete() argument 152 service.deleteKey(descriptor); in delete() 229 public KeyDescriptor grant(KeyDescriptor descriptor, int granteeUid, int accessVector) in grant() argument 232 (service) -> service.grant(descriptor, granteeUid, accessVector) in grant() 244 public void ungrant(KeyDescriptor descriptor, int granteeUid) in ungrant() argument 247 service.ungrant(descriptor, granteeUid); in ungrant() 260 public KeyEntryResponse getKeyEntry(@NonNull KeyDescriptor descriptor) in getKeyEntry() argument 262 return handleRemoteExceptionWithRetry((service) -> service.getKeyEntry(descriptor)); in getKeyEntry() 306 public void deleteKey(@NonNull KeyDescriptor descriptor) in deleteKey() argument 309 service.deleteKey(descriptor); in deleteKey()
|
/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/av/media/libaaudio/src/binding/ |
D | RingBufferParcelable.cpp | 109 …ufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDescriptor *descriptor) { in resolve() argument 113 (void **) &descriptor->readCounterAddress); in resolve() 119 (void **) &descriptor->writeCounterAddress); in resolve() 124 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); in resolve() 129 descriptor->bytesPerFrame = mBytesPerFrame; in resolve() 130 descriptor->framesPerBurst = mFramesPerBurst; in resolve() 131 descriptor->capacityInFrames = mCapacityInFrames; in resolve() 132 descriptor->flags = mFlags; in resolve()
|
/frameworks/base/keystore/tests/src/android/security/keystore2/ |
D | AndroidKeyStoreEdECPublicKeyTest.java | 39 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/av/media/libaudioclient/tests/ |
D | audioeffect_tests.cpp | 105 bool isPreprocessing(effect_descriptor_t& descriptor) { in isPreprocessing() argument 106 return ((descriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_PRE_PROC); in isPreprocessing() 109 bool isInsert(effect_descriptor_t& descriptor) { in isInsert() argument 110 return ((descriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_INSERT); in isInsert() 113 bool isAux(effect_descriptor_t& descriptor) { in isAux() argument 114 return ((descriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY); in isAux() 117 bool isPostproc(effect_descriptor_t& descriptor) { in isPostproc() argument 118 return ((descriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_POST_PROC); in isPostproc() 121 bool isFastCompatible(effect_descriptor_t& descriptor) { in isFastCompatible() argument 122 return !(((descriptor.flags & EFFECT_FLAG_HW_ACC_MASK) == 0) && in isFastCompatible() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiEarcLocalDeviceTx.java | 168 AudioDescriptor descriptor; in parseCapabilities() local 180 descriptor = new AudioDescriptor( in parseCapabilities() 184 audioDescriptors.add(descriptor); in parseCapabilities() 192 descriptor = new AudioDescriptor( in parseCapabilities() 196 audioDescriptors.add(descriptor); in parseCapabilities() 204 descriptor = new AudioDescriptor( in parseCapabilities() 208 audioDescriptors.add(descriptor); in parseCapabilities()
|
/frameworks/av/media/libaudiohal/impl/ |
D | StreamHalAidl.h | 54 ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor, in StreamContextAidl() argument 56 : mFrameSizeBytes(descriptor.frameSizeBytes), in StreamContextAidl() 57 mCommandMQ(new CommandMQ(descriptor.command)), in StreamContextAidl() 58 mReplyMQ(new ReplyMQ(descriptor.reply)), in StreamContextAidl() 59 mBufferSizeFrames(descriptor.bufferSizeFrames), in StreamContextAidl() 60 mDataMQ(maybeCreateDataMQ(descriptor)), in StreamContextAidl() 62 mIsMmapped(isMmapped(descriptor)), in StreamContextAidl() 63 mMmapBufferDescriptor(maybeGetMmapBuffer(descriptor)) {} in StreamContextAidl() 106 const ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor) { in maybeCreateDataMQ() 108 if (descriptor.audio.getTag() == Tag::fmq) { in maybeCreateDataMQ() [all …]
|
/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/core/java/android/hardware/radio/ |
D | RadioManager.java | 942 BandConfig(BandDescriptor descriptor) { in BandConfig() argument 943 Objects.requireNonNull(descriptor, "Descriptor cannot be null"); in BandConfig() 944 mDescriptor = new BandDescriptor(descriptor.getRegion(), descriptor.getType(), in BandConfig() 945 descriptor.getLowerLimit(), descriptor.getUpperLimit(), in BandConfig() 946 descriptor.getSpacing()); in BandConfig() 1070 public FmBandConfig(FmBandDescriptor descriptor) { in FmBandConfig() argument 1071 super((BandDescriptor)descriptor); in FmBandConfig() 1072 mStereo = descriptor.isStereoSupported(); in FmBandConfig() 1073 mRds = descriptor.isRdsSupported(); in FmBandConfig() 1074 mTa = descriptor.isTaSupported(); in FmBandConfig() [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()
|