Home
last modified time | relevance | path

Searched refs:dm (Results 1 – 25 of 110) sorted by relevance

12345

/aosp14/system/core/fs_mgr/libdm/
H A Ddm_test.cpp45 using namespace android::dm;
62 auto& dm = DeviceMapper::Instance(); in TearDown() local
75 DeviceMapper& dm = DeviceMapper::Instance(); in TEST_F() local
108 auto& dm = DeviceMapper::Instance(); in TEST_F() local
171 auto& dm = DeviceMapper::Instance(); in TEST_F() local
316 DeviceMapper& dm = DeviceMapper::Instance(); in MergeImpl() local
342 DeviceMapper& dm = DeviceMapper::Instance(); in CheckSnapshotAvailability() local
433 DeviceMapper& dm = DeviceMapper::Instance(); in TEST_F() local
741 auto info = dm.GetDetailedInfo(test_name_); in TEST_F()
745 ASSERT_TRUE(dm.DeleteDevice(test_name_)); in TEST_F()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A DDisplayUtils.java36 DisplayMetrics dm = new DisplayMetrics(); in convertDpToPx() local
37 d.getRealMetrics(dm); in convertDpToPx()
39 return (int) Math.ceil(dp * dm.density); in convertDpToPx()
51 DisplayMetrics dm = new DisplayMetrics(); in getWidth() local
52 d.getRealMetrics(dm); in getWidth()
56 return dm.widthPixels; in getWidth()
58 return dm.heightPixels; in getWidth()
71 DisplayMetrics dm = new DisplayMetrics(); in getHeight() local
72 d.getRealMetrics(dm); in getHeight()
76 return dm.heightPixels; in getHeight()
[all …]
/aosp14/system/core/fs_mgr/tools/
H A Ddmctl.cpp43 using namespace android::dm;
265 DeviceMapper& dm = DeviceMapper::Instance(); in DmCreateCmdHandler() local
266 if (!dm.CreateEmptyDevice(name)) { in DmCreateCmdHandler()
288 DeviceMapper& dm = DeviceMapper::Instance(); in DmDeleteCmdHandler() local
289 if (!dm.DeleteDevice(name)) { in DmDeleteCmdHandler()
308 DeviceMapper& dm = DeviceMapper::Instance(); in DmReplaceCmdHandler() local
323 if (!dm.GetAvailableTargets(&targets)) {
344 if (!dm.GetAvailableDevices(&devices)) { in DmListDevices()
395 DeviceMapper& dm = DeviceMapper::Instance(); in DmListCmdHandler() local
415 DeviceMapper& dm = DeviceMapper::Instance(); in GetPathCmdHandler() local
[all …]
/aosp14/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
H A Dtest_helpers.h102 android::dm::IDeviceMapper& GetDeviceMapper() override { in GetDeviceMapper()
106 return android::dm::DeviceMapper::Instance(); in GetDeviceMapper()
117 void set_dm(android::dm::IDeviceMapper* dm) { dm_ = dm; } in set_dm() argument
128 android::dm::IDeviceMapper* dm_ = nullptr;
131 class DeviceMapperWrapper : public android::dm::IDeviceMapper {
132 using DmDeviceState = android::dm::DmDeviceState;
133 using DmTable = android::dm::DmTable;
136 DeviceMapperWrapper() : impl_(android::dm::DeviceMapper::Instance()) {} in DeviceMapperWrapper()
137 explicit DeviceMapperWrapper(android::dm::IDeviceMapper& impl) : impl_(impl) {} in DeviceMapperWrapper()
169 android::dm::IDeviceMapper& impl_;
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayManagerShellCommand.java152 Display[] displays = dm.getDisplays(category); in getDisplays()
178 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setBrightness() local
179 dm.setBrightness(Display.DEFAULT_DISPLAY, brightness); in setBrightness()
351 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setMatchContentFrameRateUserPreference() local
355 dm.setRefreshRateSwitchingType(refreshRateSwitchingType); in setMatchContentFrameRateUserPreference()
361 final DisplayManager dm = context.getSystemService(DisplayManager.class); in getMatchContentFrameRateUserPreference() local
363 + dm.getMatchContentFrameRateUserPreference()); in getMatchContentFrameRateUserPreference()
385 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setUserDisabledHdrTypes() local
386 dm.setUserDisabledHdrTypes(userDisabledHdrTypes); in setUserDisabledHdrTypes()
392 final DisplayManager dm = context.getSystemService(DisplayManager.class); in getUserDisabledHdrTypes() local
[all …]
/aosp14/system/core/fs_mgr/
H A Dfs_mgr_dm_linear.cpp49 using DeviceMapper = android::dm::DeviceMapper;
50 using DmTable = android::dm::DmTable;
51 using DmTarget = android::dm::DmTarget;
52 using DmTargetZero = android::dm::DmTargetZero;
53 using DmTargetLinear = android::dm::DmTargetLinear;
243 DeviceMapper& dm = DeviceMapper::Instance(); in CreateLogicalPartition() local
244 if (!dm.CreateDevice(params.device_name, table, path, params.timeout_ms)) { in CreateLogicalPartition()
263 DeviceMapper& dm = DeviceMapper::Instance(); in UnmapDevice() local
264 if (!dm.DeleteDevice(name)) { in UnmapDevice()
H A Dfs_mgr.cpp106 using android::dm::DeviceMapper;
107 using android::dm::DmDeviceState;
108 using android::dm::DmTargetLinear;
109 using android::dm::LoopControl;
675 DeviceMapper& dm = DeviceMapper::Instance(); in SetReadAheadSize() local
1171 if (!dm.DeleteDevice("bow")) { in Revert()
1206 android::dm::DmTable table; in UpdateCheckpointPartition()
1321 android::dm::DmTable table; in WrapUserdata()
1727 if (!dm.IsDmBlockDevice(current)) { in UnwindDmDeviceStack()
1830 if (!dm.DeleteDevice(*name, 3s)) { in fs_mgr_remount_userdata_into_checkpointing()
[all …]
H A Dblockdev.cpp36 using android::dm::DeviceMapper;
99 auto& dm = DeviceMapper::Instance(); in BlockDeviceQueueDepth() local
101 std::optional<std::string> child = dm.GetParentBlockDeviceByPath(blockdev); in BlockDeviceQueueDepth()
108 std::optional<std::string> maybe_blockdev = android::dm::ExtractBlockDeviceName(blockdev); in BlockDeviceQueueDepth()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWatermark.java57 Watermark(DisplayContent dc, DisplayMetrics dm, String[] tokens, SurfaceControl.Transaction t) { in Watermark() argument
85 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark()
96 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); in Watermark()
98 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); in Watermark()
100 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); in Watermark()
102 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); in Watermark()
104 TypedValue.COMPLEX_UNIT_PX, 7, dm); in Watermark()
106 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
108 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
/aosp14/frameworks/base/tests/ApkVerityTest/testdata/
H A DREADME.md3 The test tries to install subsets of base.{apk,dm}, split.{apk,dm} and their
8 How to generate dex metadata (.dm)
13 zip foo.dm primary.prof
H A DAndroid.bp43 srcs: ["ApkVerityTestApp.dm"],
48 srcs: ["ApkVerityTestAppSplit.dm"],
72 out: ["ApkVerityTestApp.dm.fsv_sig"],
86 out: ["ApkVerityTestAppSplit.dm.fsv_sig"],
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/
H A DAndroid.bp61 "dm-snapshot-merge/snapuserd.cpp",
62 "dm-snapshot-merge/snapuserd_worker.cpp",
63 "dm-snapshot-merge/snapuserd_readahead.cpp",
94 "dm-snapshot-merge/snapuserd_server.cpp",
128 // point, /system is mounted using the "dm-user" device-mapper kernel
129 // module. dm-user routes all I/O to userspace to be handled by
176 "dm-snapshot-merge/cow_snapuserd_test.cpp",
177 "dm-snapshot-merge/snapuserd.cpp",
178 "dm-snapshot-merge/snapuserd_worker.cpp",
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DFocusEventDebugView.java80 final var dm = mContext.getResources().getDisplayMetrics(); in FocusEventDebugView() local
81 mOuterPadding = (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, OUTER_PADDING_DP, dm); in FocusEventDebugView()
247 final var dm = c.getResources().getDisplayMetrics(); in PressedKeyView() local
249 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_SIDE_PADDING_DP, dm); in PressedKeyView()
252 dm); in PressedKeyView()
254 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_MIN_WIDTH_DP, dm); in PressedKeyView()
256 (int) TypedValue.applyDimension(COMPLEX_UNIT_SP, KEY_VIEW_TEXT_SIZE_SP, dm); in PressedKeyView()
289 final var dm = c.getResources().getDisplayMetrics(); in PressedKeyContainer() local
291 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_SEPARATION_MARGIN_DP, dm); in PressedKeyContainer()
/aosp14/system/core/init/
H A Dmount_handler.cpp56 auto& dm = dm::DeviceMapper::Instance(); in ParseMount() local
58 if (dm.GetDmDevicePathByName("system", &path) || dm.GetDmDevicePathByName("vroot", &path)) { in ParseMount()
80 auto& dm = dm::DeviceMapper::Instance(); in GetDiskPart() local
81 std::optional<std::string> parent = dm.GetParentBlockDeviceByPath("/dev/block/" + blockdev); in GetDiskPart()
/aosp14/system/core/fs_mgr/libfiemap/
H A Dimage_manager.cpp42 using android::dm::DeviceMapper;
43 using android::dm::DmDeviceState;
44 using android::dm::DmTable;
45 using android::dm::DmTargetLinear;
46 using android::dm::LoopControl;
421 auto& dm = DeviceMapper::Instance(); in MapWithLoopDeviceList() local
437 dm.DeleteDevice(name); in MapWithLoopDeviceList()
577 auto& dm = DeviceMapper::Instance(); in MapImageWithDeviceMapper() local
578 if (!dm.GetDeviceString(name, dev)) { in MapImageWithDeviceMapper()
593 auto& dm = DeviceMapper::Instance(); in UnmapImageDevice() local
[all …]
H A DREADME.md42 `dm-default-key` device. This means the underlying device is not marked in use,
43 and we can create new dm-linear devices on top of it.
46 device-mapper device with a `dm-linear` table entry for each extent in the
61 `dm-linear` table entry spanning the length of the device.
67 block device. It could be catastrophic to write to a dm-linear device if the
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dutility.h60 AutoUnmapDevice(android::dm::IDeviceMapper* dm, const std::string& name) in AutoUnmapDevice()
61 : AutoDevice(name), dm_(dm) {} in AutoUnmapDevice()
66 android::dm::IDeviceMapper* dm_ = nullptr;
/aosp14/frameworks/base/core/java/android/app/
H A DResourcesManager.java344 displayInfo.getAppMetrics(dm, da); in getDisplayMetrics()
346 dm.setToDefaults(); in getDisplayMetrics()
348 return dm; in getDisplayMetrics()
362 displayInfo.getAppMetrics(dm, in getDisplayMetrics()
365 dm.setToDefaults(); in getDisplayMetrics()
367 return dm; in getDisplayMetrics()
373 config.densityDpi = dm.densityDpi; in applyDisplayMetricsToConfiguration()
374 config.screenWidthDp = (int) (dm.widthPixels / dm.density + 0.5f); in applyDisplayMetricsToConfiguration()
375 config.screenHeightDp = (int) (dm.heightPixels / dm.density + 0.5f); in applyDisplayMetricsToConfiguration()
377 if (dm.widthPixels > dm.heightPixels) { in applyDisplayMetricsToConfiguration()
[all …]
/aosp14/system/core/fs_mgr/libfs_avb/
H A Dfs_avb_util.cpp53 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in LoadAndVerifyVbmeta() local
54 if (!dm.GetDmDevicePathByName(fstab_entry.blk_device, &device_path)) { in LoadAndVerifyVbmeta()
H A Davb_ops.cpp160 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in GetLogicalPath() local
161 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
H A Davb_util.cpp42 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable()
65 android::dm::DmTargetVerity target( in ConstructVerityTable()
88 return table->AddTarget(std::make_unique<android::dm::DmTargetVerity>(target)); in ConstructVerityTable()
93 android::dm::DmTable table; in HashtreeDmVeritySetup()
105 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in HashtreeDmVeritySetup() local
106 if (!dm.CreateDevice(device_name, table, &dev_path, timeout)) { in HashtreeDmVeritySetup()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java50 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk() local
51 dm.setToDefaults(); in createResourcesWithApk()
52 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DBrightnessLimit.java44 DisplayManager dm = getSystemService(DisplayManager.class); in onClick() local
46 dm.setTemporaryBrightness(displayId, 0.0f); in onClick()
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A DCompactExtractEditLayout.java115 DisplayMetrics dm = res.getDisplayMetrics(); in onAttachedToWindow() local
116 int widthPixels = dm.widthPixels; in onAttachedToWindow()
117 int heightPixels = dm.heightPixels; in onAttachedToWindow()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodManagerTest.java48 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testPrivateApiGetInstance() local
50 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testPrivateApiGetInstance()

12345