Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 128) sorted by relevance

123456

/system/extras/procmem/
Dprocmem.c28 pm_memusage_t usage; member
37 static void usage(const char *cmd);
79 usage(argv[0]); in main()
93 usage(argv[0]); in main()
170 error = pm_map_workingset(mi->map, &mi->usage); in main()
172 error = pm_map_usage(mi->map, &mi->usage); in main()
179 pm_memusage_add(&total_usage, &mi->usage); in main()
241 if ((!mi) || (hide_zeros && !mi->usage.rss)) in main()
246 (long)mi->usage.rss / 1024, in main()
247 (long)mi->usage.pss / 1024, in main()
[all …]
/system/media/brillo/audio/audioservice/
Dbrillo_audio_manager.cpp88 BAudioUsage usage) { in BAudioManager_setOutputDevice() argument
94 return client->SetDevice(BrilloAudioClientHelpers::GetForceUse(usage), in BAudioManager_setOutputDevice()
99 BAudioUsage usage, in BAudioManager_getMaxVolumeSteps() argument
106 return client->GetMaxVolumeSteps(usage, max_steps); in BAudioManager_getMaxVolumeSteps()
110 BAudioUsage usage, in BAudioManager_setMaxVolumeSteps() argument
117 return client->SetMaxVolumeSteps(usage, max_steps); in BAudioManager_setMaxVolumeSteps()
121 BAudioUsage usage, in BAudioManager_setVolumeIndex() argument
132 usage, device->internal_->GetAudioDevicesT(), index); in BAudioManager_setVolumeIndex()
136 BAudioUsage usage, in BAudioManager_getVolumeIndex() argument
147 usage, device->internal_->GetAudioDevicesT(), index); in BAudioManager_getVolumeIndex()
[all …]
Dbrillo_audio_client.cpp92 int BrilloAudioClient::SetDevice(audio_policy_force_use_t usage, in SetDevice() argument
98 auto status = brillo_audio_service_->SetDevice(usage, config); in SetDevice()
102 int BrilloAudioClient::GetMaxVolumeSteps(BAudioUsage usage, int* max_steps) { in GetMaxVolumeSteps() argument
108 BrilloAudioClientHelpers::GetStreamType(usage), max_steps); in GetMaxVolumeSteps()
112 int BrilloAudioClient::SetMaxVolumeSteps(BAudioUsage usage, int max_steps) { in SetMaxVolumeSteps() argument
118 BrilloAudioClientHelpers::GetStreamType(usage), max_steps); in SetMaxVolumeSteps()
122 int BrilloAudioClient::SetVolumeIndex(BAudioUsage usage, in SetVolumeIndex() argument
130 BrilloAudioClientHelpers::GetStreamType(usage), device, index); in SetVolumeIndex()
134 int BrilloAudioClient::GetVolumeIndex(BAudioUsage usage, in GetVolumeIndex() argument
142 BrilloAudioClientHelpers::GetStreamType(usage), device, index); in GetVolumeIndex()
[all …]
Dbrillo_audio_client.h79 int SetDevice(audio_policy_force_use_t usage,
88 int GetMaxVolumeSteps(BAudioUsage usage, int* max_steps);
96 int SetMaxVolumeSteps(BAudioUsage usage, int max_steps);
105 int SetVolumeIndex(BAudioUsage usage, audio_devices_t device, int index);
114 int GetVolumeIndex(BAudioUsage usage, audio_devices_t device, int* index);
121 int GetVolumeControlStream(BAudioUsage* usage);
128 int SetVolumeControlStream(BAudioUsage usage);
Dbrillo_audio_client_helpers.cpp21 BAudioUsage usage) { in GetForceUse() argument
22 if (usage == kUsageMedia) in GetForceUse()
28 audio_stream_type_t BrilloAudioClientHelpers::GetStreamType(BAudioUsage usage) { in GetStreamType() argument
29 switch (usage) { in GetStreamType()
/system/sepolicy/tests/
Dsepolicy_tests.py42 usage = "sepolicy_tests.py -f nonplat_file_contexts -f " variable
43 usage +="plat_file_contexts -p policy [--test test] [--help]"
44 parser = OptionParser(option_class=MultipleOption, usage=usage)
55 sys.exit("Must specify path to host libraries\n" + parser.usage)
58 + parser.usage)
61 sys.exit("Must specify monolithic policy file\n" + parser.usage)
64 + parser.usage)
67 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
71 parser.usage)
Dtreble_sepolicy_tests.py279 usage = "treble_sepolicy_tests.py -f nonplat_file_contexts -f " variable
280 usage +="plat_file_contexts -p curr_policy -b base_policy -o old_policy "
281 usage +="-m mapping file [--test test] [--help]"
282 parser = OptionParser(option_class=MultipleOption, usage=usage)
297 sys.exit("Must specify path to host libraries\n" + parser.usage)
300 + parser.usage)
302 sys.exit("Must specify the current platform-only policy file\n" + parser.usage)
304 sys.exit("Must specify a compatibility mapping file\n" + parser.usage)
306 sys.exit("Must specify the previous monolithic policy file\n" + parser.usage)
308 sys.exit("Must specify current monolithic policy file\n" + parser.usage)
[all …]
/system/media/brillo/audio/audioservice/include/
Dbrillo_audio_manager.h90 BAudioUsage usage);
102 BAudioUsage usage,
115 BAudioUsage usage,
130 BAudioUsage usage,
145 BAudioUsage usage,
159 const BAudioManager* brillo_audio_manager, BAudioUsage* usage);
178 const BAudioManager* brillo_audio_manager, BAudioUsage usage);
213 void (*OnVolumeChanged)(BAudioUsage usage,
/system/core/fs_mgr/
Dfs_mgr_main.cpp28 static void usage(void) in usage() function
45 usage(); in parse_options()
50 usage(); in parse_options()
56 usage(); in parse_options()
64 usage(); in parse_options()
71 usage(); in parse_options()
76 usage(); in parse_options()
/system/extras/libpagemap/
Dpm_map.c35 pm_memusage_t usage; in pm_map_usage_flags() local
44 pm_memusage_zero(&usage); in pm_map_usage_flags()
45 pm_memusage_pswap_init_handle(&usage, usage_out->p_swap); in pm_map_usage_flags()
48 usage.vss += map->proc->ker->pagesize; in pm_map_usage_flags()
69 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); in pm_map_usage_flags()
70 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage_flags()
71 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage_flags()
73 usage.swap += map->proc->ker->pagesize; in pm_map_usage_flags()
74 pm_memusage_pswap_add_offset(&usage, PM_PAGEMAP_SWAP_OFFSET(pagemap[i])); in pm_map_usage_flags()
78 memcpy(usage_out, &usage, sizeof(usage)); in pm_map_usage_flags()
/system/sepolicy/tools/sepolicy-analyze/
Dsepolicy-analyze.c19 void (*usage) (void); member
30 void usage(char *arg0) in usage() function
37 analyze_components[i].usage(); in usage()
51 usage(argv[0]); in main()
59 usage(argv[0]); } in main()
64 usage(argv[0]); in main()
/system/extras/procrank/
Dprocrank.cpp36 pm_memusage_t usage; member
41 static void usage(char *myname);
233 if (!strcmp(argv[arg], "-h")) { usage(argv[0]); exit(0); } in main()
235 usage(argv[0]); in main()
259 pm_memusage_zero(&procs[i].usage); in main()
260 pm_memusage_pswap_init_handle(&procs[i].usage, p_swap); in main()
269 error = pm_process_usage_flags(proc, &procs[i].usage, flags_mask, in main()
273 error = pm_process_workingset(proc, &procs[i].usage, 0); in main()
284 if (ws != WS_RESET && procs[i].usage.swap) { in main()
298 return proc.usage.vss == 0; in main()
[all …]
/system/core/libgrallocusage/
DGrallocUsageConversion.cpp22 void android_convertGralloc0To1Usage(int32_t usage, uint64_t* producerUsage, in android_convertGralloc0To1Usage() argument
39 *producerUsage = static_cast<uint64_t>(usage) & PRODUCER_MASK; in android_convertGralloc0To1Usage()
40 *consumerUsage = static_cast<uint64_t>(usage) & CONSUMER_MASK; in android_convertGralloc0To1Usage()
41 … if ((static_cast<uint32_t>(usage) & GRALLOC_USAGE_SW_READ_OFTEN) == GRALLOC_USAGE_SW_READ_OFTEN) { in android_convertGralloc0To1Usage()
45 if ((static_cast<uint32_t>(usage) & GRALLOC_USAGE_SW_WRITE_OFTEN) == in android_convertGralloc0To1Usage()
/system/update_engine/
Dtest_subprocess.cc31 void usage(const char* program, const char* error) { in usage() function
40 usage(argv[0], "No command passed"); in main()
46 usage(argv[0], "No fd passed to fstat"); in main()
58 usage(argv[0], "Unknown command"); in main()
/system/extras/tools/
Dgraph_lockdep_chains5 usage() { function
98 usage >&2
112 usage >&2
122 usage >&2
131 usage >&2
141 usage >&2
149 usage
/system/core/debuggerd/
Ddebuggerd.cpp35 static void usage(int exit_code) { in usage() function
59 if (argc <= 1) usage(0); in main()
60 if (argc > 3) usage(1); in main()
61 if (argc == 3 && strcmp(argv[1], "-b") != 0 && strcmp(argv[1], "--backtrace") != 0) usage(1); in main()
66 usage(1); in main()
/system/bt/test/
Drun_unit_tests.sh28 usage() { function
58 usage
65 usage
75 usage
/system/extras/f2fs_utils/
Dmake_f2fs_main.c36 static void usage(char *path) in usage() function
55 usage(argv[0]); in main()
63 usage(argv[0]); in main()
71 usage(argv[0]); in main()
/system/extras/librank/
Dlibrank.c38 pm_memusage_t usage; member
50 static void usage(char *myname);
152 pm_memusage_zero(&mapping->usage); in get_mapping()
278 usage(argv[0]); in main()
307 usage(argv[0]); in main()
375 pm_memusage_add(&mi->usage, &map_usage); in main()
407 mi->usage.vss / 1024, in main()
408 mi->usage.rss / 1024, in main()
409 mi->usage.pss / 1024, in main()
410 mi->usage.uss / 1024); in main()
[all …]
/system/extras/verity/fec/
Dmain.cpp93 static int usage() in usage() function
304 return usage(); in main()
310 return usage(); in main()
315 return usage(); in main()
330 return usage(); in main()
337 return usage(); in main()
344 return usage(); in main()
359 return usage(); in main()
378 return usage(); in main()
385 return usage(); in main()
[all …]
/system/extras/ext4_utils/
Dmake_ext4fs_main.c53 static void usage(char *path) in usage() function
128 usage(argv[0]); in main()
194 usage(argv[0]); in main()
223 usage(argv[0]); in main()
229 usage(argv[0]); in main()
235 usage(argv[0]); in main()
249 usage(argv[0]); in main()
Dext4fixup_main.c24 static void usage(char *me) in usage() function
56 usage(me); in main()
64 usage(me); in main()
/system/sepolicy/tools/
Dversion_policy.c14 void __attribute__ ((noreturn)) static usage(char *prog) { in usage() function
127 usage(argv[0]); in main()
130 usage(argv[0]); in main()
135 usage(argv[0]); in main()
139 usage(argv[0]); in main()
151 usage(argv[0]); in main()
/system/core/logwrapper/
Dlogwrapper.c33 void usage() { in usage() function
72 usage(); in main()
79 usage(); in main()
/system/extras/tests/icachetest/
Dicache_main.cpp27 std::string usage( in printUsage() local
40 for (size_t pos = usage.find(from); pos != std::string::npos; pos = usage.find(from, pos)) { in printUsage()
41 usage.replace(pos, from.length(), exec_name); in printUsage()
43 printf("%s", usage.c_str()); in printUsage()

123456