Home
last modified time | relevance | path

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

12345678910>>...15

/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()
115 private Ringtone lazyLoadRingtone(int group, int usage) { in lazyLoadRingtone() argument
117 Ringtone ringtone = RingtoneManager.getRingtone(mContext, getRingtoneUri(usage)); in lazyLoadRingtone()
123 if (AudioAttributes.isSystemUsage(usage)) { in lazyLoadRingtone()
124 builder.setSystemUsage(usage); in lazyLoadRingtone()
[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()
110 public VolumeItem(@AudioAttributes.AttributeUsage int usage, int rank, in VolumeItem() argument
112 mUsage = usage; in VolumeItem()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterQsFragment.java221 for (PermissionGroupUsage usage : mPermGroupUsages) { in addPermissionUsageInformation()
231 usage.getPermissionGroupName(), in addPermissionUsageInformation()
232 generateUsageLabel(usage), in addPermissionUsageInformation()
233 usage.isActive()); in addPermissionUsageInformation()
236 if (usage.isPhoneCall()) { in addPermissionUsageInformation()
245 if (mViewModel.getRevokedUsages().contains(usage)) { in addPermissionUsageInformation()
259 usage, parentIndicatorLayout, expandedLayout, expandView); in addPermissionUsageInformation()
264 PermissionGroupUsage usage, in configureIndicatorActionButtons() argument
268 configurePrimaryActionButton(usage, parentIndicatorLayout, expandedLayout, expandView); in configureIndicatorActionButtons()
269 configureSeeUsageButton(usage, expandedLayout); in configureIndicatorActionButtons()
[all …]
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java593 PackageResourceUsage usage = mUsageByUserPackage.valueAt(i); in getAllResourceOveruseStats() local
594 ResourceOveruseStats.Builder statsBuilder = usage.getResourceOveruseStatsBuilder(); in getAllResourceOveruseStats()
596 getIoOveruseStatsLocked(usage, minimumBytesWritten, maxStatsPeriod); in getAllResourceOveruseStats()
701 PackageResourceUsage usage; in setKillablePackageAsUser() local
711 usage = mUsageByUserPackage.get(key); in setKillablePackageAsUser()
712 if (usage == null) { in setKillablePackageAsUser()
713 usage = new PackageResourceUsage(userId, genericPackageName, in setKillablePackageAsUser()
716 if (!usage.verifyAndSetKillableState(isKillable, mTimeSource.getCurrentDate())) { in setKillablePackageAsUser()
721 mUsageByUserPackage.put(key, usage); in setKillablePackageAsUser()
724 int uid = getOrFetchUid(usage, packageName); in setKillablePackageAsUser()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt111 fun shouldAllowRevoke(usage: PermissionGroupUsage): Boolean { in shouldAllowRevoke()
115 usage.packageName, in shouldAllowRevoke()
116 usage.permissionGroupName, in shouldAllowRevoke()
117 UserHandle.getUserHandleForUid(usage.uid) in shouldAllowRevoke()
127 fun revokePermission(usage: PermissionGroupUsage) { in revokePermission()
131 usage.packageName, in revokePermission()
132 usage.permissionGroupName, in revokePermission()
133 UserHandle.getUserHandleForUid(usage.uid) in revokePermission()
140 revokedUsages.add(usage) in revokePermission()
250 fun navigateToManageAppPermissions(fragment: Fragment, usage: PermissionGroupUsage) { in navigateToManageAppPermissions()
[all …]
/packages/modules/Connectivity/framework-t/hiddenapi/
Dhiddenapi-max-target-o-low-priority-tiramisu.txt1 Landroid/app/usage/NetworkStats$Bucket;->convertDefaultNetworkStatus(I)I
2 Landroid/app/usage/NetworkStats$Bucket;->convertMetered(I)I
3 Landroid/app/usage/NetworkStats$Bucket;->convertRoaming(I)I
4 Landroid/app/usage/NetworkStats$Bucket;->convertSet(I)I
5 Landroid/app/usage/NetworkStats$Bucket;->convertState(I)I
6 Landroid/app/usage/NetworkStats$Bucket;->convertTag(I)I
7 Landroid/app/usage/NetworkStats$Bucket;->convertUid(I)I
8 Landroid/app/usage/NetworkStats$Bucket;->mBeginTimeStamp:J
9 Landroid/app/usage/NetworkStats$Bucket;->mDefaultNetworkStatus:I
10 Landroid/app/usage/NetworkStats$Bucket;->mEndTimeStamp:J
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DPrivacyElementsProviderImpl.java101 permGroupUsages.forEach(usage -> { in createPrivacyElements()
103 verifyType(PERM_GROUP_TO_PRIVACY_TYPE_MAP.get(usage.getPermissionGroupName())); in createPrivacyElements()
106 int userId = UserHandle.getUserId(usage.getUid()); in createPrivacyElements()
115 String appName = usage.isPhoneCall() in createPrivacyElements()
117 : getLabelForPackage(usage.getPackageName(), usage.getUid()); in createPrivacyElements()
122 usage.getPackageName(), in createPrivacyElements()
125 usage.getAttributionTag(), in createPrivacyElements()
127 usage.getProxyLabel(), in createPrivacyElements()
128 usage.getLastAccessTimeMillis(), in createPrivacyElements()
129 usage.isActive(), in createPrivacyElements()
[all …]
/packages/modules/Connectivity/framework-t/api/
Dlint-baseline.txt2 BannedThrow: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long):
4 BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUid(int, String, long, long, int):
6 BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUidTag(int, String, long, long, i…
8 BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUidTagState(int, String, long, lo…
10 BannedThrow: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long):
12 BannedThrow: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long):
14 BannedThrow: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long):
26 ExecutorRegistration: android.app.usage.NetworkStatsManager#registerUsageCallback(int, String, long…
30 GenericException: android.app.usage.NetworkStats#finalize():
44 MissingNullability: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long):
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayersFragment.java74 int usage = usages.get(index); in initPlayers() local
75 mPlayers.add(getCarSoundsPlayer(usage)); in initPlayers()
79 private AudioPlayer getCarSoundsPlayer(int usage) { in getCarSoundsPlayer() argument
81 if (AudioAttributes.isSystemUsage(usage)) { in getCarSoundsPlayer()
82 builder.setSystemUsage(usage); in getCarSoundsPlayer()
84 builder.setUsage(usage); in getCarSoundsPlayer()
87 return new AudioPlayer(getContext(), getPlayerResource(usage), builder.build()); in getCarSoundsPlayer()
90 int getPlayerResource(int usage) { in getPlayerResource() argument
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/
DReviewOngoingUsageViewModel.kt147 for (usage in usages) { in <lambda>() constant
148 if (usage.packageName != SYSTEM_PKG) { in <lambda>()
150 .getOrPut(getPackageAttr(usage), { mutableSetOf() }) in <lambda>()
160 private fun isAppPredictor(usage: OpAccess): Boolean { in <lambda>()
161 return Utils.getUserContext(app, usage.user) in <lambda>()
165 usage.packageName in <lambda>()
383 for (usage in usages) { in <lambda>() constant
384 remainingProxyChainUsages[getPackageAttr(usage)] = usage in <lambda>()
389 for (usage in usages) { in <lambda>() constant
390 val usageAttr = getPackageAttr(usage) in <lambda>()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkStatsUtilsTest.kt81 val bucket = makeMockBucket(android.app.usage.NetworkStats.Bucket.UID_ALL, in testBucketToEntry()
82 android.app.usage.NetworkStats.Bucket.TAG_NONE, in testBucketToEntry()
83 android.app.usage.NetworkStats.Bucket.STATE_DEFAULT, in testBucketToEntry()
84 android.app.usage.NetworkStats.Bucket.METERED_YES, in testBucketToEntry()
85 android.app.usage.NetworkStats.Bucket.ROAMING_NO, in testBucketToEntry()
86 android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_ALL, 1024, 8, 2048, 12) in testBucketToEntry()
109 ): android.app.usage.NetworkStats.Bucket { in makeMockBucket()
110 val ret: android.app.usage.NetworkStats.Bucket = in makeMockBucket()
111 mock(android.app.usage.NetworkStats.Bucket::class.java) in makeMockBucket()
/packages/services/Car/service/src/com/android/car/audio/
DCarHalAudioUtils.java88 playbackTrackMetadata.usage = audioAttributes.getSystemUsage(); in audioAttributeToMetadata()
104 @AttributeUsage int usage, CarAudioZone zone) { in usageToMetadata()
106 AudioAttributes attributes = CarAudioContext.getAudioAttributeFromUsage(usage); in usageToMetadata()
110 public static PlaybackTrackMetadata usageToMetadata(@AttributeUsage int usage) { in usageToMetadata() argument
111 AudioAttributes attributes = CarAudioContext.getAudioAttributeFromUsage(usage); in usageToMetadata()
153 if (AudioAttributes.isSystemUsage(metadata.usage)) { in metadataToAudioAttribute()
154 builder.setSystemUsage(metadata.usage); in metadataToAudioAttribute()
156 builder.setUsage(metadata.usage); in metadataToAudioAttribute()
191 usageLiteralsForMetadata[index] = usageToXsdString(playbackTrackMetadata.usage); in metadatasToUsageStrings()
DCarAudioParserUtils.java99 int usage = parseUsageValue(parser, attrValue); in parseUsage() local
100 if (usage == INVALID) { in parseUsage()
104 if (AudioAttributes.isSystemUsage(usage)) { in parseUsage()
105 builder.setSystemUsage(usage); in parseUsage()
107 builder.setUsage(usage); in parseUsage()
119 int usage = AudioManagerHelper.xsdStringToUsage(usageLiteral); in parseUsageValue() local
122 usage = USAGE_NOTIFICATION_EVENT; in parseUsageValue()
124 return usage; in parseUsageValue()
DCarAudioProtoUtils.java113 int usage = fadeableUsages.get(index); in dumpFadeManagerConfigurationProto() local
114 dumpUsageToVolumeShaperConfigProto(usage, in dumpFadeManagerConfigurationProto()
115 fadeManagerConfig.getFadeOutVolumeShaperConfigForUsage(usage), in dumpFadeManagerConfigurationProto()
120 dumpUsageToVolumeShaperConfigProto(usage, in dumpFadeManagerConfigurationProto()
121 fadeManagerConfig.getFadeInVolumeShaperConfigForUsage(usage), in dumpFadeManagerConfigurationProto()
156 private static void dumpUsageToVolumeShaperConfigProto(int usage, in dumpUsageToVolumeShaperConfigProto() argument
165 .UsagesToVolumeShaperConfiguration.USAGE, usage); in dumpUsageToVolumeShaperConfigProto()
DCarAudioContext.java412 int usage = sdkUsages[indexUsage]; in CarAudioContext() local
413 AudioAttributes attributes = getAudioAttributeFromUsage(usage); in CarAudioContext()
442 static int getLegacyContextForUsage(int usage) { in getLegacyContextForUsage() argument
443 AudioAttributesWrapper wrapper = getAudioAttributeWrapperFromUsage(usage); in getLegacyContextForUsage()
493 public static void checkAudioAttributeUsage(@AttributeUsage int usage) in checkAudioAttributeUsage() argument
495 if (isValidAudioAttributeUsage(usage)) { in checkAudioAttributeUsage()
499 throw new IllegalArgumentException("Invalid audio attribute " + usage); in checkAudioAttributeUsage()
508 public static boolean isValidAudioAttributeUsage(@AttributeUsage int usage) { in isValidAudioAttributeUsage() argument
509 switch (usage) { in isValidAudioAttributeUsage()
534 return usage == AudioManagerHelper.getUsageVirtualSource(); in isValidAudioAttributeUsage()
[all …]
/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/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV2.java113 int usage = metaData.usage; in onAudioFocusChange() local
115 Slogf.d(TAG, "onAudioFocusChange: usage " + usageToString(usage) in onAudioFocusChange()
119 mAudioControlV2.onAudioFocusChange(usage, zoneId, focusChange); in onAudioFocusChange()
217 public void requestAudioFocus(int usage, int zoneId, int focusGain) throws RemoteException { in requestAudioFocus() argument
218 mListener.requestAudioFocus(usageToMetadata(usage), zoneId, focusGain); in requestAudioFocus()
222 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() argument
223 mListener.abandonAudioFocus(usageToMetadata(usage), zoneId); in abandonAudioFocus()
DAudioControlWrapperAidl.java173 onAudioFocusChange(metaData.usage, zoneId, focusChange); in onAudioFocusChange()
177 private void onAudioFocusChange(@AttributeUsage int usage, int zoneId, int focusChange) { in onAudioFocusChange() argument
180 usageToString(usage), zoneId, focusChange); in onAudioFocusChange()
183 String usageName = usageToXsdString(usage); in onAudioFocusChange()
389 public void requestAudioFocus(String usage, int zoneId, int focusGain) { in requestAudioFocus() argument
390 @AttributeUsage int usageValue = xsdStringToUsage(usage); in requestAudioFocus()
395 public void abandonAudioFocus(String usage, int zoneId) { in abandonAudioFocus() argument
396 @AttributeUsage int usageValue = xsdStringToUsage(usage); in abandonAudioFocus()
420 private void abandonAudioFocus(int usage, int zoneId) { in abandonAudioFocus() argument
421 abandonAudioFocusWithMetaData(usageToMetadata(usage), zoneId); in abandonAudioFocus()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java137 final JSONObject usage = dumpDataUsage(template, controller); in dumpDataUsage() local
138 usage.put("subId", info.getSubscriptionId()); in dumpDataUsage()
139 array.put(usage); in dumpDataUsage()
158 DataUsageController.DataUsageInfo usage = controller.getDataUsageInfo(template); in dumpDataUsage() local
159 obj.put("carrier", usage.carrier); in dumpDataUsage()
160 obj.put("start", usage.startDate); in dumpDataUsage()
161 obj.put("usage", usage.usageLevel); in dumpDataUsage()
162 obj.put("warning", usage.warningLevel); in dumpDataUsage()
163 obj.put("limit", usage.limitLevel); in dumpDataUsage()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkUsageData.kt31 val usage: Long, constant in com.android.settings.datausage.lib.NetworkUsageData
42 DataUsageFormatter(context).formatDataUsage(usage) in formatStartDate()
51 usage = 0L, in formatStartDate()
63 usage = sumOf { it.usage }, in List()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarHalAudioUtilsTest.java102 playbackTrackMetadata.usage = in setUp()
154 assertWithMessage("Attributes to Playback Track Metadata usage").that(metadata.usage) in audioAttributeToMetadata_succeeds()
166 assertWithMessage("OEM Attributes to Playback Track Metadata usage").that(metadata.usage) in audioAttributeToMetadata_withOemTags_succeeds()
188 .that(metadata.usage).isEqualTo(USAGE_MEDIA); in audioAttributesWrapperToMetadata_succeeds()
202 assertWithMessage("Usage to Playback Track Metadata usage").that(metadata.usage) in usageToMetadata_succeeds()
219 .that(playbackTrackMetadata.usage).isEqualTo(USAGE_MEDIA); in usageToMetadata_withZone_succeeds()
227 metadata.usage = USAGE_MEDIA; in metadataToAudioAttribute_withMusic_succeeds()
247 metadata.usage = USAGE_SAFETY; in metadataToAudioAttribute_withSystemUsage_succeeds()
267 metadata.usage = USAGE_ASSISTANCE_NAVIGATION_GUIDANCE; in metadataToAudioAttributes_withOemTags_succeeds()
292 .that(playbackTrackMetadata.usage).isEqualTo(USAGE_MEDIA); in audioAttributeToMetadata_withZone_succeeds()
[all …]
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DAudioUtils.java32 public static AudioAttributes getAudioAttributeFromUsage(int usage) { in getAudioAttributeFromUsage() argument
34 if (AudioAttributes.isSystemUsage(usage)) { in getAudioAttributeFromUsage()
35 builder.setSystemUsage(usage); in getAudioAttributeFromUsage()
37 builder.setUsage(usage); in getAudioAttributeFromUsage()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java218 private void increaseVolume(int targetDisplayId, int usage) { in increaseVolume() argument
220 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in increaseVolume()
230 Log.d(TAG, "Volume for stream type (" + usage + ") is already max (" + maxVolume in increaseVolume()
237 Log.d(TAG, "Increasing volume for stream type (" + usage + ") to: " + volume in increaseVolume()
244 private void decreaseVolume(int targetDisplayId, int usage) { in decreaseVolume() argument
246 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in decreaseVolume()
256 Log.d(TAG, "Volume for stream type (" + usage + ") is already min (" + minVolume in decreaseVolume()
263 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.java279 int usage = mCarAudioManager.getUsagesForVolumeGroupId(mZoneId, groupId)[0]; in playRingtoneForGroup() local
280 if (isRingtoneActiveForUsage(usage)) { in playRingtoneForGroup()
287 startRingtone(usage); in playRingtoneForGroup()
292 private void startRingtone(@AttributeUsage int usage) { in startRingtone() argument
295 + AudioAttributes.usageToString(usage)); in startRingtone()
301 if (AudioAttributes.isSystemUsage(usage)) { in startRingtone()
302 builder.setSystemUsage(usage); in startRingtone()
304 builder.setUsage(usage); in startRingtone()
336 boolean isRingtoneActiveForUsage(@AttributeUsage int usage) { in isRingtoneActiveForUsage() argument
339 && mRingtone.getAudioAttributes().getUsage() == usage; in isRingtoneActiveForUsage()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DNetworkCycleBucketRepositoryTest.kt79 usage = CYCLE1_BYTES, in createRepository()
109 usage = CYCLE2_BYTES, in loadCycles_policyHasNoCycle_asFourWeeks()
136 usage = CYCLE2_BYTES, in loadCycles_noPolicy_asFourWeeks()
146 usage = CYCLE3_BYTES + CYCLE4_BYTES, in queryChartData()
174 usage = CYCLE3_BYTES, in queryChartData()
179 usage = CYCLE4_BYTES, in queryChartData()

12345678910>>...15