Home
last modified time | relevance | path

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

123

/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java80 public final IoStatsEntry.Metrics foreground; field in IoStatsEntry
88 long runtimeMillis, IoStatsEntry.Metrics foreground, IoStatsEntry.Metrics background) { in IoStatsEntry() argument
91 this.foreground = Objects.requireNonNull(foreground); in IoStatsEntry()
98 foreground = in.readParcelable(IoStatsEntry.Metrics.class.getClassLoader()); in IoStatsEntry()
105 foreground = new IoStatsEntry.Metrics(record.foreground_rchar, in IoStatsEntry()
127 dest.writeParcelable(foreground, flags); in writeToParcel()
138 jsonWriter.name("foreground"); foreground.writeToJson(jsonWriter); in writeToJson()
149 foreground = new IoStatsEntry.Metrics(in.getJSONObject("foreground")); in IoStatsEntry()
168 foreground.delta(other.foreground), background.delta(other.background)); in delta()
178 && foreground.equals(uidIoStatEntry.foreground) in equals()
[all …]
DIoStats.java152 bytesRead += stats.foreground.bytesRead; in getForegroundTotals()
153 bytesWritten += stats.foreground.bytesWritten; in getForegroundTotals()
154 bytesReadFromStorage += stats.foreground.bytesReadFromStorage; in getForegroundTotals()
155 bytesWrittenToStorage += stats.foreground.bytesWrittenToStorage; in getForegroundTotals()
156 fsyncCalls += stats.foreground.fsyncCalls; in getForegroundTotals()
197 IoStatsEntry.Metrics foreground = getForegroundTotals(); in getTotals() local
200 return new IoStatsEntry.Metrics(foreground.bytesRead + background.bytesRead, in getTotals()
201 foreground.bytesWritten + background.bytesWritten, in getTotals()
202 foreground.bytesReadFromStorage + background.bytesReadFromStorage, in getTotals()
203 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/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DPreviewActionGroup.kt121 informationButton.foreground = null in updateBackgroundColor()
122 downloadButtonToggle.foreground = null in updateBackgroundColor()
124 deleteButton.foreground = null in updateBackgroundColor()
125 editButton.foreground = null in updateBackgroundColor()
126 customizeButton.foreground = null in updateBackgroundColor()
127 effectsButton.foreground = null in updateBackgroundColor()
128 shareButton.foreground = null in updateBackgroundColor()
129 informationButton.foreground = in updateBackgroundColor()
131 downloadButtonToggle.foreground = in updateBackgroundColor()
138 deleteButton.foreground = in updateBackgroundColor()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightAppPermGroup.kt86 val foreground = in <lambda>() constant
114 foreground.isPolicyFixed && (!hasBackgroundGroup || background.isPolicyFixed) in <lambda>()
124 val isForegroundFixed = foreground.isPolicyFixed || foreground.isSystemFixed in <lambda>()
143 val isGrantedByDefault = foreground.isGrantedByDefault || background.isGrantedByDefault in <lambda>()
146 val isGrantedByRole = foreground.isGrantedByRole || background.isGrantedByRole in <lambda>()
149 val isSystemFixed = foreground.isSystemFixed || background.isSystemFixed in <lambda>()
152 val isReviewRequired = foreground.isReviewRequired || background.isReviewRequired in <lambda>()
155 var isGranted = foreground.isGranted || background.isGranted in <lambda>()
164 val isUserFixed = foreground.isUserFixed || background.isUserFixed in <lambda>()
167 val isUserSet = foreground.isUserSet || background.isUserSet in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt499 askOneTimeState.isShown = group.foreground.isGranted && group.isOneTime in <lambda>()
502 !(group.foreground.isGranted && group.isOneTime) in <lambda>()
514 group.foreground.isGranted && in <lambda>()
517 group.foreground.isGranted && in <lambda>()
519 !group.foreground.isOneTime in <lambda>()
520 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
521 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
523 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
527 group.foreground.isSystemFixed, in <lambda>()
537 group.foreground.isPolicyFixed, in <lambda>()
[all …]
DReviewPermissionsViewModel.kt96 if (!(group.foreground.isGrantable || group.background.isGrantable)) { in <lambda>()
259 } else if (permGroup.foreground.isPolicyFixed) { in <lambda>()
277 return mGroup.foreground.isPolicyFixed && !mGroup.isGranted 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/grantPermissions/
DBackgroundGrantBehavior.kt60 val isFgGranted = group.foreground.allowFullGroupGrant in <lambda>()
61 val isFgOneTime = group.foreground.isOneTime in <lambda>()
175 group.foreground.allowFullGroupGrant in <lambda>()
182 return group.foreground.allowFullGroupGrant in <lambda>()
189 return group.foreground.isUserFixed in <lambda>()
DLocationGrantBehavior.kt89 return group.foreground.allowFullGroupGrant in isForegroundFullyGranted()
100 return group.foreground.isUserFixed && group.permissions[perm]?.isUserFixed == true in isPermissionFixed()
DGrantBehavior.kt61 return group.foreground.allowFullGroupGrant in getPrompt()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java373 assertThat(entry.foreground.bytesRead).isEqualTo(256797495); in testUidIoStatEntry()
374 assertThat(entry.foreground.bytesWritten).isEqualTo(181736102); in testUidIoStatEntry()
375 assertThat(entry.foreground.bytesReadFromStorage).isEqualTo(362132480); in testUidIoStatEntry()
376 assertThat(entry.foreground.bytesWrittenToStorage).isEqualTo(947167232); in testUidIoStatEntry()
377 assertThat(entry.foreground.fsyncCalls).isEqualTo(250); in testUidIoStatEntry()
388 assertThat(entry.foreground.bytesRead).isEqualTo(489007); in testUidIoStatEntry()
389 assertThat(entry.foreground.bytesWritten).isEqualTo(196802); in testUidIoStatEntry()
390 assertThat(entry.foreground.bytesReadFromStorage).isEqualTo(0); in testUidIoStatEntry()
391 assertThat(entry.foreground.bytesWrittenToStorage).isEqualTo(20480); in testUidIoStatEntry()
392 assertThat(entry.foreground.fsyncCalls).isEqualTo(1); in testUidIoStatEntry()
[all …]
DIoStatsTrackerTest.java105 assertEquals(10, sample0.foreground.bytesRead); in testUserMetricsChange()
106 assertEquals(10, sample0.foreground.bytesWritten); in testUserMetricsChange()
135 assertEquals(0, sample0.foreground.bytesRead); in testUpdateNoIoProcessActive()
188 assertEquals(10, sample0.foreground.bytesRead); in testUpdateIoHappens()
244 assertEquals(1, sample0.foreground.fsyncCalls); in testUpdateGoAwayComeBackIo()
/packages/services/Car/tools/cpu_perf/
Dpixel6.config19 cpuset:foreground=0-5
34 cpuset:foreground=0,1,4,5,6
39 cpuset:foreground=0,1,2,3,6
D8155.config20 cpuset:foreground=0-7
32 cpuset:foreground=0,1,4,5,6
38 cpuset:foreground=0,1,2,3,6
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DClockDrawableWrapper.java175 LayerDrawable foreground = (LayerDrawable) wrapper.getForeground(); in forExtras() local
176 int layerCount = foreground.getNumberOfLayers(); in forExtras()
186 foreground.setDrawable(info.secondLayerIndex, null); in forExtras()
189 info.applyTime(Calendar.getInstance(), foreground); in forExtras() local
208 LayerDrawable foreground = (LayerDrawable) getForeground(); in drawForPersistence() local
209 resetLevel(foreground, mAnimationInfo.hourLayerIndex); in drawForPersistence()
210 resetLevel(foreground, mAnimationInfo.minuteLayerIndex); in drawForPersistence()
211 resetLevel(foreground, mAnimationInfo.secondLayerIndex); in drawForPersistence()
/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/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java91 Picture foreground = new Picture(); in createFolderAdaptiveIcon() local
97 Canvas fgCanvas = foreground.beginRecording(foregroundSize, foregroundSize); in createFolderAdaptiveIcon()
120 foreground.endRecording(); in createFolderAdaptiveIcon()
126 Bitmap fgBitmap = Bitmap.createBitmap(foreground); in createFolderAdaptiveIcon()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/ui/
DCardContent.java51 public CardBackgroundImage(Drawable foreground, Drawable background) { in CardBackgroundImage() argument
52 mForeground = foreground; in CardBackgroundImage()
/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/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java342 nonForeground.foreground = false; in testAppActivityChecks()
347 ActivityManager.RunningServiceInfo foreground = new ActivityManager.RunningServiceInfo(); in testAppActivityChecks() local
348 foreground.foreground = true; in testAppActivityChecks()
349 runningServicesList.add(foreground); in testAppActivityChecks()
409 service.foreground = true; in testLongAppBlockingReported()
539 service.foreground = true; in testAppActivityShellCommand()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/
DOutputDevicesFragment.java148 Drawable foreground = FadingEdgeUtil.getForegroundDrawable( in onCreateView()
150 if (foreground != recyclerView.getForeground()) { in onCreateView()
151 recyclerView.setForeground(foreground); in onCreateView()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java246 Drawable foreground = adaptiveIcon.getForeground(); in setIcon() local
247 if (foreground == null) { in setIcon()
248 foreground = new ColorDrawable(Color.TRANSPARENT); in setIcon()
250 mForeground = foreground; in setIcon()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.kt95 if (drawable.foreground != null) { in drawAdaptiveIcon()
96 drawable.foreground.draw(canvas) in drawAdaptiveIcon()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DIconUtil.java229 Drawable foreground = mutateDrawable(res, icon); in composeIcons() local
230 foreground.setTintList(iconColor); in composeIcons()
232 LayerDrawable layerDrawable = new LayerDrawable(new Drawable[] { background, foreground }); in composeIcons()

123