Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 79) sorted by relevance

1234

/system/media/alsa_utils/
Dalsa_device_profile.c61 static void profile_reset(alsa_device_profile* profile) in profile_reset() argument
63 profile->card = profile->device = -1; in profile_reset()
66 profile->formats[0] = PCM_FORMAT_INVALID; in profile_reset()
67 profile->sample_rates[0] = 0; in profile_reset()
68 profile->channel_counts[0] = 0; in profile_reset()
70 profile->min_period_size = profile->max_period_size = 0; in profile_reset()
71 profile->min_channel_count = profile->max_channel_count = DEFAULT_CHANNEL_COUNT; in profile_reset()
73 profile->is_valid = false; in profile_reset()
76 void profile_init(alsa_device_profile* profile, int direction) in profile_init() argument
78 profile->direction = direction; in profile_init()
[all …]
Dalsa_device_proxy.c46 int proxy_prepare(alsa_device_proxy * proxy, const alsa_device_profile* profile, in proxy_prepare() argument
51 ALOGV("proxy_prepare(c:%d, d:%d)", profile->card, profile->device); in proxy_prepare()
53 proxy->profile = profile; in proxy_prepare()
59 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
62 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare()
64 config->format, profile->default_config.format); in proxy_prepare()
71 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
74 proxy->alsa_config.rate = profile->default_config.rate; in proxy_prepare()
76 config->rate, profile->default_config.rate); in proxy_prepare()
83 if (config->channels != 0 && profile_is_channel_count_valid(profile, config->channels)) { in proxy_prepare()
[all …]
/system/media/alsa_utils/include/
Dalsa_device_profile.h62 void profile_init(alsa_device_profile* profile, int direction);
63 bool profile_is_initialized(const alsa_device_profile* profile);
64 bool profile_is_valid(const alsa_device_profile* profile);
65 bool profile_is_cached_for(const alsa_device_profile* profile, int card, int device);
66 void profile_decache(alsa_device_profile* profile);
68 bool profile_read_device_info(alsa_device_profile* profile);
71 char * profile_get_sample_rate_strs(const alsa_device_profile* profile);
72 char * profile_get_format_strs(const alsa_device_profile* profile);
73 char * profile_get_channel_count_strs(const alsa_device_profile* profile);
76 unsigned profile_get_default_sample_rate(const alsa_device_profile* profile);
[all …]
Dalsa_device_proxy.h25 const alsa_device_profile* profile; member
37 int proxy_prepare(alsa_device_proxy * proxy, const alsa_device_profile * profile,
/system/extras/perfprofd/
Dperfprofd_record.proto37 // is device screen on at point when profile is collected?
40 // system load at point when profile is collected; corresponds
45 // At the point when the profile was collected, was a camera active?
48 // At the point when the profile was collected, was the device still booting?
51 // At the point when the profile was collected, was the device plugged into
55 // CPU utilization measured prior to profile collection (expressed as
Dperf_profile.proto83 // A compressed representation of a perf profile, which contains samples from
95 // Total number of samples in this profile.
109 // is device screen on at point when profile is collected?
112 // system load at point when profile is collected; corresponds
117 // At the point when the profile was collected, was a camera active?
120 // At the point when the profile was collected, was the device still booting?
123 // At the point when the profile was collected, was the device plugged into
127 // CPU utilization measured prior to profile collection (expressed as
Dperfprofd_config.proto16 // Average number of seconds between perf profile collections (if
17 // set to 100, then over time we want to see a perf profile
64 // to collect, but we just overwrite the most recent profile.
68 // stack traces as opposed to flat profile).
71 // Control collection of various additional profile tags
77 // The pid of the process to profile. May be negative, in which case
Dperfprofdcore.cc372 static void annotate_encoded_perf_profile(android::perfprofd::PerfprofdRecord* profile, in annotate_encoded_perf_profile() argument
380 profile->SetExtension(quipper::cpu_utilization, cpu_utilization); in annotate_encoded_perf_profile()
391 profile->SetExtension(quipper::sys_load_average, iload); in annotate_encoded_perf_profile()
401 profile->SetExtension(quipper::booting, is_booting); in annotate_encoded_perf_profile()
404 profile->SetExtension(quipper::camera_active, is_booting ? false : get_camera_active()); in annotate_encoded_perf_profile()
407 profile->SetExtension(quipper::on_charger, get_charging()); in annotate_encoded_perf_profile()
418 profile->SetExtension(quipper::display_on, ison); in annotate_encoded_perf_profile()
/system/core/libprocessgroup/profiles/
Dtask_profiles_test.h52 auto&& profile = task_profiles_->profiles(profile_idx); in TEST_P()
53 EXPECT_FALSE(profile.name().empty()) in TEST_P()
55 for (int action_idx = 0; action_idx < profile.actions_size(); ++action_idx) { in TEST_P()
56 auto&& action = profile.actions(action_idx); in TEST_P()
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py41 profile = profile_pb2.Profile()
43 profile.ParseFromString(bytes_to_str(f.read()))
44 return profile
47 def store_pprof_profile(filename, profile): argument
49 f.write(str_to_bytes(profile.SerializeToString()))
54 def __init__(self, profile): argument
55 self.profile = profile
56 self.string_table = profile.string_table
59 p = self.profile
113 location = self.profile.location[location_id - 1]
[all …]
/system/extras/perfprofd/dropbox/
Ddropbox.cc101 bool SendToDropbox(android::perfprofd::PerfprofdRecord* profile, in SendToDropbox() argument
104 size_t size = profile->ByteSize(); in SendToDropbox()
108 profile->SerializeWithCachedSizesToArray(data.get()); in SendToDropbox()
123 return WriteDropboxFile(profile, temp_directory, error_msg); in SendToDropbox()
Ddropbox_host.cc26 bool SendToDropbox(android::perfprofd::PerfprofdRecord* profile, in SendToDropbox() argument
Ddropbox.h29 bool SendToDropbox(android::perfprofd::PerfprofdRecord* profile,
/system/extras/toolchain-extras/
DAndroid.bp4 "profile-extras.cpp",
34 "profile-extras-test.cpp"
/system/bt/bta/ag/
Dbta_ag_sdp.cc223 if (bta_ag_cb.profile[i].sdp_handle == 0) { in bta_ag_create_records()
224 bta_ag_cb.profile[i].sdp_handle = SDP_CreateRecord(); in bta_ag_create_records()
225 bta_ag_cb.profile[i].scn = BTM_AllocateSCN(); in bta_ag_create_records()
227 bta_ag_cb.profile[i].scn, data.api_register.features, in bta_ag_create_records()
228 bta_ag_cb.profile[i].sdp_handle); in bta_ag_create_records()
270 if (bta_ag_cb.profile[i].sdp_handle != 0) { in bta_ag_del_records()
271 SDP_DeleteRecord(bta_ag_cb.profile[i].sdp_handle); in bta_ag_del_records()
272 bta_ag_cb.profile[i].sdp_handle = 0; in bta_ag_del_records()
274 BTM_FreeSCN(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
/system/bt/binder/android/bluetooth/
DIBluetoothManager.aidl43 boolean bindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy); in bindBluetoothProfileService() argument
44 void unbindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy); in unbindBluetoothProfileService() argument
/system/core/libprocessgroup/
Dprocessgroup.cpp119 TaskProfile* profile = tp.GetProfile(name); in SetProcessProfiles() local
120 if (profile != nullptr) { in SetProcessProfiles()
122 profile->EnableResourceCaching(); in SetProcessProfiles()
124 if (!profile->ExecuteForProcess(uid, pid)) { in SetProcessProfiles()
139 TaskProfile* profile = tp.GetProfile(name); in SetTaskProfiles() local
140 if (profile != nullptr) { in SetTaskProfiles()
142 profile->EnableResourceCaching(); in SetTaskProfiles()
144 if (!profile->ExecuteForTask(tid)) { in SetTaskProfiles()
Dtask_profiles.cpp357 auto profile = std::make_unique<TaskProfile>(); in Load() local
369 profile->Add(std::make_unique<SetCgroupAction>(controller, path)); in Load()
380 profile->Add(std::make_unique<SetTimerSlackAction>(slack)); in Load()
390 profile->Add( in Load()
405 profile->Add(std::make_unique<SetClampsAction>(boost, clamp)); in Load()
416 profiles_[profile_name] = std::move(profile); in Load()
/system/bt/proto/bluetooth/metrics/
Dbluetooth.proto55 // Statistics about Bluetooth profile connections
58 // Statistics about Headset profile connections
279 // Statistics about Bluetooth profile connections
284 // Number of times that this profile is connected since last metrics dump
294 // Statistics about headset profile connections
296 // Type of headset profile connected
299 // Number of times this type of headset profile is connected
/system/extras/perfprofd/tests/
Dperfprofd_test.cc505 I: profile collection skipped (missing config directory) in TEST_F()
542 I: profile collection skipped (missing config directory) in TEST_F()
579 I: profile collection skipped (missing 'perf' executable) in TEST_F()
1342 I: initiating profile collection in TEST_F()
1344 I: profile collection complete in TEST_F()
1430 I: initiating profile collection in TEST_F()
1432 I: profile collection complete in TEST_F()
1451 I: initiating profile collection in TEST_F()
1454 I: profile collection complete in TEST_F()
1474 W: profile collection failed in TEST_F()
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
Dperfprofd.te1 # perfprofd - perf profile collection daemon
46 # simpleperf needs open/read any file that turns up in a profile
/system/sepolicy/prebuilts/api/26.0/public/
Dperfprofd.te1 # perfprofd - perf profile collection daemon
46 # simpleperf needs open/read any file that turns up in a profile
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py128 def create_symbol_maps(profile): argument
131 for si in profile.Extensions[perfprofd_record_pb2.symbol_info]:
526 profile = perf_data_pb2.PerfDataProto()
528 profile.ParseFromString(data)
530 perf_data = profile
535 symbol_maps = create_symbol_maps(profile)
/system/bt/doc/
Dpower_management.md10 Power states are managed per-device, per-profile, so every incoming event
11 includes a profile ID, app ID, and a `BD_ADDR`.
25 are called by each profile definition in `bta/$PROFILE`.
50 looking for a match between the profile and app IDs. When it finds one, it uses
60 other profile will override this.
99 are found for the given profile ID and app ID, the function simply
122 both actions specified for the profile in the `bta_dm_pm_spec` tables. If
131 profile doesn't allow it, this function takes no action.
/system/extras/simpleperf/demo/
DREADME.md1 # Examples of using simpleperf to profile Android applications
12 Simpleperf is a native profiler used on Android platform. It can be used to profile Android
15 This directory is to show examples of using simpleperf to profile Android applications. The

1234