Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 97) 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/core/libprocessgroup/
Dtask_profiles.cpp261 for (const auto& profile : profiles_) { in ExecuteForProcess() local
262 if (!profile->ExecuteForProcess(uid, pid)) { in ExecuteForProcess()
270 for (const auto& profile : profiles_) { in ExecuteForTask() local
271 if (!profile->ExecuteForTask(tid)) { in ExecuteForTask()
279 for (const auto& profile : profiles_) { in EnableResourceCaching() local
280 profile->EnableResourceCaching(); in EnableResourceCaching()
285 for (const auto& profile : profiles_) { in DropResourceCaching() local
286 profile->DropResourceCaching(); in DropResourceCaching()
290 void TaskProfile::MoveTo(TaskProfile* profile) { in MoveTo() argument
291 profile->elements_ = std::move(elements_); in MoveTo()
[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.py41 profile = profile_pb2.Profile()
43 profile.ParseFromString(f.read())
44 return profile
47 def store_pprof_profile(filename, profile): argument
49 f.write(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/toolchain-extras/
DAndroid.bp4 "profile-extras.cpp",
5 "profile-globals.c",
42 "profile-clang-extras.cpp",
79 "profile-extras-test.cpp"
/system/security/identity/
DWritableCredential.cpp103 for (const AccessControlProfileParcel& profile : accessControlProfiles) { in calcExpectedProofOfProvisioningSize() local
105 map.add("id", profile.id); in calcExpectedProofOfProvisioningSize()
106 if (profile.readerCertificate.size() > 0) { in calcExpectedProofOfProvisioningSize()
107 map.add("readerCertificate", cppbor::Bstr(profile.readerCertificate)); in calcExpectedProofOfProvisioningSize()
109 if (profile.userAuthenticationRequired) { in calcExpectedProofOfProvisioningSize()
110 map.add("userAuthenticationRequired", profile.userAuthenticationRequired); in calcExpectedProofOfProvisioningSize()
111 map.add("timeoutMillis", profile.userAuthenticationTimeoutMillis); in calcExpectedProofOfProvisioningSize()
194 SecureAccessControlProfile profile; in personalize() local
197 acpParcel.userAuthenticationTimeoutMillis, secureUserId, &profile); in personalize()
201 data.addSecureAccessControlProfile(profile); in personalize()
DCredential.cpp192 for (const SecureAccessControlProfile& profile : allProfiles) { in getEntries() local
193 if (profile.id < 0 || profile.id >= 32) { in getEntries()
248 for (auto& profile : selectedProfiles) { in getEntries() local
249 if (profile.userAuthenticationRequired) { in getEntries()
251 if (profile.timeoutMillis > 0) { in getEntries()
252 if (profile.timeoutMillis > authTokenMaxAgeMillis) { in getEntries()
253 authTokenMaxAgeMillis = profile.timeoutMillis; in getEntries()
/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/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/core/adb/coverage/
Dreport.sh11 llvm-cov show --instr-profile="$OUTPUT_DIR"/adbd.profdata \
18 llvm-cov report --instr-profile="$OUTPUT_DIR"/adbd.profdata \
Dshow.sh19 llvm-cov show --instr-profile="$OUTPUT_DIR"/adbd.profdata \
/system/bt/binder/android/bluetooth/
DIBluetoothManager.aidl46 boolean bindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy); in bindBluetoothProfileService() argument
47 void unbindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy); in unbindBluetoothProfileService() argument
/system/extras/simpleperf/doc/
Dandroid_application_profiling.md3 This section shows how to profile an Android application.
23 - [Profile from launch](#profile-from-launch)
33 1. If you want to profile a debug build of an application:
39 2. If you want to profile a release build of an application:
43 with android::debuggable set to true can be profiled. So simpleperf can only profile a release
45 If you are on a rooted device, you can profile any app.
49 adb will invoke simpleperf preinstalled in system image to profile the app.
60 to profile a release build:
99 3. If you want to profile C/C++ code:
107 4. If you want to profile Java code:
[all …]
/system/bt/gd/proto/bluetooth/metrics/
Dbluetooth.proto53 // Statistics about Bluetooth profile connections
56 // Statistics about Headset profile connections
274 // Statistics about Bluetooth profile connections
279 // Number of times that this profile is connected since last metrics dump
289 // Statistics about headset profile connections
291 // Type of headset profile connected
294 // Number of times this type of headset profile is connected
/system/bt/gd/cert/
Dgen_html_coverage.sh5 …-only --show-line-counts-or-regions --show-instantiation-summary --instr-profile=/tmp/logs/HostOnl…
/system/sepolicy/private/
Dprofcollectd.te1 # profcollectd - hardware profile collection daemon
/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/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/bt/btif/
DBUILD.gn101 "//profile/avrcp",
107 "//profile/avrcp:profile_avrcp"
/system/sepolicy/prebuilts/api/28.0/public/
Dpostinstall_dexopt.te26 # Read profile data.
29 # Suppress deletion denial (we do not want to update the profile).
/system/extras/boottime_tools/bootanalyze/
DREADME.md3 The bootanalyze tool helps to profile boot timing.
/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.

1234