Home
last modified time | relevance | path

Searched refs:foreground (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java72 public final IoStatsEntry.Metrics foreground; field in IoStatsEntry
80 long runtimeMillis, IoStatsEntry.Metrics foreground, IoStatsEntry.Metrics background) { in IoStatsEntry() argument
83 this.foreground = Objects.requireNonNull(foreground); in IoStatsEntry()
90 foreground = in.readParcelable(IoStatsEntry.Metrics.class.getClassLoader()); in IoStatsEntry()
97 foreground = new IoStatsEntry.Metrics(record.foreground_rchar, in IoStatsEntry()
118 dest.writeParcelable(foreground, flags); in writeToParcel()
129 jsonWriter.name("foreground"); foreground.writeToJson(jsonWriter); in writeToJson()
140 foreground = new IoStatsEntry.Metrics(in.getJSONObject("foreground")); in IoStatsEntry()
159 foreground.delta(other.foreground), background.delta(other.background)); in delta()
169 && foreground.equals(uidIoStatEntry.foreground) in equals()
[all …]
DIoStats.java143 bytesRead += stats.foreground.bytesRead; in getForegroundTotals()
144 bytesWritten += stats.foreground.bytesWritten; in getForegroundTotals()
145 bytesReadFromStorage += stats.foreground.bytesReadFromStorage; in getForegroundTotals()
146 bytesWrittenToStorage += stats.foreground.bytesWrittenToStorage; in getForegroundTotals()
147 fsyncCalls += stats.foreground.fsyncCalls; in getForegroundTotals()
188 IoStatsEntry.Metrics foreground = getForegroundTotals(); in getTotals() local
191 return new IoStatsEntry.Metrics(foreground.bytesRead + background.bytesRead, in getTotals()
192 foreground.bytesWritten + background.bytesWritten, in getTotals()
193 foreground.bytesReadFromStorage + background.bytesReadFromStorage, in getTotals()
194 foreground.bytesWrittenToStorage + background.bytesWrittenToStorage, in getTotals()
[all …]
DUidIoRecord.java75 foreground_rchar - other.foreground.bytesRead, in delta()
76 foreground_wchar - other.foreground.bytesWritten, in delta()
77 foreground_read_bytes - other.foreground.bytesReadFromStorage, in delta()
78 foreground_write_bytes - other.foreground.bytesWrittenToStorage, in delta()
79 foreground_fsync - other.foreground.fsyncCalls, in delta()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt229 askOneTimeState.isShown = group.foreground.isGranted && group.isOneTime in <lambda>()
231 !(group.foreground.isGranted && group.isOneTime) in <lambda>()
242 group.foreground.isGranted in <lambda>()
243 allowedForegroundState.isChecked = group.foreground.isGranted && in <lambda>()
245 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
246 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
248 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
249 if (applyFixToForegroundBackground(group, group.foreground.isSystemFixed, in <lambda>()
253 applyFixToForegroundBackground(group, group.foreground.isPolicyFixed, in <lambda>()
271 allowedState.isChecked = group.foreground.isGranted in <lambda>()
[all …]
DGrantPermissionsViewModel.kt379 if (!groupState.group.foreground.isGranted) { in <lambda>()
610 group.foreground in <lambda>()
650 if (isBackground && !group.foreground.isGranted && !hasForegroundRequest) { in <lambda>()
662 !isBackground && group.foreground.isGranted) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightAppPermGroup.kt82 val foreground = AppPermSubGroup(permissions.filter { it.key in foregroundPermNames }, in <lambda>() constant
101 val isPolicyFullyFixed = foreground.isPolicyFixed && (!hasBackgroundGroup || in <lambda>()
112 val isForegroundFixed = foreground.isPolicyFixed || foreground.isSystemFixed in <lambda>()
132 val isGrantedByDefault = foreground.isGrantedByDefault || background.isGrantedByDefault in <lambda>()
137 val isGrantedByRole = foreground.isGrantedByRole || background.isGrantedByRole in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DTopLevelIcon.java53 public TopLevelIcon(Context context, Drawable foreground) { in TopLevelIcon() argument
54 this(context, foreground, R.dimen.top_level_foreground_icon_inset); in TopLevelIcon()
57 public TopLevelIcon(Context context, Drawable foreground, int insetResId) { in TopLevelIcon() argument
60 foreground in TopLevelIcon()
65 mAdaptiveConstantState = new AdaptiveConstantState(context, foreground); in TopLevelIcon()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java372 assertThat(entry.foreground.bytesRead).isEqualTo(256797495); in testUidIoStatEntry()
373 assertThat(entry.foreground.bytesWritten).isEqualTo(181736102); in testUidIoStatEntry()
374 assertThat(entry.foreground.bytesReadFromStorage).isEqualTo(362132480); in testUidIoStatEntry()
375 assertThat(entry.foreground.bytesWrittenToStorage).isEqualTo(947167232); in testUidIoStatEntry()
376 assertThat(entry.foreground.fsyncCalls).isEqualTo(250); in testUidIoStatEntry()
387 assertThat(entry.foreground.bytesRead).isEqualTo(489007); in testUidIoStatEntry()
388 assertThat(entry.foreground.bytesWritten).isEqualTo(196802); in testUidIoStatEntry()
389 assertThat(entry.foreground.bytesReadFromStorage).isEqualTo(0); in testUidIoStatEntry()
390 assertThat(entry.foreground.bytesWrittenToStorage).isEqualTo(20480); in testUidIoStatEntry()
391 assertThat(entry.foreground.fsyncCalls).isEqualTo(1); in testUidIoStatEntry()
[all …]
DIoStatsTrackerTest.java103 assertEquals(10, sample0.foreground.bytesRead); in testUserMetricsChange()
104 assertEquals(10, sample0.foreground.bytesWritten); in testUserMetricsChange()
133 assertEquals(0, sample0.foreground.bytesRead); in testUpdateNoIoProcessActive()
186 assertEquals(10, sample0.foreground.bytesRead); in testUpdateIoHappens()
242 assertEquals(1, sample0.foreground.fsyncCalls); in testUpdateGoAwayComeBackIo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoPermissionAppsFragment.java156 PreferenceGroup foreground = new PreferenceCategory(getContext()); in bindUi() local
157 foreground.setKey(KEY_ALLOWED_FOREGROUND_PERMISSIONS_GROUP); in bindUi()
158 foreground.setTitle(R.string.allowed_foreground_header); in bindUi()
159 foreground.setVisible(false); in bindUi()
160 getPreferenceScreen().addPreference(foreground); in bindUi()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java76 final long bytesWrittenToStorage = uidIoStats.foreground.bytesWrittenToStorage +
78 final long fsyncCalls = uidIoStats.foreground.fsyncCalls +
92 .mapToLong(stats -> stats.foreground.bytesWrittenToStorage +
96 .mapToLong(stats -> stats.foreground.fsyncCalls +
/packages/apps/Settings/src/com/android/settings/accessibility/
DColorPreference.java126 final Drawable foreground = swatch.getDrawable(); in onBindListItem() local
127 if (foreground instanceof ColorDrawable) { in onBindListItem()
128 ((ColorDrawable) foreground).setColor(argb); in onBindListItem()
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java341 nonForeground.foreground = false; in testAppActivityChecks()
346 ActivityManager.RunningServiceInfo foreground = new ActivityManager.RunningServiceInfo(); in testAppActivityChecks() local
347 foreground.foreground = true; in testAppActivityChecks()
348 runningServicesList.add(foreground); in testAppActivityChecks()
408 service.foreground = true; in testLongAppBlockingReported()
538 service.foreground = true; in testAppActivityShellCommand()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java484 Drawable foreground = shapeDrawable.getConstantState().newDrawable(); in ShapeOption() local
485 mShape = new LayerDrawable(new Drawable[]{background, foreground}); in ShapeOption()
500 ShapeDrawable foreground = (ShapeDrawable) mShape.getDrawable(1); in bindThumbnailTile() local
502 foreground.setIntrinsicHeight(background.getIntrinsicHeight() - borderWidth); in bindThumbnailTile()
503 foreground.setIntrinsicWidth(background.getIntrinsicWidth() - borderWidth); in bindThumbnailTile()
511 foreground.setTint(ColorUtils.blendARGB(primaryColor, foregroundColor, .05f)); in bindThumbnailTile()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java283 Drawable foreground = adaptiveIcon.getForeground(); in setIcon() local
284 if (foreground == null) { in setIcon()
285 foreground = new ColorDrawable(Color.TRANSPARENT); in setIcon()
287 mForeground = foreground; in setIcon()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java141 ShiftedBitmapDrawable foreground = new ShiftedBitmapDrawable(previewBitmap, 0, 0); in createDrawableOnUiThread() local
144 return new FolderAdaptiveIcon(background, foreground, badge, mask); in createDrawableOnUiThread()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java151 void setForegroundMode(boolean foreground) { in setForegroundMode() argument
153 Settings.Secure.NFC_PAYMENT_FOREGROUND, foreground ? 1 : 0); in setForegroundMode()
/packages/services/Car/tools/ioanalyze/
Danalyzer.py121 def plot(self, foreground=True, background=True, total=True): argument
127 if foreground:
/packages/services/Car/tests/SampleCustomInputService/
Dreadme.md15 adb shell am start-foreground-service com.android.car.custominput.sample/.SampleCustomInputService
/packages/services/Car/tests/BugReportApp/
DREADME.md61 2. `adb shell am start-foreground-service -a com.android.car.bugreport.action.START_SILENT com.andr…
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeController.kt421 if (appPermGroup.foreground.isGranted && in <lambda>()
/packages/modules/Scheduling/service/java/com/android/server/scheduling/
DRebootReadinessManagerService.java469 if (info.foreground) { in checkBackgroundAppActivity()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java340 if (serviceName.equals(service.service.getClassName()) && service.foreground) { in checkIfServiceRunning()
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt498 Missing nullability on parameter `foreground` in method `IoStatsEntry`
503 MissingNullability: android.car.storagemonitoring.IoStatsEntry#foreground:
504 …Missing nullability on field `foreground` in class `class android.car.storagemonitoring.IoStatsEnt…
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java955 if (si.foreground) { in update()

12