/aosp12/frameworks/av/media/libaaudio/src/client/ |
H A D | AudioEndpoint.cpp | 44 if (descriptor == nullptr) { in AudioEndpoint_validateQueueDescriptor() 49 if (descriptor->capacityInFrames < 1 in AudioEndpoint_validateQueueDescriptor() 57 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor() 60 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor() 70 descriptor->dataAddress); in AudioEndpoint_validateQueueDescriptor() 129 if(descriptor->readCounterAddress == nullptr || descriptor->writeCounterAddress == nullptr) { in configure() 141 descriptor->bytesPerFrame, in configure() 145 descriptor->dataAddress in configure() 170 size_t bufferSizeBytes = descriptor->capacityInFrames * descriptor->bytesPerFrame; in configure() 174 descriptor->bytesPerFrame, in configure() [all …]
|
/aosp12/hardware/google/gchips/gralloc3/src/ |
H A D | gralloc_vendor_interface.cpp | 36 void deleteDescriptor(Descriptor *descriptor) { delete descriptor; } in deleteDescriptor() argument 39 descriptor.producer_usage = usage; in setProducerUsage() 43 descriptor.consumer_usage = usage; in setConsumerUsage() 47 descriptor.planes.resize(count); in setPlaneCount() 51 descriptor.planes[index].fd = fd; in setPlane() 58 descriptor.width = width; in setWidth() 62 descriptor.height = height; in setHeight() 70 descriptor.format = format; in setFormat() 108 = descriptor.planes.size(); in createNativeHandle() 122 descriptor.format, i); in createNativeHandle() [all …]
|
H A D | GrallocBufferDescriptor.h | 57 V2_0::BufferDescriptor descriptor; in grallocEncodeBufferDescriptor() local 58 descriptor.resize(grallocBufferDescriptorSize); in grallocEncodeBufferDescriptor() 60 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor() 61 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor() 62 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor() 67 return descriptor; in grallocEncodeBufferDescriptor() 82 V2_0::BufferDescriptor descriptor; in grallocEncodeBufferDescriptor() local 85 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor() 86 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor() 87 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor() [all …]
|
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | UsbDescriptorParser.java | 133 UsbDescriptor descriptor = null; in allocDescriptor() local 258 if (descriptor == null) { in allocDescriptor() 263 return descriptor; in allocDescriptor() 280 UsbDescriptor descriptor = null; in parseDescriptors() local 287 if (descriptor != null) { in parseDescriptors() 293 descriptor.postParse(stream); in parseDescriptors() 296 descriptor.postParse(stream); in parseDescriptors() 372 if (descriptor.getType() == type) { in getDescriptors() 373 list.add(descriptor); in getDescriptors() 390 list.add(descriptor); in getInterfaceDescriptorsForClass() [all …]
|
/aosp12/hardware/google/gchips/gralloc4/src/libGralloc4Wrapper/ |
H A D | wrapper.cpp | 35 void deleteDescriptor(Descriptor *descriptor) { delete descriptor; } in deleteDescriptor() argument 38 descriptor.producer_usage = usage; in setProducerUsage() 42 descriptor.consumer_usage = usage; in setConsumerUsage() 46 descriptor.planes.resize(count); in setPlaneCount() 50 descriptor.planes[index].fd = fd; in setPlane() 57 descriptor.width = width; in setWidth() 61 descriptor.height = height; in setHeight() 69 descriptor.format = format; in setFormat() 91 = descriptor.format; in createNativeHandle() 98 = descriptor.planes.size(); in createNativeHandle() [all …]
|
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
H A D | GrallocBufferDescriptor.h | 39 BufferDescriptor descriptor; in grallocEncodeBufferDescriptor() local 40 descriptor.resize(grallocBufferDescriptorSize); in grallocEncodeBufferDescriptor() 42 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor() 43 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor() 44 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor() 49 return descriptor; in grallocEncodeBufferDescriptor() 60 descriptor[1], in grallocDecodeBufferDescriptor() 61 descriptor[2], in grallocDecodeBufferDescriptor() 62 descriptor[3], in grallocDecodeBufferDescriptor() 63 static_cast<PixelFormat>(descriptor[4]), in grallocDecodeBufferDescriptor() [all …]
|
/aosp12/art/libdexfile/dex/ |
H A D | descriptors_names.cc | 31 const char* c = descriptor; in AppendPrettyDescriptor() 129 std::string descriptor(class_name); in DotToDescriptor() local 130 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); in DotToDescriptor() 131 if (descriptor.length() > 0 && descriptor[0] != '[') { in DotToDescriptor() 132 descriptor = "L" + descriptor + ";"; in DotToDescriptor() 134 return descriptor; in DotToDescriptor() 138 size_t length = strlen(descriptor); in DescriptorToDot() 140 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { in DescriptorToDot() 153 return descriptor; in DescriptorToDot() 158 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { in DescriptorToName() [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
H A D | BipImageDescriptorTest.java | 45 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingConstants() local 61 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_encodingObject() local 76 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_proprietaryEncoding() local 92 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantStretch() local 108 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantCrop() local 124 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantFill() local 141 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_transformationConstantCropThenFill() local 155 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_noSize() local 170 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_useMaxSize() local 187 BipImageDescriptor descriptor = builder.build(); in testBuildImageDescriptor_allButSize() local [all …]
|
/aosp12/art/runtime/jit/ |
H A D | debugger_interface.cc | 290 descriptor.tail_ = entry; in InsertNewEntry() 341 descriptor.free_entries_ = descriptor.free_entries_->next_.load(kNonRacingRelaxed); in CreateJITCodeEntryInternal() 353 Seqlock(descriptor); in CreateJITCodeEntryInternal() 357 descriptor.timestamp_ = timestamp; in CreateJITCodeEntryInternal() 358 Sequnlock(descriptor); in CreateJITCodeEntryInternal() 371 Seqlock(descriptor); in DeleteJITCodeEntryInternal() 377 descriptor.tail_ = prev; in DeleteJITCodeEntryInternal() 386 descriptor.timestamp_ = GetNextTimestamp(descriptor); in DeleteJITCodeEntryInternal() 387 Sequnlock(descriptor); in DeleteJITCodeEntryInternal() 407 descriptor.free_entries_ = entry; in DeleteJITCodeEntryInternal() [all …]
|
/aosp12/hardware/interfaces/audio/effect/all-versions/default/util/ |
H A D | EffectUtils.cpp | 183 descriptor->cpuLoad = halDescriptor.cpuLoad; in effectDescriptorFromHal() 184 descriptor->memoryUsage = halDescriptor.memoryUsage; in effectDescriptorFromHal() 186 memcpy(descriptor->name.data(), halDescriptor.name, descriptor->name.size()); in effectDescriptorFromHal() 188 descriptor->implementor.size()); in effectDescriptorFromHal() 190 descriptor->name = charBufferFromHal(halDescriptor.name); in effectDescriptorFromHal() 199 UuidUtils::uuidToHal(descriptor.type, &halDescriptor->type); in effectDescriptorToHal() 200 UuidUtils::uuidToHal(descriptor.uuid, &halDescriptor->uuid); in effectDescriptorToHal() 202 halDescriptor->cpuLoad = descriptor.cpuLoad; in effectDescriptorToHal() 203 halDescriptor->memoryUsage = descriptor.memoryUsage; in effectDescriptorToHal() 205 memcpy(halDescriptor->name, descriptor.name.data(), descriptor.name.size()); in effectDescriptorToHal() [all …]
|
/aosp12/hardware/google/gchips/gralloc3/include/gralloc3/ |
H A D | gralloc_vendor_interface.h | 32 void deleteDescriptor(Descriptor *descriptor); 34 void setProducerUsage(Descriptor &descriptor, uint64_t usage); 35 void setConsumerUsage(Descriptor &descriptor, uint64_t usage); 36 void setPlaneCount(Descriptor &descriptor, int count); 37 void setPlane(Descriptor &descriptor, int index, int fd, size_t size, off_t offset, int stride_byte… 38 void setWidth(Descriptor &descriptor, int width); 39 void setHeight(Descriptor &descriptor, int height); 40 void setStridePixel(Descriptor &descriptor, int stride_pixel); 41 void setFormat(Descriptor &descriptor, int format); 43 buffer_handle_t createNativeHandle(const Descriptor &descriptor);
|
/aosp12/hardware/google/gchips/gralloc4/src/libGralloc4Wrapper/include/gralloc4/ |
H A D | gralloc_vendor_interface.h | 33 void deleteDescriptor(Descriptor *descriptor); 35 void setProducerUsage(Descriptor &descriptor, uint64_t usage); 36 void setConsumerUsage(Descriptor &descriptor, uint64_t usage); 37 void setPlaneCount(Descriptor &descriptor, int count); 38 void setPlane(Descriptor &descriptor, int index, int fd, size_t size, off_t offset, int stride_byte… 39 void setWidth(Descriptor &descriptor, int width); 40 void setHeight(Descriptor &descriptor, int height); 41 void setStridePixel(Descriptor &descriptor, int stride_pixel); 42 void setFormat(Descriptor &descriptor, int format); 44 buffer_handle_t createNativeHandle(const Descriptor &descriptor);
|
/aosp12/frameworks/base/tools/incident_section_gen/ |
H A D | main.cpp | 114 N = descriptor->field_count(); in generateIncidentSectionsCpp() 247 const int N = descriptor->field_count(); in isDefaultMessageImpl() 249 parents->insert(descriptor->full_name()); in isDefaultMessageImpl() 270 parents->erase(descriptor->full_name()); in isDefaultMessageImpl() 289 fields.reserve(descriptor->field_count()); in sortFields() 290 for (int i=0; i<descriptor->field_count(); i++) { in sortFields() 291 fields.push_back(descriptor->field(i)); in sortFields() 411 for (int i=0; i<descriptor->field_count(); i++) { in generateSectionListCpp() 560 for (int i=0; i<descriptor->field_count(); i++) { in generateCsv() 593 Descriptor const* descriptor = IncidentProto::descriptor(); in main() local [all …]
|
/aosp12/packages/services/Mtp/tests/src/com/android/mtp/ |
H A D | PipeManagerTest.java | 53 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_basic() local 56 assertDescriptor(descriptor, HELLO_BYTES); in testReadDocument_basic() 60 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_error() local 63 assertDescriptorError(descriptor); in testReadDocument_error() 68 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_basic() local 71 assertDescriptor(descriptor, HELLO_BYTES); in testReadThumbnail_basic() 75 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_error() local 78 assertDescriptorError(descriptor); in testReadThumbnail_error() 86 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in assertDescriptor() 95 private void assertDescriptorError(ParcelFileDescriptor descriptor) in assertDescriptorError() argument [all …]
|
/aosp12/system/libvintf/libaidlvintf_test_helper/ |
H A D | Vintf.cpp | 24 std::vector<std::string> getAidlHalInstanceNames(const std::string& descriptor) { in getAidlHalInstanceNames() argument 25 size_t lastDot = descriptor.rfind('.'); in getAidlHalInstanceNames() 26 CHECK(lastDot != std::string::npos) << "Invalid descriptor: " << descriptor; in getAidlHalInstanceNames() 27 const std::string package = descriptor.substr(0, lastDot); in getAidlHalInstanceNames() 28 const std::string iface = descriptor.substr(lastDot + 1); in getAidlHalInstanceNames() 34 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames() 39 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames() 45 std::vector<std::string> getAidlHalInstanceNames(const String16& descriptor) { in getAidlHalInstanceNames() argument 46 return getAidlHalInstanceNames(String8(descriptor).c_str()); in getAidlHalInstanceNames()
|
/aosp12/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_buf_mgr.cpp | 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 168 int flags = GetHandleFlags(descriptor.GetFormat(), descriptor.GetProducerUsage(), in CreateSharedHandle() 445 int format = descriptor.GetFormat(); in AllocateBuffer() 448 uint32_t layer_count = descriptor.GetLayerCount(); in AllocateBuffer() 727 AllocateBuffer(descriptor, hnd, size); in Perform() [all …]
|
/aosp12/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | AndroidKeyStoreProvider.java | 206 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 223 return new AndroidKeyStoreECPublicKey(descriptor, metadata, in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() 294 @NonNull KeyDescriptor descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() 306 return new AndroidKeyStoreSecretKey(descriptor, in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() 328 KeyDescriptor descriptor = new KeyDescriptor(); in loadAndroidKeyStoreKeyFromKeystore() local 331 descriptor.domain = Domain.APP; in loadAndroidKeyStoreKeyFromKeystore() 333 descriptor.nspace = namespace; in loadAndroidKeyStoreKeyFromKeystore() 334 descriptor.domain = Domain.SELINUX; in loadAndroidKeyStoreKeyFromKeystore() 336 descriptor.alias = alias; in loadAndroidKeyStoreKeyFromKeystore() 337 descriptor.blob = null; in loadAndroidKeyStoreKeyFromKeystore() [all …]
|
/aosp12/art/runtime/verifier/ |
H A D | reg_type.h | 322 const std::string_view& descriptor, in RegType() argument 324 : descriptor_(descriptor), in RegType() 385 : RegType(klass, descriptor, cache_id) { in ConflictType() 421 : RegType(klass, descriptor, cache_id) { in UndefinedType() 440 const std::string_view& descriptor, 463 : Cat1Type(klass, descriptor, cache_id) { in IntegerType() 488 : Cat1Type(klass, descriptor, cache_id) { in BooleanType() 512 const std::string_view& descriptor, in ByteType() argument 561 const std::string_view& descriptor, in CharType() argument 597 const std::string_view& descriptor, [all …]
|
H A D | reg_type_cache.cc | 90 if (descriptor[1] == '\0') { in FromDescriptor() 91 switch (descriptor[0]) { in FromDescriptor() 112 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor() 113 return From(loader, descriptor, precise); in FromDescriptor() 146 if (descriptor != entry->descriptor_) { in MatchDescriptor() 187 std::string_view sv_descriptor(descriptor); in From() 227 if (IsValidDescriptor(descriptor)) { in From() 344 const char* descriptor; member 362 DCHECK(type.descriptor != nullptr); in CreatePrimitiveAndSmallConstantTypes() 363 if (strlen(type.descriptor) > 0) { in CreatePrimitiveAndSmallConstantTypes() [all …]
|
/aosp12/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | CasManager.cpp | 51 CasSession(const CADescriptor &descriptor) : in CasSession() 52 mCADescriptor(descriptor) {} in CasSession() 74 mProgramCas(descriptor) {} in ProgramCasManager() 144 const CADescriptor &descriptor = session->mCADescriptor; in initSession() local 191 sessionMap.add(descriptor.mPID, sessionId); in initSession() 279 if (!setSystemId(descriptor.mSystemID)) { in addProgram() 286 programNumber, descriptor.mSystemID); in addProgram() 289 mCAPidSet.insert(descriptor.mPID); in addProgram() 296 const CADescriptor &descriptor) { in addStream() argument 297 if (!setSystemId(descriptor.mSystemID)) { in addStream() [all …]
|
/aosp12/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_buf_mgr.cpp | 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 168 int flags = GetHandleFlags(descriptor.GetFormat(), descriptor.GetProducerUsage(), in CreateSharedHandle() 453 int format = descriptor.GetFormat(); in AllocateBuffer() 456 uint32_t layer_count = descriptor.GetLayerCount(); in AllocateBuffer() 735 AllocateBuffer(descriptor, hnd, size); in Perform() [all …]
|
/aosp12/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/ |
H A D | Gralloc1On0Adapter.cpp | 95 auto descriptor = in doGetFunction() local 97 switch (descriptor) { in doGetFunction() 234 mDescriptor(descriptor), in Buffer() 251 descriptor->producerUsage, descriptor->consumerUsage); in allocate() 255 descriptor->height, descriptor->format, usage); in allocate() 258 static_cast<int>(descriptor->height), descriptor->format, in allocate() 303 if (!descriptor) { in allocateHook() 410 Descriptor descriptor; in retain() local 412 descriptor.setFormat(format); in retain() 413 descriptor.setProducerUsage( in retain() [all …]
|
/aosp12/frameworks/base/core/java/android/database/ |
H A D | BulkCursorNative.java | 37 attachInterface(this, descriptor); in BulkCursorNative() 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() 162 data.writeInterfaceToken(IBulkCursor.descriptor); in getWindow() 183 data.writeInterfaceToken(IBulkCursor.descriptor); in onMove() 199 data.writeInterfaceToken(IBulkCursor.descriptor); in deactivate() 214 data.writeInterfaceToken(IBulkCursor.descriptor); in close() 228 data.writeInterfaceToken(IBulkCursor.descriptor); in requery() [all …]
|
/aosp12/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A 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()
|
/aosp12/frameworks/base/tools/incident_report/ |
H A D | main.cpp | 39 static bool read_message(CodedInputStream* in, Descriptor const* descriptor, 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() 118 if (!read_length_delimited(in, fieldId, descriptor, message)) { in read_message() 135 in->CurrentPosition(), descriptor->name().c_str()); in read_message() 223 out->printf("%s {\n", descriptor->name().c_str()); in print_message() 226 int const N = descriptor->field_count(); in print_message() 228 FieldDescriptor const* field = descriptor->field(i); in print_message() 429 Descriptor const* descriptor = IncidentProto::descriptor(); in main() local 433 if (!read_message(&in, descriptor, &message)) { in main() [all …]
|