Home
last modified time | relevance | path

Searched refs:device_info (Results 1 – 25 of 28) sorted by relevance

12

/system/core/fs_mgr/liblp/
Dpartition_opener.cpp65 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) { in GetBlockDeviceInfo() argument
72 if (!GetDescriptorSize(fd, &device_info->size)) { in GetBlockDeviceInfo()
75 if (ioctl(fd, BLKIOMIN, &device_info->alignment) < 0) { in GetBlockDeviceInfo()
97 device_info->alignment_offset = static_cast<uint32_t>(alignment_offset); in GetBlockDeviceInfo()
98 device_info->logical_block_size = static_cast<uint32_t>(logical_block_size); in GetBlockDeviceInfo()
99 device_info->partition_name = android::base::Basename(block_device); in GetBlockDeviceInfo()
103 (void)device_info; in GetBlockDeviceInfo()
Dbuilder_test.cpp162 BlockDeviceInfo device_info("super", 1024 * 1024, 768 * 1024, 0, 4096); in TEST_F() local
163 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
172 device_info.alignment_offset = 753664; in TEST_F()
173 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
182 device_info.alignment = 0; in TEST_F()
183 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
187 device_info.alignment = 12 * 1024; in TEST_F()
188 device_info.alignment_offset = 3 * 1024; in TEST_F()
189 builder = MetadataBuilder::New(device_info, 16 * 1024, 2); in TEST_F()
198 device_info.alignment = 11 * 1024; in TEST_F()
[all …]
Ddevice_test.cpp47 BlockDeviceInfo device_info; in TEST_F() local
48 ASSERT_TRUE(opener.GetInfo(fs_mgr_get_super_partition_name(), &device_info)); in TEST_F()
52 EXPECT_EQ(device_info.alignment % LP_SECTOR_SIZE, 0); in TEST_F()
53 EXPECT_EQ(device_info.logical_block_size % LP_SECTOR_SIZE, 0); in TEST_F()
Dbuilder.cpp208 BlockDeviceInfo device_info; in New() local
209 if (opener->GetInfo(partition_name, &device_info)) { in New()
210 builder->UpdateBlockDeviceInfo(i, device_info); in New()
360 static bool VerifyDeviceProperties(const BlockDeviceInfo& device_info) { in VerifyDeviceProperties() argument
361 if (device_info.logical_block_size == 0) { in VerifyDeviceProperties()
362 LERROR << "Block device " << device_info.partition_name in VerifyDeviceProperties()
366 if (device_info.logical_block_size % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties()
367 LERROR << "Block device " << device_info.partition_name in VerifyDeviceProperties()
371 if (device_info.size % device_info.logical_block_size != 0) { in VerifyDeviceProperties()
372 LERROR << "Block device " << device_info.partition_name in VerifyDeviceProperties()
[all …]
Dio_test.cpp600 BlockDeviceInfo device_info("super", kDiskSize, 0, 0, 512); in TEST_F() local
602 MetadataBuilder::New(device_info, kMetadataSize, kMetadataSlots); in TEST_F()
/system/teeui/test/
Dteeui_device_config.cpp80 DeviceInfo* device_info_ptr = &TeeuiRenderTest::Instance()->device_info; in runRenderTest()
120 device_info.width_ = strtol(optarg, NULL, 10); in initFromOptions()
123 device_info.height_ = strtol(optarg, NULL, 10); in initFromOptions()
126 device_info.dp2px_ = strtod(optarg, NULL); in initFromOptions()
129 device_info.mm2px_ = strtod(optarg, NULL); in initFromOptions()
132 device_info.powerButtonTopMm_ = strtod(optarg, NULL); in initFromOptions()
135 device_info.powerButtonBottomMm_ = strtod(optarg, NULL); in initFromOptions()
138 device_info.volUpButtonTopMm_ = strtod(optarg, NULL); in initFromOptions()
141 device_info.volUpButtonBottomMm_ = strtod(optarg, NULL); in initFromOptions()
Dteeui_device_config.h38 example::DeviceInfo device_info = {
/system/update_engine/common/
Dtest_utils.cc114 struct loop_info64 device_info {}; in SetLoopDeviceStatus() struct
115 device_info.lo_offset = 0; in SetLoopDeviceStatus()
116 device_info.lo_sizelimit = 0; // 0 means whole file. in SetLoopDeviceStatus()
117 device_info.lo_flags = (writable ? 0 : LO_FLAGS_READ_ONLY); in SetLoopDeviceStatus()
118 device_info.lo_number = loop_number; in SetLoopDeviceStatus()
119 strncpy(reinterpret_cast<char*>(device_info.lo_file_name), in SetLoopDeviceStatus()
122 device_info.lo_file_name[LO_NAME_SIZE - 1] = '\0'; in SetLoopDeviceStatus()
124 ioctl(loop_device_fd, LOOP_SET_STATUS64, &device_info) == 0); in SetLoopDeviceStatus()
162 struct loop_info64 device_info; in BindToUnusedLoopDeviceLegacy() local
163 if (ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info) != -1 || in BindToUnusedLoopDeviceLegacy()
[all …]
/system/teeui/libteeui_jni/
Dlibteeui_jni.cpp141 DeviceInfo device_info; in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo() local
142 device_info.width_ = env->CallIntMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
144 device_info.height_ = env->CallIntMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
146 device_info.dp2px_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
148 device_info.mm2px_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
150 device_info.powerButtonTopMm_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
152 device_info.powerButtonBottomMm_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
154 device_info.volUpButtonTopMm_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
156 device_info.volUpButtonBottomMm_ = env->CallDoubleMethod(jDeviceInfo, method); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
160 return sCurrentExample->setDeviceInfo(device_info, magnified, inverted); in Java_com_android_framebufferizer_NativeRenderer_setDeviceInfo()
/system/core/fs_mgr/libfiemap/
Dpassthrough.cpp24 const DeviceInfo& device_info) { in Open() argument
26 return ImageManager::Open(dir_prefix, device_info); in Open()
Dmetadata.cpp77 BlockDeviceInfo device_info; in OpenOrCreateMetadata() local
78 if (!opener.GetInfo(data_device, &device_info)) { in OpenOrCreateMetadata()
83 std::vector<BlockDeviceInfo> block_devices = {device_info}; in OpenOrCreateMetadata()
Dimage_manager.cpp59 const DeviceInfo& device_info) { in Open() argument
67 return Open(metadata_dir, data_dir, device_info); in Open()
72 const DeviceInfo& device_info) { in Open() argument
73 return std::unique_ptr<ImageManager>(new ImageManager(metadata_dir, data_dir, device_info)); in Open()
77 const DeviceInfo& device_info) in ImageManager() argument
78 : metadata_dir_(metadata_dir), data_dir_(data_dir), device_info_(device_info) { in ImageManager()
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h51 const DeviceInfo& device_info = {});
142 const DeviceInfo& device_info = {});
147 const DeviceInfo& device_info = {});
183 const DeviceInfo& device_info);
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h247 static std::unique_ptr<MetadataBuilder> New(const BlockDeviceInfo& device_info, in New() argument
250 return New({device_info}, device_info.partition_name, metadata_max_size, in New()
258 BlockDeviceInfo device_info(LP_METADATA_DEFAULT_PARTITION_NAME, blockdev_size, 0, 0, in New()
260 return New(device_info, metadata_max_size, metadata_slot_count); in New()
429 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info);
/system/teeui/libteeui/example/
Dphys_button_example.cpp57 uint32_t setDeviceInfo(DeviceInfo device_info, bool magnified, bool inverted = false) override;
97 uint32_t GUIStatePhysButtons::setDeviceInfo(DeviceInfo device_info, bool magnified, bool inverted) { in setDeviceInfo() argument
99 instantiateLayout(ConfUILayout(), setLayoutParams(device_info, magnified, inverted)); in setDeviceInfo()
Dtouch_button_example.cpp79 uint32_t setDeviceInfo(DeviceInfo device_info, bool magnified, bool inverted = false) override;
125 uint32_t GUIStateTouch::setDeviceInfo(DeviceInfo device_info, bool magnified, bool inverted) { in setDeviceInfo() argument
127 instantiateLayout(ConfUILayout(), setLayoutParams(device_info, magnified, inverted)); in setDeviceInfo()
/system/core/fs_mgr/libsnapshot/
Ddevice_info.cpp132 android::fiemap::ImageManager::DeviceInfo device_info = { in OpenImageManager() local
135 return android::fiemap::ImageManager::Open(gsid_dir, device_info); in OpenImageManager()
DAndroid.bp86 "device_info.cpp",
/system/memory/libmemtrack/include/memtrack/
Dmemtrack.h157 std::vector<aidl::android::hardware::memtrack::DeviceInfo>* device_info);
/system/memory/libmemtrack/
Dmemtrack.cpp67 bool memtrack_gpu_device_info(std::vector<DeviceInfo>* device_info) { in memtrack_gpu_device_info() argument
73 auto status = memtrack_proxy_service->getGpuDeviceInfo(device_info); in memtrack_gpu_device_info()
/system/keymint/wire/src/
Drpc.rs70 pub device_info: Vec<u8>, field
/system/keymint/hal/src/
Drpc.rs73 *deviceInfo = rsp.device_info.innto(); in generateCertificateRequest()
/system/update_engine/aosp/
Ddynamic_partition_control_android_unittest.cc431 auto device_info = in TEST_P() local
433 ASSERT_TRUE(device_info.has_value()); in TEST_P()
434 ASSERT_EQ(device_info->readonly_device_path, device); in TEST_P()
473 auto device_info = in TEST_P() local
475 ASSERT_TRUE(device_info.has_value()); in TEST_P()
478 ASSERT_EQ(device_info->readonly_device_path, in TEST_P()
/system/keymint/common/
Dgenerated.cddl258 device_info: bstr,
539 device_info: DeviceInfo,
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp482 std::vector<uint8_t> device_info = device_info_map->encode(); in GenerateCsr() local
483 response->device_info_blob = KeymasterBlob(device_info.data(), device_info.size()); in GenerateCsr()

12