Home
last modified time | relevance | path

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

/system/core/fs_mgr/liblp/
Dpartition_opener.cpp61 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) { in GetBlockDeviceInfo() argument
68 if (!GetDescriptorSize(fd, &device_info->size)) { in GetBlockDeviceInfo()
71 if (ioctl(fd, BLKIOMIN, &device_info->alignment) < 0) { in GetBlockDeviceInfo()
93 device_info->alignment_offset = static_cast<uint32_t>(alignment_offset); in GetBlockDeviceInfo()
94 device_info->logical_block_size = static_cast<uint32_t>(logical_block_size); in GetBlockDeviceInfo()
95 device_info->partition_name = android::base::Basename(block_device); in GetBlockDeviceInfo()
99 (void)device_info; in GetBlockDeviceInfo()
Dbuilder_test.cpp160 BlockDeviceInfo device_info("super", 1024 * 1024, 768 * 1024, 0, 4096); in TEST_F() local
161 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
170 device_info.alignment_offset = 753664; in TEST_F()
171 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
180 device_info.alignment = 0; in TEST_F()
181 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
185 device_info.alignment = 12 * 1024; in TEST_F()
186 device_info.alignment_offset = 3 * 1024; in TEST_F()
187 builder = MetadataBuilder::New(device_info, 16 * 1024, 2); in TEST_F()
196 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.cpp596 BlockDeviceInfo device_info("super", kDiskSize, 0, 0, 512); in TEST_F() local
598 MetadataBuilder::New(device_info, kMetadataSize, kMetadataSlots); in TEST_F()
/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/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/libfiemap/
Dmetadata.cpp76 BlockDeviceInfo device_info; in OpenOrCreateMetadata() local
77 if (!opener.GetInfo(data_device, &device_info)) { in OpenOrCreateMetadata()
82 std::vector<BlockDeviceInfo> block_devices = {device_info}; in OpenOrCreateMetadata()
/system/teeui/test/
Dteeui_device_config.h38 example::DeviceInfo device_info = {
Dteeui_device_config.cpp45 DeviceInfo* device_info_ptr = &TeeuiRenderTest::Instance()->device_info; in runRenderTest()
73 DeviceInfo* device_info_ptr = &TeeuiRenderTest::Instance()->device_info; in createDevice()
/system/bt/stack/include/
Dsdp_api.h526 uint16_t SDP_SetLocalDiRecord(tSDP_DI_RECORD* device_info, uint32_t* p_handle);
563 tSDP_DI_GET_RECORD* device_info,
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz.cpp173 CHECK(current_module->device_info != nullptr); in SNAPSHOT_FUZZ_FUNCTION()
174 current_module->device_info->SwitchSlot(); in SNAPSHOT_FUZZ_FUNCTION()
344 ASSERT_EQ("_b", test_module_.device_info->GetSlotSuffix()); in TEST_F()
Dsnapshot_fuzz_utils.h45 SnapshotFuzzDeviceInfo* device_info = nullptr; member
Dsnapshot_fuzz_utils.cpp431 ret.device_info = new SnapshotFuzzDeviceInfo(data.device_info_data(), in CheckCreateSnapshotManager()
433 auto snapshot = SnapshotManager::New(ret.device_info /* takes ownership */); in CheckCreateSnapshotManager()
DAndroid.bp72 "device_info.cpp",
/system/bt/common/
Dmetrics_unittest.cc77 DeviceInfo* device_info) { in MakePairEvent() argument
81 if (device_info) event->set_allocated_device_paired_with(device_info); in MakePairEvent()
129 DeviceInfo* device_info, RFCommSession* rfcomm_session, in MakeBluetoothSession() argument
134 if (device_info) session->set_allocated_device_connected_to(device_info); in MakeBluetoothSession()