Home
last modified time | relevance | path

Searched refs:foreground (Results 1 – 25 of 51) 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.kt107 informationButton.foreground = null in updateBackgroundColor()
108 downloadButtonToggle.foreground = null in updateBackgroundColor()
110 deleteButton.foreground = null in updateBackgroundColor()
111 editButton.foreground = null in updateBackgroundColor()
112 customizeButton.foreground = null in updateBackgroundColor()
113 effectsButton.foreground = null in updateBackgroundColor()
114 shareButton.foreground = null in updateBackgroundColor()
115 informationButton.foreground = in updateBackgroundColor()
117 downloadButtonToggle.foreground = in updateBackgroundColor()
124 deleteButton.foreground = in updateBackgroundColor()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightAppPermGroup.kt78 val foreground = in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup
102 foreground.isPolicyFixed && (!hasBackgroundGroup || background.isPolicyFixed) in <lambda>()
112 val isForegroundFixed = foreground.isPolicyFixed || foreground.isSystemFixed in <lambda>()
131 val isGrantedByDefault = foreground.isGrantedByDefault || background.isGrantedByDefault in <lambda>()
134 val isGrantedByRole = foreground.isGrantedByRole || background.isGrantedByRole in <lambda>()
137 val isSystemFixed = foreground.isSystemFixed || background.isSystemFixed in <lambda>()
140 val isReviewRequired = foreground.isReviewRequired || background.isReviewRequired in <lambda>()
143 var isGranted = foreground.isGranted || background.isGranted in <lambda>()
152 val isUserFixed = foreground.isUserFixed || background.isUserFixed in <lambda>()
155 val isUserSet = foreground.isUserSet || background.isUserSet in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt497 askOneTimeState.isShown = group.foreground.isGranted && group.isOneTime in <lambda>()
500 !(group.foreground.isGranted && group.isOneTime) in <lambda>()
512 group.foreground.isGranted && in <lambda>()
515 group.foreground.isGranted && in <lambda>()
517 !group.foreground.isOneTime in <lambda>()
518 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
519 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
521 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
525 group.foreground.isSystemFixed, in <lambda>()
535 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.isGrantedExcludingRWROrAllRWR in <lambda>()
61 val isFgOneTime = group.foreground.isOneTime in <lambda>()
176 group.foreground.isGrantedExcludingRWROrAllRWR in <lambda>()
183 return group.foreground.isGrantedExcludingRWROrAllRWR in <lambda>()
190 return group.foreground.isUserFixed in <lambda>()
DLocationGrantBehavior.kt90 return group.foreground.isGrantedExcludingRWROrAllRWR in isForegroundFullyGranted()
101 return group.foreground.isUserFixed && group.permissions[perm]?.isUserFixed == true in isPermissionFixed()
DGrantBehavior.kt61 return group.foreground.isGrantedExcludingRWROrAllRWR in getPrompt()
/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/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/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/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/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.java92 Picture foreground = new Picture(); in createFolderAdaptiveIcon() local
98 Canvas fgCanvas = foreground.beginRecording(foregroundSize, foregroundSize); in createFolderAdaptiveIcon()
121 foreground.endRecording(); in createFolderAdaptiveIcon()
127 Bitmap fgBitmap = Bitmap.createBitmap(foreground); in createFolderAdaptiveIcon()
/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.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/Launcher3/src/com/android/launcher3/views/
DClipIconView.java240 Drawable foreground = adaptiveIcon.getForeground(); in setIcon() local
241 if (foreground == null) { in setIcon()
242 foreground = new ColorDrawable(Color.TRANSPARENT); in setIcon()
244 mForeground = foreground; in setIcon()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java180 void setForegroundMode(boolean foreground) { in setForegroundMode() argument
187 Settings.Secure.NFC_PAYMENT_FOREGROUND, foreground ? 1 : 0, uh.getIdentifier()); in setForegroundMode()
/packages/services/Car/tests/SampleVoiceAssistInputService/
Dreadme.md15 adb shell am start-foreground-service com.android.car.voiceassistinput.sample/.SampleVoiceAssistInp…
/packages/services/Car/tools/ioanalyze/
Danalyzer.py121 def plot(self, foreground=True, background=True, total=True): argument
127 if foreground:

123