Home
last modified time | relevance | path

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

123456

/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()
64 profile->extra_latency_ms = 0; in profile_reset()
67 profile->formats[0] = PCM_FORMAT_INVALID; in profile_reset()
68 profile->sample_rates[0] = 0; in profile_reset()
69 profile->channel_counts[0] = 0; in profile_reset()
71 profile->min_period_size = profile->max_period_size = 0; in profile_reset()
72 profile->min_channel_count = profile->max_channel_count = DEFAULT_CHANNEL_COUNT; in profile_reset()
74 profile->is_valid = false; in profile_reset()
77 void profile_init(alsa_device_profile* profile, int direction) in profile_init() argument
[all …]
Dalsa_device_proxy.c51 int proxy_prepare(alsa_device_proxy * proxy, const alsa_device_profile* profile, in proxy_prepare() argument
56 ALOGD("proxy_prepare(c:%d, d:%d)", profile->card, profile->device); in proxy_prepare()
58 proxy->profile = profile; in proxy_prepare()
64 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
69 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare()
71 config->format, profile->default_config.format); in proxy_prepare()
78 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
83 proxy->alsa_config.rate = profile->default_config.rate; in proxy_prepare()
85 config->rate, profile->default_config.rate); in proxy_prepare()
92 if (config->channels != 0 && profile_is_channel_count_valid(profile, config->channels)) { in proxy_prepare()
[all …]
/system/media/alsa_utils/include/
Dalsa_device_profile.h65 void profile_init(alsa_device_profile* profile, int direction);
66 bool profile_is_initialized(const alsa_device_profile* profile);
67 bool profile_is_valid(const alsa_device_profile* profile);
68 bool profile_is_cached_for(const alsa_device_profile* profile, int card, int device);
69 void profile_decache(alsa_device_profile* profile);
71 bool profile_fill_builtin_device_info(alsa_device_profile* profile, struct pcm_config* config,
73 bool profile_read_device_info(alsa_device_profile* profile);
76 char * profile_get_sample_rate_strs(const alsa_device_profile* profile);
77 char * profile_get_format_strs(const alsa_device_profile* profile);
78 char * profile_get_channel_count_strs(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,
40 alsa_device_proxy * proxy, const alsa_device_profile * profile);
/system/libsysprop/srcs/api/
DPlatformProperties-current.txt76 prop_name: "bluetooth.profile.a2dp.sink.enabled"
80 prop_name: "bluetooth.profile.a2dp.source.enabled"
84 prop_name: "bluetooth.profile.asha.central.enabled"
88 prop_name: "bluetooth.profile.avrcp.controller.enabled"
92 prop_name: "bluetooth.profile.avrcp.target.enabled"
96 prop_name: "bluetooth.profile.bap.broadcast.assist.enabled"
100 prop_name: "bluetooth.profile.bap.broadcast.source.enabled"
104 prop_name: "bluetooth.profile.bap.unicast.client.enabled"
108 prop_name: "bluetooth.profile.bas.client.enabled"
112 prop_name: "bluetooth.profile.bass.client.enabled"
[all …]
/system/extras/toolchain-extras/
DAndroid.bp8 "profile-extras.cpp",
9 "profile-globals.c",
49 "profile-clang-extras.cpp",
50 "profile-clang-openat.cpp",
116 name: "profile-extras-continuous-mode",
124 "profile-extras-continuous-mode",
132 "profile-extras-continuous-mode",
142 "profile-extras-continuous-mode",
159 "profile-extras-test.cpp",
171 "profile-clang-extras-test.cpp",
/system/core/libprocessgroup/
Dtask_profiles.cpp650 for (const auto& profile : profiles_) { in ExecuteForProcess() local
651 profile->ExecuteForProcess(uid, pid); in ExecuteForProcess()
657 for (const auto& profile : profiles_) { in ExecuteForTask() local
658 profile->ExecuteForTask(tid); in ExecuteForTask()
664 for (const auto& profile : profiles_) { in EnableResourceCaching() local
665 profile->EnableResourceCaching(cache_type); in EnableResourceCaching()
670 for (const auto& profile : profiles_) { in DropResourceCaching() local
671 profile->DropResourceCaching(cache_type); in DropResourceCaching()
676 for (const auto& profile : profiles_) { in IsValidForProcess() local
677 if (!profile->IsValidForProcess(uid, pid)) { in IsValidForProcess()
[all …]
/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.py53 profile = profile_pb2.Profile()
55 profile.ParseFromString(f.read())
56 return profile
59 def store_pprof_profile(filename, profile): argument
61 f.write(profile.SerializeToString())
66 def __init__(self, profile): argument
67 self.profile = profile
68 self.string_table = profile.string_table
71 p = self.profile
126 location = self.profile.location[location_id - 1]
[all …]
/system/extras/simpleperf/scripts/test/
Dpprof_proto_generator_test.py116 profile = self.generate_profile(None, ['perf_with_interpreter_frames.data'])
118 for location in profile.location:
119 mapping = profile.mapping[location.mapping_id - 1]
171 profile = self.generate_profile(None, [testdata_file])
183 for mapping in profile.mapping:
184 binary_path = profile.string_table[mapping.filename]
193 for location in profile.location:
201 function = profile.function[line.function_id - 1]
202 self.assertIn(check_item.source_file, profile.string_table[function.filename])
204 self.assertIn(check_item.func_name, profile.string_table[function.name])
[all …]
/system/security/identity/
DWritableCredential.cpp122 for (const AccessControlProfileParcel& profile : accessControlProfiles) { in calcExpectedProofOfProvisioningSize() local
124 map.add("id", profile.id); in calcExpectedProofOfProvisioningSize()
125 if (profile.readerCertificate.size() > 0) { in calcExpectedProofOfProvisioningSize()
126 map.add("readerCertificate", cppbor::Bstr(profile.readerCertificate)); in calcExpectedProofOfProvisioningSize()
128 if (profile.userAuthenticationRequired) { in calcExpectedProofOfProvisioningSize()
129 map.add("userAuthenticationRequired", profile.userAuthenticationRequired); in calcExpectedProofOfProvisioningSize()
130 map.add("timeoutMillis", profile.userAuthenticationTimeoutMillis); in calcExpectedProofOfProvisioningSize()
216 SecureAccessControlProfile profile; in personalize() local
219 acpParcel.userAuthenticationTimeoutMillis, secureUserId, &profile); in personalize()
223 data.addSecureAccessControlProfile(profile); in personalize()
DCredential.cpp294 for (const SecureAccessControlProfile& profile : allProfiles) { in getEntries() local
295 if (profile.id < 0 || profile.id >= 32) { in getEntries()
350 for (auto& profile : selectedProfiles) { in getEntries() local
351 if (profile.userAuthenticationRequired) { in getEntries()
353 if (profile.timeoutMillis > 0) { in getEntries()
354 if (profile.timeoutMillis > authTokenMaxAgeMillis) { in getEntries()
355 authTokenMaxAgeMillis = profile.timeoutMillis; in getEntries()
/system/libsysprop/srcs/android/sysprop/
DBluetoothProperties.sysprop170 # The default audio profile for dual mode audio devices for output only audio. The value should be
182 # The default audio profile for dual mode audio devices for duplex (output + input) audio. The
262 prop_name: "bluetooth.profile.a2dp.sink.enabled"
272 prop_name: "bluetooth.profile.a2dp.source.enabled"
282 prop_name: "bluetooth.profile.asha.central.enabled"
292 prop_name: "bluetooth.profile.avrcp.controller.enabled"
302 prop_name: "bluetooth.profile.avrcp.target.enabled"
312 prop_name: "bluetooth.profile.bap.broadcast.assist.enabled"
322 prop_name: "bluetooth.profile.bap.broadcast.source.enabled"
332 prop_name: "bluetooth.profile.bap.unicast.client.enabled"
[all …]
/system/extras/profcollectd/
DREADME.md3 Profcollect is a system daemon that facilitates sampling profile collection and reporting for native
30 a percentage of these events result in a profile collection to avoid using too much resource, these
99 list. This is a costly process, thus it is done separately from the profile collection. Profcollect
112 generate a good quality PGO profile that represents typical system usage. Run the following command
113 to create a profile report:
117 Creating profile report
149 --profile=${INPUT_FILE_NAME} \
153 Finally, merge all the PGO profiles into one profile:
164 More profile data usually generates better quality profiles. You may combine data from multiple
165 devices running the same build to improve profile quality, and/or reduce the performance impact for
/system/extras/simpleperf/doc/
Dandroid_platform_profiling.md9 1. After running `adb root`, simpleperf can be used to profile any process or system wide.
44 Sometimes we want to profile a process/system-wide when a special situation happens. In this case,
79 ## Get boot-time profile
81 On userdebug/eng devices, we can get boot-time profile via simpleperf.
83 Step 1. In adb root, set options used to record boot-time profile. Simpleperf stores the options in
91 a background process to run simpleperf to record boot-time profile. init starts simpleperf at
98 Step 3. After boot, the boot-time profile is stored in /data/simpleperf_boot_data. Then we can pull
99 the profile to host to report.
106 Following is a boot-time profile example. From timestamp, the first sample is generated at about
Dview_the_profile.md1 # View the profile
7 After using `simpleperf record` or `app_profiler.py`, we get a profile data file. The file contains
9 or cpu-clock) used in this sample, etc. We have many choices for viewing the profile. We can show
13 Below shows some recommended UIs to view the profile. Google developers can find more examples in
14 [go/gmm-profiling](go/gmm-profiling?polyglot=linux-workstation#viewing-the-profile).
20 Google servers, with a powerful flamegraph UI, with strong drilldown, search, pivot, profile diff,
25 We can use `pprof_proto_generator.py` to convert profiles into pprof.profile protobufs for use in
42 Upload pprof.profile to http://pprof/ UI:
45 # Upload all threads in profile, grouped by threadpool.
47 pprof --flame --tagroot threadpool pprof.profile
[all …]
Dscripts_reference.md5 ## Record a profile
45 Sometimes we want to profile the launch-time of an application. To support this, we added `--app` in
46 the record command. The `--app` option sets the package name of the Android application to profile.
48 an interval of 1ms. So to profile from launch of an application, we can first start the record
115 ## Viewing the profile
117 Scripts in this section are for viewing the profile or converting profile data into formats used by
212 $ pprof -pdf pprof.profile
218 $ pprof -http=:8080 pprof.profile
224 Format](https://github.com/firefox-devtools/profiler/blob/main/docs-developer/gecko-profile-format.…
239 # Record a profile of your application
[all …]
Dandroid_application_profiling.md3 This section shows how to profile an Android application.
18 1. If you want to profile a debug build of an application:
24 2. If you want to profile a release build of an application:
28 with android::debuggable set to true can be profiled. So simpleperf can only profile a release
30 If you are on a rooted device, you can profile any app.
34 adb will invoke simpleperf preinstalled in system image to profile the app.
45 to profile a release build:
84 3. If you want to profile C/C++ code:
92 4. If you want to profile Java code:
124 We can use [app-profiler.py](scripts_reference.md#app_profilerpy) to profile Android applications.
[all …]
DREADME.md4 [Inspect CPU activity with CPU Profiler](https://developer.android.com/studio/profile/cpu-profiler).
7 Simpleperf is a native CPU profiling tool for Android. It can be used to profile
9 profile both Java and C++ code on Android. The simpleperf executable can run on Android >=L,
39 run-as to profile in application's context.
103 ## View the profile
113 On Android M - O, we can only profile C++ code and fully compiled Java code.
114 On Android >= P, the ART interpreter supports DWARF based unwinding. So we can profile Java code.
115 On Android >= Q, we can used simpleperf shipped on device to profile released Android apps, with
144 So if you need to profile code on ARM or profile Java code, DWARF based call graph is better. If you
145 need to profile C++ code on ARM64, stack frame based call graphs may be better. After all, you can
/system/extras/simpleperf/demo/
DREADME.md1 # Examples of using simpleperf to profile Android applications
5 - [Examples of using simpleperf to profile Android applications](#examples-of-using-simpleperf-to-p…
8 - [Profile a Java application](#profile-a-java-application)
9 - [Profile a Java/C++ application](#profile-a-javac-application)
10 - [Profile a Kotlin application](#profile-a-kotlin-application)
11 - [Profile via app_api](#profile-via-app_api)
15 Simpleperf is a native profiler used on Android platform. It can be used to profile Android
18 This directory is to show examples of using simpleperf to profile Android applications. The
/system/extras/profcollectd/libprofcollectd/
Dreport.rs42 profile: &Path, in pack_report()
64 fs::read_dir(profile)? in pack_report()
/system/sepolicy/private/
Dprofman.te3 # Allow profman to read APKs and profile files next to them by FDs passed from
/system/sepolicy/prebuilts/api/34.0/private/
Dprofman.te3 # Allow profman to read APKs and profile files next to them by FDs passed from
Dbluetooth.te36 # allow Bluetooth to access uhid device for HID profile
45 # For Bluetooth to check what profile are available
/system/sepolicy/prebuilts/api/33.0/private/
Dbluetooth.te36 # allow Bluetooth to access uhid device for HID profile
45 # For Bluetooth to check what profile are available

123456