Home
last modified time | relevance | path

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

123456789

/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java92 public void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain) { in requestAudioFocus() argument
97 + AudioAttributes.usageToString(usage) + " and zoneId " + zoneId); in requestAudioFocus()
101 usage); in requestAudioFocus()
105 + usage); in requestAudioFocus()
107 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, currentRequest.mFocusStatus); in requestAudioFocus()
109 makeAudioFocusRequestLocked(usage, zoneId, focusGain); in requestAudioFocus()
117 public void abandonAudioFocus(@AttributeUsage int usage, int zoneId) { in abandonAudioFocus() argument
121 Slog.d(TAG, "Abandoning focus with usage " + AudioAttributes.usageToString(usage) in abandonAudioFocus()
125 abandonAudioFocusLocked(usage, zoneId); in abandonAudioFocus()
141 int usage = requestsByUsage.keyAt(j); in reset() local
[all …]
DAudioControlWrapperV2.java101 public void onAudioFocusChange(@AttributeUsage int usage, int zoneId, int focusChange) { in onAudioFocusChange() argument
103 Slog.d(TAG, "onAudioFocusChange: usage " + AudioAttributes.usageToString(usage) in onAudioFocusChange()
107 mAudioControlV2.onAudioFocusChange(usage, zoneId, focusChange); in onAudioFocusChange()
193 public void requestAudioFocus(int usage, int zoneId, int focusGain) throws RemoteException { in requestAudioFocus() argument
194 mListener.requestAudioFocus(usage, zoneId, focusGain); in requestAudioFocus()
198 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() argument
199 mListener.abandonAudioFocus(usage, zoneId); in abandonAudioFocus()
DAudioControlWrapperAidl.java101 public void onAudioFocusChange(@AttributeUsage int usage, int zoneId, int focusChange) { in onAudioFocusChange() argument
103 Slog.d(TAG, "onAudioFocusChange: usage " + AudioAttributes.usageToString(usage) in onAudioFocusChange()
107 String usageName = AudioAttributes.usageToXsdString(usage); in onAudioFocusChange()
222 public void requestAudioFocus(String usage, int zoneId, int focusGain) { in requestAudioFocus() argument
223 @AttributeUsage int usageValue = AudioAttributes.xsdStringToUsage(usage); in requestAudioFocus()
228 public void abandonAudioFocus(String usage, int zoneId) { in abandonAudioFocus() argument
229 @AttributeUsage int usageValue = AudioAttributes.xsdStringToUsage(usage); in abandonAudioFocus()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsRingtoneManager.java72 @AudioAttributes.AttributeUsage int usage = audioAttributeUsages[i]; in populateAttributeUsageToRingtoneUriMap() local
73 if (AudioAttributes.usageToString(usage).contains("unknown usage")) { in populateAttributeUsageToRingtoneUriMap()
78 LOG.d("Usage " + usage + " mapped to ringtone " + ringtoneUri); in populateAttributeUsageToRingtoneUriMap()
79 mAttributeUsageToRingtoneUriMap.put(usage, ringtoneUri); in populateAttributeUsageToRingtoneUriMap()
87 public void playAudioFeedback(int group, int usage) { in playAudioFeedback() argument
88 Ringtone nextRingtone = lazyLoadRingtone(group, usage); in playAudioFeedback()
113 private Ringtone lazyLoadRingtone(int group, int usage) { in lazyLoadRingtone() argument
115 Ringtone ringtone = RingtoneManager.getRingtone(mContext, getRingtoneUri(usage)); in lazyLoadRingtone()
116 ringtone.setAudioAttributes(new AudioAttributes.Builder().setUsage(usage).build()); in lazyLoadRingtone()
124 Uri getRingtoneUri(@AudioAttributes.AttributeUsage int usage) { in getRingtoneUri() argument
[all …]
DVolumeItemParser.java77 int usage = item.getInt(R.styleable.carVolumeItems_item_usage, -1); in loadAudioUsageItems() local
78 if (usage >= 0) { in loadAudioUsageItems()
79 volumeItems.put(usage, new VolumeItemParser.VolumeItem( in loadAudioUsageItems()
80 usage, rank, in loadAudioUsageItems()
107 public VolumeItem(@AudioAttributes.AttributeUsage int usage, int rank, in VolumeItem() argument
109 mUsage = usage; in VolumeItem()
/packages/services/Car/cpp/watchdog/server/src/
DUidIoStats.cpp48 bool parseUidIoStats(const std::string& data, UidIoUsage* usage) { in parseUidIoStats() argument
50 if (fields.size() < 11 || !ParseUint(fields[0], &usage->uid) || in parseUidIoStats()
51 !ParseInt(fields[3], &usage->ios.metrics[READ_BYTES][FOREGROUND]) || in parseUidIoStats()
52 !ParseInt(fields[4], &usage->ios.metrics[WRITE_BYTES][FOREGROUND]) || in parseUidIoStats()
53 !ParseInt(fields[7], &usage->ios.metrics[READ_BYTES][BACKGROUND]) || in parseUidIoStats()
54 !ParseInt(fields[8], &usage->ios.metrics[WRITE_BYTES][BACKGROUND]) || in parseUidIoStats()
55 !ParseInt(fields[9], &usage->ios.metrics[FSYNC_COUNT][FOREGROUND]) || in parseUidIoStats()
56 !ParseInt(fields[10], &usage->ios.metrics[FSYNC_COUNT][BACKGROUND])) { in parseUidIoStats()
140 UidIoUsage usage; in getUidIoUsagesLocked() local
147 if (!parseUidIoStats(std::move(ioStats[i]), &usage)) { in getUidIoUsagesLocked()
[all …]
DIoPerfCollection.cpp466 for (const auto& usage : topNReads) { in processUidIoPerfData() local
467 if (usage->ios.isZero()) { in processUidIoPerfData()
473 .userId = multiuser_get_user_id(usage->uid), in processUidIoPerfData()
474 .packageName = std::to_string(usage->uid), in processUidIoPerfData()
475 .bytes = {usage->ios.metrics[READ_BYTES][FOREGROUND], in processUidIoPerfData()
476 usage->ios.metrics[READ_BYTES][BACKGROUND]}, in processUidIoPerfData()
477 .fsync = {usage->ios.metrics[FSYNC_COUNT][FOREGROUND], in processUidIoPerfData()
478 usage->ios.metrics[FSYNC_COUNT][BACKGROUND]}, in processUidIoPerfData()
480 if (uidToPackageNameMapping.find(usage->uid) != uidToPackageNameMapping.end()) { in processUidIoPerfData()
481 stats.packageName = uidToPackageNameMapping.at(usage->uid); in processUidIoPerfData()
[all …]
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java243 for (PackageResourceUsage usage : mUsageByUserPackage.values()) { in getAllResourceOveruseStats()
244 ResourceOveruseStats.Builder statsBuilder = usage.getResourceOveruseStatsBuilder(); in getAllResourceOveruseStats()
245 IoOveruseStats ioOveruseStats = getIoOveruseStats(usage.userId, usage.packageName, in getAllResourceOveruseStats()
335 for (PackageResourceUsage usage : mUsageByUserPackage.values()) { in setKillablePackageAsUser()
336 if (!usage.packageName.equals(packageName)) { in setKillablePackageAsUser()
339 if (!usage.setKillableState(isKillable)) { in setKillablePackageAsUser()
369 PackageResourceUsage usage = mUsageByUserPackage.getOrDefault(key, in setKillablePackageAsUser() local
371 if (!usage.setKillableState(isKillable)) { in setKillablePackageAsUser()
376 mUsageByUserPackage.put(key, usage); in setKillablePackageAsUser()
415 PackageResourceUsage usage = mUsageByUserPackage.getOrDefault(key, in getPackageKillableStatesForUserId() local
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DReviewOngoingUsageViewModel.kt157 for (usage in usages) { in <lambda>() constant
158 if (usage.packageName != SYSTEM_PKG) { in <lambda>()
159 filteredUsages.getOrPut(getPackageAttr(usage), in <lambda>()
169 private fun isAppPredictor(usage: OpAccess): Boolean { in <lambda>()
170 return Utils.getUserContext(app, usage.user).packageManager.checkPermission( in <lambda>()
171 Manifest.permission.MANAGE_APP_PREDICTIONS, usage.packageName) == in <lambda>()
335 for (usage in usages) { in <lambda>() constant
336 remainingProxyChainUsages[getPackageAttr(usage)] = usage in <lambda>()
340 for (usage in usages) { in <lambda>() constant
341 val usageAttr = getPackageAttr(usage) in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java120 final JSONObject usage = dumpDataUsage(template, controller); in dumpDataUsage() local
121 usage.put("subId", info.getSubscriptionId()); in dumpDataUsage()
122 array.put(usage); in dumpDataUsage()
141 DataUsageController.DataUsageInfo usage = controller.getDataUsageInfo(template); in dumpDataUsage() local
142 obj.put("carrier", usage.carrier); in dumpDataUsage()
143 obj.put("start", usage.startDate); in dumpDataUsage()
144 obj.put("usage", usage.usageLevel); in dumpDataUsage()
145 obj.put("warning", usage.warningLevel); in dumpDataUsage()
146 obj.put("limit", usage.limitLevel); in dumpDataUsage()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTransientPlayersFragment.java88 int usage = TRANSIENT_SOUND_USAGES.get(index); in initPlayers() local
89 mSystemPlayers.add(getCarSoundsPlayer(usage)); in initPlayers()
93 private AudioPlayer getCarSoundsPlayer(int usage) { in getCarSoundsPlayer() argument
94 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(usage).build(); in getCarSoundsPlayer()
95 return new AudioPlayer(getContext(), getPlayerResource(usage), attributes); in getCarSoundsPlayer()
98 private int getPlayerResource(int usage) { in getPlayerResource() argument
99 if (usage == USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) { in getPlayerResource()
DAudioSystemPlayerFragment.java93 int usage = CAR_SOUND_USAGES.get(index); in initPlayers() local
94 mSystemPlayers.add(getCarSoundsPlayer(usage)); in initPlayers()
98 private AudioPlayer getCarSoundsPlayer(int usage) { in getCarSoundsPlayer() argument
99 AudioAttributes attributes = new AudioAttributes.Builder().setSystemUsage(usage).build(); in getCarSoundsPlayer()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DInactiveApps.java19 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
20 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_EXEMPTED;
21 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_FREQUENT;
22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_NEVER;
23 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
24 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RESTRICTED;
25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_WORKING_SET;
28 import android.app.usage.UsageStatsManager;
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DMicPrivacyChipDialogController.java159 permGroupUsages.forEach(usage -> { in createPrivacyElements()
161 verifyType(PERM_GROUP_TO_PRIVACY_TYPE_MAP.get(usage.getPermGroupName())); in createPrivacyElements()
164 int userId = UserHandle.getUserId(usage.getUid()); in createPrivacyElements()
173 String appName = usage.isPhoneCall() in createPrivacyElements()
175 : getLabelForPackage(usage.getPackageName(), usage.getUid()); in createPrivacyElements()
180 usage.getPackageName(), in createPrivacyElements()
183 usage.getAttribution(), in createPrivacyElements()
184 usage.getLastAccess(), in createPrivacyElements()
185 usage.isActive(), in createPrivacyElements()
187 usage.isPhoneCall()) in createPrivacyElements()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDynamicRouting.java80 for (int usage : usages) { in setupAudioDynamicRoutingForGroup()
81 AudioAttributes attributes = buildAttributesWithUsage(usage); in setupAudioDynamicRoutingForGroup()
106 private static AudioAttributes buildAttributesWithUsage(@AttributeUsage int usage) { in buildAttributesWithUsage() argument
108 if (AudioAttributes.isSystemUsage(usage)) { in buildAttributesWithUsage()
109 attributesBuilder.setSystemUsage(usage); in buildAttributesWithUsage()
111 attributesBuilder.setUsage(usage); in buildAttributesWithUsage()
DCarAudioService.java764 @AttributeUsage int usage, int gainInMillibels) { in createAudioPatch() argument
767 return createAudioPatchLocked(sourceAddress, usage, gainInMillibels); in createAudioPatch()
780 @AttributeUsage int usage, int gainInMillibels) { in createAudioPatchLocked() argument
795 AudioDevicePort sinkPort = Objects.requireNonNull(getAudioPort(usage), in createAudioPatchLocked()
796 "Sink not available for usage: " + AudioAttributes.usageToString(usage)); in createAudioPatchLocked()
834 int groupId = getVolumeGroupIdForUsage(CarAudioManager.PRIMARY_AUDIO_ZONE, usage); in createAudioPatchLocked()
879 public int getVolumeGroupIdForUsage(int zoneId, @AttributeUsage int usage) { in getVolumeGroupIdForUsage() argument
885 if (usage == CarAudioDynamicRouting.STREAM_TYPE_USAGES[i]) { in getVolumeGroupIdForUsage()
893 @AudioContext int audioContext = CarAudioContext.getContextForUsage(usage); in getVolumeGroupIdForUsage()
928 for (@AttributeUsage int usage : usagesForContext) { in getUsagesForVolumeGroupId()
[all …]
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java182 private void increaseVolume(int targetDisplayId, int usage) { in increaseVolume() argument
184 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in increaseVolume()
194 Log.d(TAG, "Volume for stream type (" + usage + ") is already max (" + maxVolume in increaseVolume()
201 Log.d(TAG, "Increasing volume for stream type (" + usage + ") to: " + volume in increaseVolume()
208 private void decreaseVolume(int targetDisplayId, int usage) { in decreaseVolume() argument
210 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in decreaseVolume()
220 Log.d(TAG, "Volume for stream type (" + usage + ") is already min (" + minVolume in decreaseVolume()
227 Log.d(TAG, "Decreasing volume for stream type (" + usage + ") to: " + volume in decreaseVolume()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java217 int usage = mCarAudioManager.getUsagesForVolumeGroupId(mZoneId, groupId)[0]; in playRingtoneForGroup() local
218 if (isRingtoneActiveForUsage(usage)) { in playRingtoneForGroup()
225 startRingtone(usage); in playRingtoneForGroup()
230 private void startRingtone(@AttributeUsage int usage) { in startRingtone() argument
233 + AudioAttributes.usageToString(usage)); in startRingtone()
236 .setUsage(usage) in startRingtone()
267 boolean isRingtoneActiveForUsage(@AttributeUsage int usage) { in isRingtoneActiveForUsage() argument
270 && mRingtone.getAudioAttributes().getUsage() == usage; in isRingtoneActiveForUsage()
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java222 private void doTestIncreaseVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestIncreaseVolumeAndAssert() argument
224 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseVolumeAndAssert()
256 private void doTestIncreaseMaxVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestIncreaseMaxVolumeAndAssert() argument
258 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseMaxVolumeAndAssert()
286 private void doTestDecreaseVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestDecreaseVolumeAndAssert() argument
288 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseVolumeAndAssert()
320 private void doTestDecreaseMinVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestDecreaseMinVolumeAndAssert() argument
322 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseMinVolumeAndAssert()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp46 void usage(string name) { in usage() function
104 usage(argv[0]); in main()
348 usage(progname); in parse_cmd_line()
373 usage(progname); in parse_cmd_line()
382 usage(progname); in parse_cmd_line()
395 usage(progname); in parse_cmd_line()
/packages/services/Car/cpp/evs/support_library/
DStreamHandler.cpp244 && input.usage == output.usage in isSameFormat()
254 buffer.width, buffer.height, buffer.format, 1, buffer.usage, in allocate()
287 output.usage = input.usage; in processFrame()
393 mAnalyzeBuffer.usage = input.usage; in copyAndAnalyzeFrame()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java400 @AudioAttributes.AttributeUsage int usage, int gainInMillibels) { in createAudioPatch() argument
402 return mService.createAudioPatch(sourceAddress, usage, gainInMillibels); in createAudioPatch()
465 public int getVolumeGroupIdForUsage(@AudioAttributes.AttributeUsage int usage) { in getVolumeGroupIdForUsage() argument
466 return getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage); in getVolumeGroupIdForUsage()
479 public int getVolumeGroupIdForUsage(int zoneId, @AudioAttributes.AttributeUsage int usage) { in getVolumeGroupIdForUsage() argument
481 return mService.getVolumeGroupIdForUsage(zoneId, usage); in getVolumeGroupIdForUsage()
627 @AudioAttributes.AttributeUsage int usage) { in getOutputDeviceForUsage() argument
629 String deviceAddress = mService.getOutputDeviceAddressForUsage(zoneId, usage); in getOutputDeviceForUsage()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionDetailsFragment.java440 AppPermissionUsageEntry usage = usages.get(usageNum); in updateUI()
454 String accessTime = DateFormat.getTimeFormat(context).format(usage.mEndTime); in updateUI()
455 Long durationLong = usage.mClusteredAccessTimeList in updateUI()
461 List<Long> accessTimeList = usage.mClusteredAccessTimeList in updateUI()
464 usage.mAppPermissionUsage.getGroupUsages().stream().filter(groupUsage -> in updateUI()
497 for (int i = 0; i < usage.mClusteredAccessTimeList.size(); i++) { in updateUI()
498 OpEventProxyInfo proxy = usage.mClusteredAccessTimeList.get(i).getThird(); in updateUI()
517 UserHandle.getUserHandleForUid(usage.mAppPermissionUsage.getApp().getUid()), in updateUI()
518 usage.mAppPermissionUsage.getPackageName(), in updateUI()
519 usage.mAppPermissionUsage.getApp().getIcon(), in updateUI()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DReviewOngoingUsageFragment.java218 for (Map.Entry<PackageAttribution, Set<String>> usage : appUsages.entrySet()) { in updateDialogView()
219 String packageName = usage.getKey().getPackageName(); in updateDialogView()
220 UserHandle user = usage.getKey().getUser(); in updateDialogView()
222 Set<String> groups = usage.getValue(); in updateDialogView()
245 if (group.equals(MICROPHONE) && attrLabels.containsKey(usage.getKey())) { in updateDialogView()
247 attrLabels.get(usage.getKey())); in updateDialogView()
/packages/inputmethods/LatinIME/native/jni/
Drun-tests.sh16 function usage() { function
26 usage
47 usage

123456789