/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 489 PackageResourceUsage usage = mUsageByUserPackage.valueAt(i); in getAllResourceOveruseStats() local 490 ResourceOveruseStats.Builder statsBuilder = usage.getResourceOveruseStatsBuilder(); in getAllResourceOveruseStats() 492 getIoOveruseStatsLocked(usage, minimumBytesWritten, maxStatsPeriod); in getAllResourceOveruseStats() 597 PackageResourceUsage usage; in setKillablePackageAsUser() local 607 usage = mUsageByUserPackage.get(key); in setKillablePackageAsUser() 608 if (usage == null) { in setKillablePackageAsUser() 609 usage = new PackageResourceUsage(userId, genericPackageName, in setKillablePackageAsUser() 612 if (!usage.verifyAndSetKillableState(isKillable)) { in setKillablePackageAsUser() 617 mUsageByUserPackage.put(key, usage); in setKillablePackageAsUser() 620 int uid = getOrFetchUid(usage, packageName); in setKillablePackageAsUser() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManager.java | 72 @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 …]
|
D | VolumeItemParser.java | 77 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/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority-tiramisu.txt | 1 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v33/ |
D | SafetyCenterQsViewModel.kt | 92 fun shouldAllowRevoke(usage: PermissionGroupUsage): Boolean { in shouldAllowRevoke() 93 val pgTriple = Triple(usage.packageName, in shouldAllowRevoke() 94 usage.permissionGroupName, in shouldAllowRevoke() 95 UserHandle.getUserHandleForUid(usage.uid)) in shouldAllowRevoke() 104 fun revokePermission(usage: PermissionGroupUsage) { in revokePermission() 105 val group = lightAppPermMap.get(Triple(usage.packageName, usage.permissionGroupName, in revokePermission() 106 UserHandle.getUserHandleForUid(usage.uid))) ?: return in revokePermission() 178 fun navigateToManageAppPermissions(fragment: Fragment, usage: PermissionGroupUsage) { in navigateToManageAppPermissions() 179 fragment.startActivity(getDefaultManageAppPermissionsIntent(usage.packageName, usage.uid)) in navigateToManageAppPermissions() 182 fun getStartViewPermissionUsageIntent(context: Context, usage: PermissionGroupUsage): in getStartViewPermissionUsageIntent() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v33/ |
D | SafetyCenterQsFragment.java | 167 for (PermissionGroupUsage usage : mPermGroupUsages) { in addPermissionUsageInformation() 177 populatePermissionParent(permissionParent, usage.getPermissionGroupName(), in addPermissionUsageInformation() 178 generateUsageLabel(usage), parentIconId, parentTitleId, parentLabelId, in addPermissionUsageInformation() 181 if (usage.isPhoneCall()) { in addPermissionUsageInformation() 193 boolean shouldAllowRevoke = mViewModel.shouldAllowRevoke(usage); in addPermissionUsageInformation() 194 boolean isSubAttributionUsage = isSubAttributionUsage(usage.getAttributionLabel()); in addPermissionUsageInformation() 199 usage); in addPermissionUsageInformation() 209 usage.getPermissionGroupName()); in addPermissionUsageInformation() 217 getSeeUsageText(usage.getPermissionGroupName())); in addPermissionUsageInformation() 237 revokePermission(permissionParent, parentIconId, parentLabelId, usage); in addPermissionUsageInformation() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/ |
D | PrivacyElementsProviderImpl.java | 101 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/ |
D | lint-baseline.txt | 2 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | ReviewOngoingUsageViewModel.kt | 157 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/modules/Bluetooth/system/bta/le_audio/ |
D | le_audio_utils.cc | 37 audio_content_type_t content_type, audio_usage_t usage) { in AudioContentToLeAudioContext() argument 39 switch (usage) { in AudioContentToLeAudioContext() 73 static std::string usageToString(audio_usage_t usage) { in usageToString() argument 74 switch (usage) { in usageToString() 158 if (track.content_type == 0 && track.usage == 0) continue; in GetAllowedAudioContextsFromSourceMetadata() 161 usageToString(track.usage).c_str(), track.usage, in GetAllowedAudioContextsFromSourceMetadata() 166 AudioContentToLeAudioContext(track.content_type, track.usage)); in GetAllowedAudioContextsFromSourceMetadata()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTransientPlayersFragment.java | 88 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()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsDumpService.java | 115 final JSONObject usage = dumpDataUsage(template, controller); in dumpDataUsage() local 116 usage.put("subId", info.getSubscriptionId()); in dumpDataUsage() 117 array.put(usage); in dumpDataUsage() 136 DataUsageController.DataUsageInfo usage = controller.getDataUsageInfo(template); in dumpDataUsage() local 137 obj.put("carrier", usage.carrier); in dumpDataUsage() 138 obj.put("start", usage.startDate); in dumpDataUsage() 139 obj.put("usage", usage.usageLevel); in dumpDataUsage() 140 obj.put("warning", usage.warningLevel); in dumpDataUsage() 141 obj.put("limit", usage.limitLevel); in dumpDataUsage()
|
/packages/services/Car/service/src/com/android/car/audio/hal/ |
D | HalAudioFocus.java | 102 public void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain) { in requestAudioFocus() argument 108 + usageToString(usage) + " and zoneId " + zoneId); in requestAudioFocus() 111 CarAudioContext.getAudioAttributeWrapperFromUsage(usage); in requestAudioFocus() 117 + usage); in requestAudioFocus() 119 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, currentRequest.mFocusStatus); in requestAudioFocus() 129 public void abandonAudioFocus(@AttributeUsage int usage, int zoneId) { in abandonAudioFocus() argument 134 Slogf.d(TAG, "Abandoning focus with usage " + usageToString(usage) in abandonAudioFocus() 137 abandonAudioFocusLocked(CarAudioContext.getAudioAttributeWrapperFromUsage(usage), in abandonAudioFocus() 265 private void onAudioFocusChange(int usage, int zoneId, int focusChange) { in onAudioFocusChange() argument 266 AudioAttributesWrapper wrapper = CarAudioContext.getAudioAttributeWrapperFromUsage(usage); in onAudioFocusChange() [all …]
|
D | AudioControlWrapperV2.java | 114 public void onAudioFocusChange(@AttributeUsage int usage, int zoneId, int focusChange) { in onAudioFocusChange() argument 116 Slogf.d(TAG, "onAudioFocusChange: usage " + usageToString(usage) in onAudioFocusChange() 120 mAudioControlV2.onAudioFocusChange(usage, zoneId, focusChange); in onAudioFocusChange() 206 public void requestAudioFocus(int usage, int zoneId, int focusGain) throws RemoteException { in requestAudioFocus() argument 207 mListener.requestAudioFocus(usage, zoneId, focusGain); in requestAudioFocus() 211 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() argument 212 mListener.abandonAudioFocus(usage, zoneId); in abandonAudioFocus()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | InactiveApps.java | 19 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/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 251 int usage = mCarAudioManager.getUsagesForVolumeGroupId(mZoneId, groupId)[0]; in playRingtoneForGroup() local 252 if (isRingtoneActiveForUsage(usage)) { in playRingtoneForGroup() 259 startRingtone(usage); in playRingtoneForGroup() 264 private void startRingtone(@AttributeUsage int usage) { in startRingtone() argument 267 + AudioAttributes.usageToString(usage)); in startRingtone() 273 if (AudioAttributes.isSystemUsage(usage)) { in startRingtone() 274 builder.setSystemUsage(usage); in startRingtone() 276 builder.setUsage(usage); in startRingtone() 308 boolean isRingtoneActiveForUsage(@AttributeUsage int usage) { in isRingtoneActiveForUsage() argument 311 && mRingtone.getAudioAttributes().getUsage() == usage; in isRingtoneActiveForUsage()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/ |
D | PermissionUsageDetailsViewModel.kt | 265 usages.forEachIndexed { usageNum, usage -> in <lambda>() 266 val usageTimestamp = usage.endTime in <lambda>() 289 val accessTime = DateFormat.getTimeFormat(context).format(usage.endTime) in <lambda>() 290 var durationLong: Long = usage.clusteredAccessTimeList in <lambda>() 295 val accessTimeList: List<Long> = usage.clusteredAccessTimeList.map { p -> p.first } in <lambda>() 324 for (clusteredAccessTime in usage.clusteredAccessTimeList) { in <lambda>() 336 if (usage.usageData.label != Resources.ID_NULL) { in <lambda>() 337 val attributionLabels: Map<Int, String>? = usage.usageData.app.attributionLabels in <lambda>() 339 subattributionLabel = attributionLabels[usage.usageData.label] in <lambda>() 377 UserHandle.getUserHandleForUid(usage.usageData.app.getUid()), in <lambda>() [all …]
|
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/ |
D | CustomInputEventListener.java | 196 private void increaseVolume(int targetDisplayId, int usage) { in increaseVolume() argument 198 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in increaseVolume() 208 Log.d(TAG, "Volume for stream type (" + usage + ") is already max (" + maxVolume in increaseVolume() 215 Log.d(TAG, "Increasing volume for stream type (" + usage + ") to: " + volume in increaseVolume() 222 private void decreaseVolume(int targetDisplayId, int usage) { in decreaseVolume() argument 224 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(zoneId, usage); in decreaseVolume() 234 Log.d(TAG, "Volume for stream type (" + usage + ") is already min (" + minVolume in decreaseVolume() 241 Log.d(TAG, "Decreasing volume for stream type (" + usage + ") to: " + volume in decreaseVolume()
|
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/ |
D | AudioUtils.java | 32 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/service/src/com/android/car/audio/ |
D | CarAudioContext.java | 450 public static void checkAudioAttributeUsage(@AttributeUsage int usage) in checkAudioAttributeUsage() argument 452 if (isValidAudioAttributeUsage(usage)) { in checkAudioAttributeUsage() 456 throw new IllegalArgumentException("Invalid audio attribute " + usage); in checkAudioAttributeUsage() 465 public static boolean isValidAudioAttributeUsage(@AttributeUsage int usage) { in isValidAudioAttributeUsage() argument 466 switch (usage) { in isValidAudioAttributeUsage() 491 return usage == AudioManagerHelper.getUsageVirtualSource(); in isValidAudioAttributeUsage() 527 public static AudioAttributes getAudioAttributeFromUsage(@AttributeUsage int usage) { in getAudioAttributeFromUsage() argument 529 if (AudioAttributes.isSystemUsage(usage)) { in getAudioAttributeFromUsage() 530 builder.setSystemUsage(usage); in getAudioAttributeFromUsage() 532 builder.setUsage(usage); in getAudioAttributeFromUsage() [all …]
|
/packages/modules/Bluetooth/system/test/ |
D | run_benchmarks.sh | 15 usage() { function 38 usage 45 usage 55 usage
|
D | run_unit_tests.sh | 36 usage() { function 66 usage 73 usage 83 usage
|
/packages/services/Car/service/proto/android/car/watchdog/ |
D | atoms.proto | 95 // Threshold and usage stats period. 163 * Logs total I/O usage summary for all applications and services running in the system. 172 // I/O usage summary for the system. 181 * Logs I/O usage summary for an UID. 190 // UID of the application/service whose usage summary are recorded. 193 // I/O usage summary for the UID. 202 * Logs I/O usage summary for a time period. 214 // Daily I/O usage summary for the period. Logs summary entries only for days with I/O usage. 244 * Logs daily I/O usage summary.
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | dbregtest.cpp | 46 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/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/ |
D | CustomInputEventListenerTest.java | 216 private void doTestIncreaseVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestIncreaseVolumeAndAssert() argument 218 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseVolumeAndAssert() 250 private void doTestIncreaseMaxVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestIncreaseMaxVolumeAndAssert() argument 252 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseMaxVolumeAndAssert() 280 private void doTestDecreaseVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestDecreaseVolumeAndAssert() argument 282 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseVolumeAndAssert() 314 private void doTestDecreaseMinVolumeAndAssert(@AttributeUsage int usage, int inputCode) { in doTestDecreaseMinVolumeAndAssert() argument 316 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseMinVolumeAndAssert()
|