Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 5 of 5) sorted by relevance

/system/memory/libmeminfo/vts/
Dvts_meminfo_test.cpp35 SysMemInfo mi; in TEST() local
40 ASSERT_TRUE(mi.ReadMemInfo()); in TEST()
42 ASSERT_TRUE(mi.mem_kreclaimable_kb() >= mi.mem_slab_reclaimable_kb()); in TEST()
/system/libvintf/include/vintf/
DVersion.h31 constexpr Version(size_t mj, size_t mi) : majorVer(mj), minorVer(mi) {} in Version()
72 constexpr KernelVersion(size_t v, size_t mj, size_t mi) : in KernelVersion()
73 version(v), majorRev(mj), minorRev(mi) {} in KernelVersion()
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp587 SysMemInfo mi; in TEST() local
588 ASSERT_TRUE(mi.ReadMemInfo(tf.path)); in TEST()
589 EXPECT_EQ(mi.mem_total_kb(), 3019740); in TEST()
590 EXPECT_EQ(mi.mem_free_kb(), 1809728); in TEST()
591 EXPECT_EQ(mi.mem_buffers_kb(), 54736); in TEST()
592 EXPECT_EQ(mi.mem_cached_kb(), 776052); in TEST()
593 EXPECT_EQ(mi.mem_shmem_kb(), 4020); in TEST()
594 EXPECT_EQ(mi.mem_slab_kb(), 86464); in TEST()
595 EXPECT_EQ(mi.mem_slab_reclaimable_kb(), 44432); in TEST()
596 EXPECT_EQ(mi.mem_slab_unreclaimable_kb(), 42032); in TEST()
[all …]
/system/memory/lmkd/
Dlmkd.cpp1715 static bool meminfo_parse_line(char *line, union meminfo *mi) { in meminfo_parse_line() argument
1736 mi->arr[field_idx] = val / page_k; in meminfo_parse_line()
1741 static int meminfo_parse(union meminfo *mi) { in meminfo_parse() argument
1750 memset(mi, 0, sizeof(union meminfo)); in meminfo_parse()
1758 if (!meminfo_parse_line(line, mi)) { in meminfo_parse()
1763 mi->field.nr_file_pages = mi->field.cached + mi->field.swap_cached + in meminfo_parse()
1764 mi->field.buffers; in meminfo_parse()
1858 int kill_reason, union meminfo *mi, in killinfo_log() argument
1870 android_log_write_int32(ctx, (int32_t)min(mi->arr[field_idx] * page_k, INT32_MAX)); in killinfo_log()
2045 const char *kill_desc, union meminfo *mi, struct wakeup_info *wi, in kill_one_process() argument
[all …]
/system/extras/libfec/
Dfec_open.cpp56 uint64_t mi = get_appr_size(file_size, roots); in find_offset() local
57 uint64_t lo = file_size - mi * 2; in find_offset()
58 uint64_t hi = file_size - mi / 2; in find_offset()
61 mi = ((hi + lo) / (2 * FEC_BLOCKSIZE)) * FEC_BLOCKSIZE; in find_offset()
62 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
65 lo = mi + FEC_BLOCKSIZE; in find_offset()
67 hi = mi; in find_offset()
69 *offset = mi; in find_offset()
71 mi); in find_offset()