Home
last modified time | relevance | path

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

12345678

/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/DeviceAsWebcam/jni/
DSdkFrameProvider.cpp60 HardwareBufferDesc desc; in encodeImage() local
61 if (getHardwareBufferDescFromHardwareBuffer(hardwareBuffer, desc) != Status::OK) { in encodeImage()
65 return encodeImage(desc, timestamp, rotation); in encodeImage()
86 AHardwareBuffer_Desc desc{}; in getHardwareBufferDescFromHardwareBuffer() local
87 AHardwareBuffer_describe(hardwareBuffer, &desc); in getHardwareBufferDescFromHardwareBuffer()
89 uint32_t height = desc.height; in getHardwareBufferDescFromHardwareBuffer()
90 uint32_t width = desc.width; in getHardwareBufferDescFromHardwareBuffer()
91 ret.format = desc.format; in getHardwareBufferDescFromHardwareBuffer()
128 Status SdkFrameProvider::encodeImage(HardwareBufferDesc desc, jlong timestamp, jint rotation) { in encodeImage() argument
133 releaseHardwareBuffer(desc); in encodeImage()
[all …]
DEncoder.cpp299 ARGBHardwareBufferDesc desc = std::get<ARGBHardwareBufferDesc>(src.bufferDesc); in convertToI420() local
300 return libyuv::ARGBToI420(desc.buf, desc.rowStride, dstY, in convertToI420()
304 YuvHardwareBufferDesc desc = std::get<YuvHardwareBufferDesc>(src.bufferDesc); in convertToI420() local
305 return libyuv::Android420ToI420Rotate(desc.yData, desc.yRowStride, desc.uData, desc.uRowStride, in convertToI420()
306 desc.vData, desc.vRowStride, desc.uvPixelStride, dstY, in convertToI420()
/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/modules/Virtualization/libs/vbmeta/src/
Ddescriptor.rs53 let desc = unsafe { in from_image() localVariable
54 let mut desc = MaybeUninit::uninit(); in from_image() localVariable
55 if !avb_descriptor_validate_and_byteswap(descriptor, desc.as_mut_ptr()) { in from_image()
58 desc.assume_init() in from_image()
64 size_of::<AvbDescriptor>() + desc.num_bytes_following as usize, in from_image()
69 descriptors.push(match desc.tag.try_into() { in from_image()
89 let desc = &mut descriptors as *mut _ as *mut c_void; in from_image() localVariable
90 avb_descriptor_foreach(data.as_ptr(), data.len(), Some(desc_cb), desc) in from_image()
120 let mut desc = MaybeUninit::uninit(); in to_hashtree() localVariable
122 if !avb_hashtree_descriptor_validate_and_byteswap(src, desc.as_mut_ptr()) { in to_hashtree()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DEvsEnumeratorHidlUnitTest_1_0.cpp101 bool VerifyCameraStream(const hidlevs::V1_0::CameraDesc& desc, size_t framesToReceive,
150 hidlevs::V1_0::DisplayDesc desc; in TEST_F() local
151 d->getDisplayInfo([&desc](const auto& read) { desc = read; }); in TEST_F()
152 EXPECT_EQ(0, desc.vendorFlags); in TEST_F()
174 hidlevs::V1_0::CameraDesc desc; in TEST_F() local
175 c->getCameraInfo([&desc](const auto& read) { desc = read; }); in TEST_F()
176 EXPECT_EQ(desc.cameraId, camera.cameraId); in TEST_F()
177 EXPECT_EQ(desc.vendorFlags, camera.vendorFlags); in TEST_F()
197 for (auto& desc : cameras) { in TEST_F() local
202 std::bind(&EvsEnumeratorHidlUnitTest_1_0::VerifyCameraStream, this, desc, in TEST_F()
[all …]
DMockHidlEvsHal.cpp179 AHardwareBuffer_Desc desc = { in initializeBufferPool() local
187 if (AHardwareBuffer_allocate(&desc, &ahwb) != ::android::NO_ERROR) { in initializeBufferPool()
202 *(reinterpret_cast<AHardwareBuffer_Desc*>(&aBuffer.buffer.description)) = desc; in initializeBufferPool()
260 [id = buffer.bufferId](const BufferDesc& desc) { in addMockCameraDevice() argument
261 return id == desc.bufferId; in addMockCameraDevice()
279 [id = b.bufferId](const BufferDesc& desc) { in addMockCameraDevice() argument
280 return id == desc.bufferId; in addMockCameraDevice()
662 DisplayDesc desc = { in addMockDisplayDevice() local
669 callback(desc); in addMockDisplayDevice()
675 DisplayDesc desc = { in addMockDisplayDevice() local
[all …]
DMockHidlEvsHal_1_0.cpp140 AHardwareBuffer_Desc desc = { in initializeBufferPool() local
148 if (AHardwareBuffer_allocate(&desc, &ahwb) != ::android::NO_ERROR) { in initializeBufferPool()
154 .width = desc.width, in initializeBufferPool()
155 .height = desc.height, in initializeBufferPool()
158 .format = desc.format, in initializeBufferPool()
159 .usage = static_cast<uint32_t>(desc.usage), in initializeBufferPool()
215 [id = buffer.bufferId](const BufferDesc& desc) { in addMockCameraDevice() argument
216 return id == desc.bufferId; in addMockCameraDevice()
395 DisplayDesc desc = { in addMockDisplayDevice() local
402 callback(desc); in addMockDisplayDevice()
[all …]
DMockEvsHal.cpp252 AHardwareBuffer_Desc desc = { in initializeBufferPool() local
260 if (AHardwareBuffer_allocate(&desc, &ahwb) != ::android::NO_ERROR) { in initializeBufferPool()
342 [id = b.bufferId](const BufferDesc& desc) { in addMockCameraDevice() argument
343 return id == desc.bufferId; in addMockCameraDevice()
371 ON_CALL(*mockCamera, getCameraInfo).WillByDefault([deviceId, this](CameraDesc* desc) { in addMockCameraDevice() argument
383 *desc = std::move(mockDesc); in addMockCameraDevice()
449 .WillByDefault([deviceId](const std::string&, CameraDesc* desc) { in addMockCameraDevice() argument
456 *desc = std::move(mockDesc); in addMockCameraDevice()
682 DisplayDesc desc = { in addMockDisplayDevice() local
690 *out = std::move(desc); in addMockDisplayDevice()
[all …]
DEvsEnumeratorHidlUnitTest.cpp111 bool VerifyCameraStream(const hidlevs::V1_1::CameraDesc& desc, size_t framesToReceive,
117 bool VerifyCameraStream_1_0(const hidlevs::V1_0::CameraDesc& desc, size_t framesToReceive,
252 hidlevs::V1_0::DisplayDesc desc; in TEST_F() local
253 d->getDisplayInfo([&desc](const auto& read) { desc = read; }); in TEST_F()
254 EXPECT_EQ(0, desc.vendorFlags); in TEST_F()
256 ::aidl::android::hardware::automotive::evs::DisplayDesc aidlDesc = Utils::makeFromHidl(desc); in TEST_F()
257 EXPECT_EQ(aidlDesc.id, desc.displayId); in TEST_F()
258 EXPECT_EQ(aidlDesc.vendorFlags, desc.vendorFlags); in TEST_F()
315 hidlevs::V1_0::CameraDesc desc; in TEST_F() local
316 c->getCameraInfo([&desc](const auto& read) { desc = read; }); in TEST_F()
[all …]
DEvsEnumeratorUnitTest.cpp103 bool VerifyCameraStream(const CameraDesc& desc, size_t framesToReceive,
196 DisplayDesc desc; in TEST_F() local
197 EXPECT_TRUE(h1->getDisplayInfo(&desc).isOk()); in TEST_F()
215 for (auto& desc : cameras) { in TEST_F() local
218 EXPECT_TRUE(mEnumerator->getStreamList(desc, &configs).isOk()); in TEST_F()
222 EXPECT_TRUE(mEnumerator->openCamera(desc.id, configs[0], &h0).isOk()); in TEST_F()
224 EXPECT_TRUE(mEnumerator->openCamera(desc.id, configs[0], &h1).isOk()); in TEST_F()
300 for (auto& desc : cameras) { in TEST_F() local
302 EXPECT_TRUE(mEnumerator->getStreamList(desc, &configs).isOk()); in TEST_F()
309 desc, kFramesToReceive, kMaxFrameInterval, in TEST_F()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java87 ColorModeDescription desc = new ColorModeDescription(); in updateCurrentAndSupported() local
88 desc.colorMode = colorModes[i]; in updateCurrentAndSupported()
89 desc.title = titles[i]; in updateCurrentAndSupported()
90 desc.summary = descriptions[i]; in updateCurrentAndSupported()
91 mDescriptions.add(desc); in updateCurrentAndSupported()
110 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
112 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
113 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/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/helpers/
DMetadata.java222 public Builder fromMediaDescription(MediaDescription desc) { in fromMediaDescription() argument
223 if (desc == null) return this; in fromMediaDescription()
226 if (desc.getTitle() != null) mMetadata.title = desc.getTitle().toString(); in fromMediaDescription()
227 if (desc.getSubtitle() != null) mMetadata.artist = desc.getSubtitle().toString(); in fromMediaDescription()
228 if (desc.getDescription() != null) mMetadata.album = desc.getDescription().toString(); in fromMediaDescription()
231 if (desc.getIconBitmap() != null) { in fromMediaDescription()
232 mMetadata.image = new Image(mContext, desc.getIconBitmap()); in fromMediaDescription()
235 && desc.getIconUri() != null) { in fromMediaDescription()
236 mMetadata.image = new Image(mContext, desc.getIconUri()); in fromMediaDescription()
240 return fromBundle(desc.getExtras()).setMediaId(desc.getMediaId()); in fromMediaDescription()
/packages/modules/NeuralNetworks/common/types/src/
DSharedMemoryAndroid.cpp134 AHardwareBuffer_Desc desc; in getSize() local
135 AHardwareBuffer_describe(memory.handle.get(), &desc); in getSize()
136 return desc.format == AHARDWAREBUFFER_FORMAT_BLOB ? desc.width : 0; in getSize()
176 AHardwareBuffer_Desc desc; in map() local
177 AHardwareBuffer_describe(memory.handle.get(), &desc); in map()
179 if (desc.format != AHARDWAREBUFFER_FORMAT_BLOB) { in map()
182 const uint32_t size = desc.width; in map()
187 const auto status = AHardwareBuffer_lock(memory.handle.get(), desc.usage & kCpuUsageMask, -1, in map()
260 AHardwareBuffer_Desc desc; in isAhwbBlob() local
261 AHardwareBuffer_describe(ahwb, &desc); in isAhwbBlob()
[all …]
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/
DSafetyCenterQsActivityTest.kt66 waitDisplayed(By.desc("Close")) in launchActivity_fromQuickSettings_hasContentDescriptions()
69 waitDisplayed(By.desc("Switch. Camera access. Available")) in launchActivity_fromQuickSettings_hasContentDescriptions()
70 waitDisplayed(By.desc("Switch. Mic access. Available")) in launchActivity_fromQuickSettings_hasContentDescriptions()
78 waitDisplayed(By.desc("Switch. Camera access. Available")) { it.click() } in launchActivity_togglePrivacyControls_hasUpdatedDescriptions()
79 waitDisplayed(By.desc("Switch. Mic access. Available")) { it.click() } in launchActivity_togglePrivacyControls_hasUpdatedDescriptions()
82 waitDisplayed(By.desc("Switch. Camera access. Blocked")) in launchActivity_togglePrivacyControls_hasUpdatedDescriptions()
83 waitDisplayed(By.desc("Switch. Mic access. Blocked")) in launchActivity_togglePrivacyControls_hasUpdatedDescriptions()
/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/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/modules/Virtualization/vmbase/src/memory/
Ddbm.rs55 desc: &Descriptor, in flush_dirty_range()
58 let flags = desc.flags().ok_or(())?; in flush_dirty_range()
69 desc: &mut Descriptor, in mark_dirty_block()
72 let flags = desc.flags().ok_or(())?; in mark_dirty_block()
75 desc.modify_flags(Attributes::empty(), Attributes::READ_ONLY); in mark_dirty_block()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp280 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion() local
281 mRegions.push_back(desc); in addRegion()
1299 for (auto& desc : ioDescriptors) { in TEST_P() local
1301 desc.mVector.resize(problemSize * problemSize); in TEST_P()
1311 desc.mMemoryRegion = ioMemories.addRegion(memoryIndex, length); in TEST_P()
1321 for (auto& desc : ioDescriptors) { in TEST_P() local
1322 if (desc.getLocation() == InputOutputDescriptor::VECTOR) { in TEST_P()
1323 if (desc.mKind == InputOutputDescriptor::INPUT) { in TEST_P()
1327 desc.mVector.begin()); in TEST_P()
1328 e->setInput(inputIndex++, desc.mVector.data(), in TEST_P()
[all …]
DTestValidation.cpp687 AHardwareBuffer_Desc desc{ in TEST_F() local
696 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
718 AHardwareBuffer_Desc desc{ in TEST_F() local
727 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1808 AHardwareBuffer_Desc desc{ in TEST_F() local
1817 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1854 AHardwareBuffer_Desc desc{ in TEST_F() local
1864 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
2003 AHardwareBuffer_Desc desc{ in TEST_F() local
2012 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java548 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemNoDisplayName_toMediaItem() local
554 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemNoDisplayName_toMediaItem()
555 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemNoDisplayName_toMediaItem()
556 Assert.assertEquals(title, desc.getTitle().toString()); in avrcpItemNoDisplayName_toMediaItem()
557 Assert.assertEquals(desc.getSubtitle(), null); in avrcpItemNoDisplayName_toMediaItem()
558 Assert.assertEquals(uri, desc.getIconUri()); in avrcpItemNoDisplayName_toMediaItem()
559 Assert.assertEquals(null, desc.getIconBitmap()); in avrcpItemNoDisplayName_toMediaItem()
577 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemWithDisplayName_toMediaItem() local
583 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemWithDisplayName_toMediaItem()
584 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemWithDisplayName_toMediaItem()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DBrowserPlayerWrapperTest.java358 MediaDescription desc = in testGetFolderItems() local
360 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
362 desc = getMediaDescription("s2", "song2", "artist", "album", mTestBitmap, null, null); in testGetFolderItems()
363 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
365 desc = getMediaDescription("s3", "song3", "artist", "album", null, IMAGE_URI_1, null); in testGetFolderItems()
366 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
368 desc = getMediaDescription("a1", "album1", "artist", null, null, null, null); in testGetFolderItems()
369 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
371 desc = getMediaDescription("a2", "album2", "artist", null, mTestBitmap, null, null); in testGetFolderItems()
372 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountTypePreferenceLoader.java88 AuthenticatorDescription desc = null; in addPreferencesForType() local
90 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType()
91 if (desc != null && desc.accountPreferencesId != 0) { in addPreferencesForType()
100 desc.packageName, 0, mUserHandle); in addPreferencesForType()
108 desc.accountPreferencesId, parent); in addPreferencesForType()
117 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
119 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()

12345678