Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 102) sorted by relevance

12345

/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DPipeOptionsConverterTest.cpp84 PipeDescriptor desc = OptionsToPipeDescriptor(options); in TEST() local
86 ASSERT_EQ(desc.inputConfig.size(), 6); in TEST()
87 ASSERT_EQ(desc.inputConfig[0].inputSources.size(), 1); in TEST()
88 EXPECT_EQ(desc.inputConfig[0].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
89 EXPECT_EQ(desc.inputConfig[0].inputSources[0].camDesc.type, in TEST()
91 EXPECT_EQ(desc.inputConfig[0].configId, 0); in TEST()
93 ASSERT_EQ(desc.inputConfig[1].inputSources.size(), 1); in TEST()
94 EXPECT_EQ(desc.inputConfig[1].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
95 EXPECT_EQ(desc.inputConfig[1].inputSources[0].camDesc.type, in TEST()
97 EXPECT_EQ(desc.inputConfig[1].configId, 1); in TEST()
[all …]
/packages/services/Car/cpp/computepipe/runner/client_interface/
DAidlClientImpl.cpp88 PacketDescriptor desc; in DispatchSemanticData() local
94 Status status = ToAidlPacketType(packetHandle->getType(), &desc.type); in DispatchSemanticData()
98 desc.data = std::vector(reinterpret_cast<const uint8_t*>(packetHandle->getData()), in DispatchSemanticData()
101 desc.size = packetHandle->getSize(); in DispatchSemanticData()
102 if (static_cast<int32_t>(desc.data.size()) != desc.size) { in DispatchSemanticData()
106 desc.sourceTimeStampMillis = packetHandle->getTimeStamp(); in DispatchSemanticData()
107 desc.bufId = 0; in DispatchSemanticData()
108 ScopedAStatus ret = mPacketHandlers[streamId]->deliverPacket(desc); in DispatchSemanticData()
117 PacketDescriptor desc; in DispatchPixelData() local
123 Status status = ToAidlPacketType(packetHandle->getType(), &desc.type); in DispatchPixelData()
[all …]
DPipeOptionsConverter.cpp166 aidlConfig.desc.type.emplace_back(aidlType); in ConvertOffloadConfigProto()
167 aidlConfig.desc.isVirtual.emplace_back(proto.options().is_virtual()[i]); in ConvertOffloadConfigProto()
184 aidlConfig.desc.type = ConvertTerminationType(proto.options().type()); in ConvertTerminationConfigProto()
185 aidlConfig.desc.qualifier = proto.options().qualifier(); in ConvertTerminationConfigProto()
193 PipeDescriptor desc; in OptionsToPipeDescriptor() local
196 desc.inputConfig.emplace_back(inputConfig); in OptionsToPipeDescriptor()
201 desc.offloadConfig.emplace_back(offloadConfig); in OptionsToPipeDescriptor()
207 desc.terminationConfig.emplace_back(terminationConfig); in OptionsToPipeDescriptor()
212 desc.outputConfig.emplace_back(outputConfig); in OptionsToPipeDescriptor()
214 return desc; in OptionsToPipeDescriptor()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/
DMetadata.java156 public Builder fromMediaDescription(MediaDescription desc) { in fromMediaDescription() argument
157 if (desc == null) return this; in fromMediaDescription()
160 if (desc.getTitle() != null) mMetadata.title = desc.getTitle().toString(); in fromMediaDescription()
161 if (desc.getSubtitle() != null) mMetadata.artist = desc.getSubtitle().toString(); in fromMediaDescription()
162 if (desc.getDescription() != null) mMetadata.album = desc.getDescription().toString(); in fromMediaDescription()
165 if (desc.getIconBitmap() != null) { in fromMediaDescription()
166 mMetadata.image = new Image(mContext, desc.getIconBitmap()); in fromMediaDescription()
168 && desc.getIconUri() != null) { in fromMediaDescription()
169 mMetadata.image = new Image(mContext, desc.getIconUri()); in fromMediaDescription()
173 return fromBundle(desc.getExtras()).setMediaId(desc.getMediaId()); in fromMediaDescription()
/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp666 AHardwareBuffer_Desc desc{ in TEST_F() local
675 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
697 AHardwareBuffer_Desc desc{ in TEST_F() local
706 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1767 AHardwareBuffer_Desc desc{ in TEST_F() local
1776 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1813 AHardwareBuffer_Desc desc{ in TEST_F() local
1823 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1948 AHardwareBuffer_Desc desc{ in TEST_F() local
1957 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
[all …]
DTestPartitioningRandom.cpp283 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion() local
284 mRegions.push_back(desc); in addRegion()
1315 for (auto& desc : ioDescriptors) { in TEST_P() local
1317 desc.mVector.resize(problemSize * problemSize); in TEST_P()
1327 desc.mMemoryRegion = ioMemories.addRegion(memoryIndex, length); in TEST_P()
1337 for (auto& desc : ioDescriptors) { in TEST_P() local
1338 if (desc.getLocation() == InputOutputDescriptor::VECTOR) { in TEST_P()
1339 if (desc.mKind == InputOutputDescriptor::INPUT) { in TEST_P()
1343 desc.mVector.begin()); in TEST_P()
1344 e->setInput(inputIndex++, desc.mVector.data(), in TEST_P()
[all …]
DTestGenerated.cpp154 ANeuralNetworksMemoryDesc* desc = nullptr; in createDeviceMemoryForInput() local
155 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
156 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation.getHandle(), index, 1.0f), in createDeviceMemoryForInput()
158 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
160 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
161 ANeuralNetworksMemoryDesc_free(desc); in createDeviceMemoryForInput()
167 ANeuralNetworksMemoryDesc* desc = nullptr; in createDeviceMemoryForOutput() local
168 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
169 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, compilation.getHandle(), index, 1.0f), in createDeviceMemoryForOutput()
171 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
[all …]
DSupportLibraryTestGenerated.cpp256 ANeuralNetworksMemoryDesc* desc = nullptr; in createDeviceMemoryForInput() local
257 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
258 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_addInputRole(desc, compilation.getHandle(), index, in createDeviceMemoryForInput()
261 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
263 mNnApi->ANeuralNetworksMemory_createFromDesc(desc, &memory); in createDeviceMemoryForInput()
264 mNnApi->ANeuralNetworksMemoryDesc_free(desc); in createDeviceMemoryForInput()
270 ANeuralNetworksMemoryDesc* desc = nullptr; in createDeviceMemoryForOutput() local
271 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
272 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_addOutputRole(desc, compilation.getHandle(), index, in createDeviceMemoryForOutput()
275 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java88 ColorModeDescription desc = new ColorModeDescription(); in updateCurrentAndSupported() local
89 desc.colorMode = colorModes[i]; in updateCurrentAndSupported()
90 desc.title = titles[i]; in updateCurrentAndSupported()
91 desc.summary = descriptions[i]; in updateCurrentAndSupported()
92 mDescriptions.add(desc); in updateCurrentAndSupported()
111 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
113 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
114 mCurrentIndex = mDescriptions.indexOf(desc); in persistBoolean()
/packages/apps/Settings/src/com/android/settings/development/
DColorModePreference.java52 ColorModeDescription desc = new ColorModeDescription(); in getColorModeDescriptions() local
53 desc.colorMode = colorModes[i]; in getColorModeDescriptions()
54 desc.title = titles[i]; in getColorModeDescriptions()
55 desc.summary = descriptions[i]; in getColorModeDescriptions()
56 colorModeDescriptions.add(desc); in getColorModeDescriptions()
118 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
120 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
121 mCurrentIndex = mDescriptions.indexOf(desc); in persistBoolean()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java573 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemNoDisplayName_toMediaItem() local
579 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemNoDisplayName_toMediaItem()
580 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemNoDisplayName_toMediaItem()
581 Assert.assertEquals(title, desc.getTitle().toString()); in avrcpItemNoDisplayName_toMediaItem()
582 Assert.assertEquals(desc.getSubtitle(), null); in avrcpItemNoDisplayName_toMediaItem()
583 Assert.assertEquals(uri, desc.getIconUri()); in avrcpItemNoDisplayName_toMediaItem()
584 Assert.assertEquals(null, desc.getIconBitmap()); in avrcpItemNoDisplayName_toMediaItem()
602 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemWithDisplayName_toMediaItem() local
608 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemWithDisplayName_toMediaItem()
609 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemWithDisplayName_toMediaItem()
[all …]
/packages/modules/adb/tools/
Dcheck_ms_os_desc.cpp169 libusb_bos_dev_capability_descriptor* desc = bos->dev_capability[i]; in check_ms_os_desc_v2() local
170 if (desc->bDescriptorType != LIBUSB_DT_DEVICE_CAPABILITY) { in check_ms_os_desc_v2()
171 errx(1, "invalid BOS descriptor type: %d", desc->bDescriptorType); in check_ms_os_desc_v2()
174 if (desc->bDevCapabilityType != 0x05 /* PLATFORM */) { in check_ms_os_desc_v2()
176 desc->bDevCapabilityType); in check_ms_os_desc_v2()
180 if (desc->bLength < sizeof(*desc) + 16) { in check_ms_os_desc_v2()
185 memcpy(uuid, desc->dev_capability_data, 16); in check_ms_os_desc_v2()
194 size_t data_length = desc->bLength - sizeof(*desc) - 16; in check_ms_os_desc_v2()
/packages/modules/NeuralNetworks/common/
DSharedMemoryAndroid.cpp178 AHardwareBuffer_Desc desc; in getSize() local
179 AHardwareBuffer_describe(memory.handle.get(), &desc); in getSize()
180 return desc.format == AHARDWAREBUFFER_FORMAT_BLOB ? desc.width : 0; in getSize()
213 AHardwareBuffer_Desc desc; in map() local
214 AHardwareBuffer_describe(memory.handle.get(), &desc); in map()
216 if (desc.format != AHARDWAREBUFFER_FORMAT_BLOB) { in map()
219 const uint32_t size = desc.width; in map()
224 const auto status = AHardwareBuffer_lock(memory.handle.get(), desc.usage & kCpuUsageMask, -1, in map()
286 AHardwareBuffer_Desc desc; in isAhwbBlob() local
287 AHardwareBuffer_describe(ahwb, &desc); in isAhwbBlob()
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp51 AHardwareBuffer_Desc desc; variable
52 AHardwareBuffer_describe(arg, &desc);
54 if (desc.width != info.width) {
55 *result_listener << "Width does not match with values " << desc.width << " and "
60 if (desc.height != info.height) {
61 *result_listener << "Height does not match with values " << desc.height << " and "
67 if (expectedFormat != desc.format) {
83 uint8_t* mappedRow = (uint8_t*)mappedBuffer + y * desc.stride * bytesPerPixel;
85 std::min(info.stride, desc.stride * bytesPerPixel))) {
111 AHardwareBuffer_Desc desc; in TEST() local
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DBrowserPlayerWrapperTest.java351 MediaDescription desc = null; in testGetFolderItems() local
354 desc = getMediaDescription("s1", "song1", "artist", "album", null, null, null); in testGetFolderItems()
355 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
357 desc = getMediaDescription("s2", "song2", "artist", "album", mTestBitmap, null, null); in testGetFolderItems()
358 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
360 desc = getMediaDescription("s3", "song3", "artist", "album", null, IMAGE_URI_1, null); in testGetFolderItems()
361 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
363 desc = getMediaDescription("a1", "album1", "artist", null, null, null, null); in testGetFolderItems()
364 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
366 desc = getMediaDescription("a2", "album2", "artist", null, mTestBitmap, null, null); in testGetFolderItems()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountTypePreferenceLoader.java81 AuthenticatorDescription desc = null; in addPreferencesForType() local
83 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType()
84 if (desc != null && desc.accountPreferencesId != 0) { in addPreferencesForType()
92 desc.packageName, 0, mUserHandle); in addPreferencesForType()
99 desc.accountPreferencesId, parent); in addPreferencesForType()
102 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
104 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
DChooseAccountPreferenceController.java239 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() local
241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
243 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
268 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() local
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
271 label = authContext.getResources().getText(desc.labelId); in getLabelForType()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworks.h88 int ANeuralNetworksMemoryDesc_create(ANeuralNetworksMemoryDesc** desc) __NNAPI_INTRODUCED_IN(30);
103 void ANeuralNetworksMemoryDesc_free(ANeuralNetworksMemoryDesc* desc) __NNAPI_INTRODUCED_IN(30);
147 int ANeuralNetworksMemoryDesc_addInputRole(ANeuralNetworksMemoryDesc* desc,
194 int ANeuralNetworksMemoryDesc_addOutputRole(ANeuralNetworksMemoryDesc* desc,
222 int ANeuralNetworksMemoryDesc_setDimensions(ANeuralNetworksMemoryDesc* desc, uint32_t rank,
239 int ANeuralNetworksMemoryDesc_finish(ANeuralNetworksMemoryDesc* desc) __NNAPI_INTRODUCED_IN(30);
294 int ANeuralNetworksMemory_createFromDesc(const ANeuralNetworksMemoryDesc* desc,
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h677 int (*ANeuralNetworksMemoryDesc_addInputRole)(ANeuralNetworksMemoryDesc* desc,
687 int (*ANeuralNetworksMemoryDesc_addOutputRole)(ANeuralNetworksMemoryDesc* desc,
697 int (*ANeuralNetworksMemoryDesc_create)(ANeuralNetworksMemoryDesc** desc);
705 int (*ANeuralNetworksMemoryDesc_finish)(ANeuralNetworksMemoryDesc* desc);
713 void (*ANeuralNetworksMemoryDesc_free)(ANeuralNetworksMemoryDesc* desc);
721 int (*ANeuralNetworksMemoryDesc_setDimensions)(ANeuralNetworksMemoryDesc* desc, uint32_t rank,
748 int (*ANeuralNetworksMemory_createFromDesc)(const ANeuralNetworksMemoryDesc* desc,
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp407 static void logMemoryDescriptorToInfo(const MemoryDescriptor& desc, const Operand& operand) { in logMemoryDescriptorToInfo() argument
413 LOG(INFO) << " Dimensions: " << toString(desc.dimensions); in logMemoryDescriptorToInfo()
414 LOG(INFO) << " Prepared models [" << desc.preparedModels.size() << "]:"; in logMemoryDescriptorToInfo()
415 for (const auto* preparedModel : desc.preparedModels) { in logMemoryDescriptorToInfo()
418 LOG(INFO) << " Input roles [" << desc.inputRoles.size() << "]:"; in logMemoryDescriptorToInfo()
419 for (const auto& usage : desc.inputRoles) { in logMemoryDescriptorToInfo()
422 LOG(INFO) << " Output roles [" << desc.outputRoles.size() << "]:"; in logMemoryDescriptorToInfo()
423 for (const auto& usage : desc.outputRoles) { in logMemoryDescriptorToInfo()
429 static std::set<const Device*> getDevices(const MemoryDescriptor& desc) { in getDevices() argument
431 for (const auto* preparedModel : desc.preparedModels) { in getDevices()
[all …]
DNeuralNetworks.cpp922 int ANeuralNetworksMemoryDesc_create(ANeuralNetworksMemoryDesc** desc) { in ANeuralNetworksMemoryDesc_create() argument
924 if (desc != nullptr) { in ANeuralNetworksMemoryDesc_create()
925 *desc = nullptr; in ANeuralNetworksMemoryDesc_create()
927 if (!desc) { in ANeuralNetworksMemoryDesc_create()
932 *desc = reinterpret_cast<ANeuralNetworksMemoryDesc*>(mb.release()); in ANeuralNetworksMemoryDesc_create()
936 void ANeuralNetworksMemoryDesc_free(ANeuralNetworksMemoryDesc* desc) { in ANeuralNetworksMemoryDesc_free() argument
939 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_free()
943 int ANeuralNetworksMemoryDesc_addInputRole(ANeuralNetworksMemoryDesc* desc, in ANeuralNetworksMemoryDesc_addInputRole() argument
947 if (!desc || !compilation) { in ANeuralNetworksMemoryDesc_addInputRole()
951 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addInputRole()
[all …]
/packages/services/Car/cpp/evs/sampleDriver/
DEvsEnumerator.cpp130 cam.desc.metadata.setToExternal( in EvsUeventThread()
266 hidlCameras[i++] = cam.desc.v1; in getCameraList()
325 pCamera->getCameraInfo([&cameraId](CameraDesc_1_0 desc) { in closeCamera() argument
326 cameraId = desc.cameraId; in closeCamera()
422 hidlCameras[i++] = cam.desc; in getCameraList_1_1()
430 cam.desc.metadata.setToExternal( in getCameraList_1_1()
436 hidlCameras.emplace_back(cam.desc); in getCameraList_1_1()
451 cam.desc.metadata.setToExternal( in getCameraList_1_1()
458 hidlCameras.emplace_back(cam.desc); in getCameraList_1_1()
/packages/modules/Gki/test/src/com/android/gki/tests/
DGkiInstallTest.java159 String desc = String.format("package %s vs kernel release %s", mPackageName, in skipTestIfWrongKernelVersion() local
162 CLog.i("Checking: %s", desc); in skipTestIfWrongKernelVersion()
164 assumeThat(desc, packageMatcher.group("w"), is(kernelMatcher.group("w"))); in skipTestIfWrongKernelVersion()
165 assumeThat(desc, packageMatcher.group("x"), is(kernelMatcher.group("x"))); in skipTestIfWrongKernelVersion()
166 assumeThat(desc, packageMatcher.group("z"), is(kernelMatcher.group("z"))); in skipTestIfWrongKernelVersion()
167 assumeThat(desc, packageMatcher.group("k"), in skipTestIfWrongKernelVersion()
/packages/modules/ExtServices/native/tests/
DImageHashManager_test.cpp93 AHardwareBuffer_Desc desc = { in TEST() local
102 ImageHashManager::generateHash("phash", expandedBuffer.data(), desc, &outImageHash); in TEST()
114 AHardwareBuffer_Desc desc = { in TEST() local
123 ImageHashManager::generateHash("fakeHash", expandedBuffer.data(), desc, &outImageHash); in TEST()
/packages/apps/Settings/src/com/android/settings/
DMainClear.java501 AuthenticatorDescription desc = null; in loadAccountList() local
504 desc = descs[j]; in loadAccountList()
508 if (desc == null) { in loadAccountList()
515 if (desc.iconId != 0) { in loadAccountList()
516 Context authContext = context.createPackageContextAsUser(desc.packageName, in loadAccountList()
519 authContext.getDrawable(desc.iconId), userHandle); in loadAccountList()
522 Log.w(TAG, "Bad package name for account type " + desc.type); in loadAccountList()
524 Log.w(TAG, "Invalid icon id for account type " + desc.type, e); in loadAccountList()

12345