/system/media/alsa_utils/ |
D | alsa_device_profile.c | 61 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 …]
|
D | alsa_device_proxy.c | 51 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/ |
D | alsa_device_profile.h | 65 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 …]
|
D | alsa_device_proxy.h | 25 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/ |
D | PlatformProperties-current.txt | 90 prop_name: "bluetooth.profile.a2dp.sink.enabled" 94 prop_name: "bluetooth.profile.a2dp.source.enabled" 98 prop_name: "bluetooth.profile.asha.central.enabled" 102 prop_name: "bluetooth.profile.avrcp.controller.enabled" 106 prop_name: "bluetooth.profile.avrcp.target.enabled" 110 prop_name: "bluetooth.profile.bap.broadcast.assist.enabled" 114 prop_name: "bluetooth.profile.bap.broadcast.source.enabled" 118 prop_name: "bluetooth.profile.bap.unicast.client.enabled" 122 prop_name: "bluetooth.profile.bas.client.enabled" 126 prop_name: "bluetooth.profile.bass.client.enabled" [all …]
|
/system/extras/toolchain-extras/ |
D | Android.bp | 9 "profile-extras.cpp", 10 "profile-globals.c", 44 "profile-clang-extras.cpp", 45 "profile-clang-openat.cpp", 111 name: "profile-extras-continuous-mode", 119 "profile-extras-continuous-mode", 127 "profile-extras-continuous-mode", 137 "profile-extras-continuous-mode", 154 "profile-extras-test.cpp", 166 "profile-clang-extras-test.cpp",
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 676 for (const auto& profile : profiles_) { in ExecuteForProcess() local 677 profile->ExecuteForProcess(uid, pid); in ExecuteForProcess() 683 for (const auto& profile : profiles_) { in ExecuteForTask() local 684 profile->ExecuteForTask(tid); in ExecuteForTask() 690 for (const auto& profile : profiles_) { in EnableResourceCaching() local 691 profile->EnableResourceCaching(cache_type); in EnableResourceCaching() 696 for (const auto& profile : profiles_) { in DropResourceCaching() local 697 profile->DropResourceCaching(cache_type); in DropResourceCaching() 702 for (const auto& profile : profiles_) { in IsValidForProcess() local 703 if (!profile->IsValidForProcess(uid, pid)) { in IsValidForProcess() [all …]
|
/system/core/libprocessgroup/profiles/ |
D | task_profiles_test.h | 52 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/ |
D | pprof_proto_generator.py | 53 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/ |
D | pprof_proto_generator_test.py | 120 profile = self.generate_profile(None, ['perf_with_interpreter_frames.data']) 122 for location in profile.location: 123 mapping = profile.mapping[location.mapping_id - 1] 175 profile = self.generate_profile(None, [testdata_file]) 187 for mapping in profile.mapping: 188 binary_path = profile.string_table[mapping.filename] 197 for location in profile.location: 205 function = profile.function[line.function_id - 1] 206 self.assertIn(check_item.source_file, profile.string_table[function.filename]) 208 self.assertIn(check_item.func_name, profile.string_table[function.name]) [all …]
|
/system/security/identity/ |
D | WritableCredential.cpp | 122 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()
|
D | Credential.cpp | 294 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/extras/profcollectd/ |
D | README.md | 3 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 96 list. This is a costly process, thus it is done separately from the profile collection. Profcollect 109 generate a good quality PGO profile that represents typical system usage. Run the following command 110 to create a profile report: 114 Creating profile report 146 --profile=${INPUT_FILE_NAME} \ 150 Finally, merge all the PGO profiles into one profile: 161 More profile data usually generates better quality profiles. You may combine data from multiple 162 devices running the same build to improve profile quality, and/or reduce the performance impact for
|
/system/extras/simpleperf/doc/ |
D | view_the_profile.md | 1 # 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 43 the profile before uploading: 46 gzip pprof.profile 49 After compressing, you can upload the `pprof.profile.gz` file to either http://pprof/ or [all …]
|
D | scripts_reference.md | 5 ## 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 215 $ pprof -pdf pprof.profile 221 $ pprof -http=:8080 pprof.profile 227 Format](https://github.com/firefox-devtools/profiler/blob/main/docs-developer/gecko-profile-format.… 242 # Record a profile of your application [all …]
|
D | android_platform_profiling.md | 9 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. 95 so it forks a background process to run simpleperf to record boot-time profile. 98 Step 4. After boot, the boot-time profile is stored in /tmp/boot_perf.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
|
D | android_application_profiling.md | 3 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 …]
|
D | collect_etm_data_for_autofdo.md | 10 then be used for PGO (profile-guided optimization) during compilation. 84 Then we can use [AutoFDO](https://github.com/google/autofdo) to create profile. Follow README.md 89 host $ create_llvm_prof -profile perf_inject_binary1.data -profiler text -binary path_of_binary1 -o… 92 host $ create_llvm_prof -profile perf_inject_kernel.data -profiler text -binary vmlinux -out a.prof… 144 (host) <AOSP>$ create_llvm_prof -profile perf_inject_etm_test_loop.data -profiler text -binary out/… 158 # profile: "etm_test_loop.afdo" 161 # Edit afdo_profiles.mk to add etm_test_loop profile mapping: 266 * [AutoFDO tool for converting profile data](https://github.com/google/autofdo)
|
D | README.md | 4 [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/libsysprop/srcs/android/sysprop/ |
D | BluetoothProperties.sysprop | 178 # The default audio profile for dual mode audio devices for output only audio. The value should be 190 # The default audio profile for dual mode audio devices for duplex (output + input) audio. The 270 prop_name: "bluetooth.profile.a2dp.sink.enabled" 280 prop_name: "bluetooth.profile.a2dp.source.enabled" 290 prop_name: "bluetooth.profile.asha.central.enabled" 300 prop_name: "bluetooth.profile.avrcp.controller.enabled" 310 prop_name: "bluetooth.profile.avrcp.target.enabled" 320 prop_name: "bluetooth.profile.bap.broadcast.assist.enabled" 330 prop_name: "bluetooth.profile.bap.broadcast.source.enabled" 340 prop_name: "bluetooth.profile.bap.unicast.client.enabled" [all …]
|
/system/extras/simpleperf/demo/ |
D | README.md | 1 # 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/sepolicy/private/ |
D | profman.te | 3 # Allow profman to read APKs and profile files next to them by FDs passed from 15 # profman needs to read the embedded profile that artd extracts from an APK, 21 # Dumping profile info opens the application APK file for pretty printing.
|
D | bluetooth.te | 36 # allow Bluetooth to access uhid device for HID profile 45 # For Bluetooth to check what profile are available
|
/system/extras/profcollectd/libprofcollectd/ |
D | report.rs | 39 profile: &Path, in pack_report() 61 fs::read_dir(profile)? in pack_report()
|
/system/extras/perf2cfg/ |
D | README.md | 7 - Methods are annotated with their contribution relative to the total profile. 9 relative to the method profile. 11 profile.
|