/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | WearUtils.kt | 39 fun getPreferenceSummary(context: Context, lastAccessTime: Long?): String { in getPreferenceSummary() 40 val summaryTimestamp = getPermissionLastAccessSummaryTimestamp(lastAccessTime, context) in getPreferenceSummary() 59 lastAccessTime: Long?, in getPermissionLastAccessSummaryTimestamp() 66 val isLastAccessToday = (lastAccessTime != null && midnightToday <= lastAccessTime) in getPermissionLastAccessSummaryTimestamp() 68 (lastAccessTime != null && midnightYesterday <= lastAccessTime) in getPermissionLastAccessSummaryTimestamp() 72 if (lastAccessTime != null) { in getPermissionLastAccessSummaryTimestamp() 73 lastAccessTimeFormatted = DateFormat.getTimeFormat(context).format(lastAccessTime) in getPermissionLastAccessSummaryTimestamp() 74 lastAccessDateFormatted = DateFormat.getDateFormat(context).format(lastAccessTime) in getPermissionLastAccessSummaryTimestamp()
|
D | WearPermissionAppsHelper.kt | 125 val lastAccessTime = groupUsageLastAccessTime[(p.second.toString() + p.first)] in <lambda>() constant 133 lastAccessTime in <lambda>() 150 lastAccessTime: Long? in <lambda>() 164 lastAccessTime?.let { WearUtils.getPreferenceSummary(application, lastAccessTime) } in <lambda>()
|
D | WearAppPermissionGroupsHelper.kt | 141 lastAccessTime: Long? in <lambda>() 147 WearUtils.getPreferenceSummary(context, lastAccessTime).let { in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | OpUsageLiveData.kt | 68 val lastAccessTime: Long = in loadDataAndPostValue() constant 71 if (lastAccessTime == -1L) { in loadDataAndPostValue() 85 lastAccessTime + lastAccessDuration > (now - usageDurationMs) in loadDataAndPostValue() 92 lastAccessTime in loadDataAndPostValue() 120 "$lastAccessTime, isRunning: ${attributedOpEntry.isRunning} " + in loadDataAndPostValue() 129 "$lastAccessTime, isRunning: ${attributedOpEntry.isRunning} " + in loadDataAndPostValue() 183 val lastAccessTime: Long, constant in com.android.permissioncontroller.permission.data.OpAccess 186 val isRunning = lastAccessTime == IS_RUNNING 192 parcel.writeLong(lastAccessTime) in writeToParcel() 213 val lastAccessTime = parcel.readLong() in createFromParcel() constant [all …]
|
D | PermGroupUsageLiveData.kt | 82 lastAccess[key]?.lastAccessTime ?: 0 < access.lastAccessTime in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ReviewAccessibilityServicesActivity.java | 85 long lastAccessTime = getLastAccessTime(appInfo, appOpsManager); in createDialogView() local 99 if (lastAccessTime != 0) { in createDialogView() 102 Utils.getAbsoluteTimeString(this, lastAccessTime))); in createDialogView() 122 if (lastAccessTime == 0) { in createDialogView() 127 Utils.getAbsoluteTimeString(this, lastAccessTime))); in createDialogView() 157 long lastAccessTime = 0; in getLastAccessTime() local 164 lastAccessTime = Math.max(lastAccessTime, in getLastAccessTime() 168 return lastAccessTime; in getLastAccessTime()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | DashboardUtils.kt | 54 fun getAbsoluteTimeString(context: Context, lastAccessTime: Long): String? { in getAbsoluteTimeString() 55 if (lastAccessTime == 0L) { in getAbsoluteTimeString() 58 return if (isToday(lastAccessTime)) { in getAbsoluteTimeString() 59 getTimeFormat(context).format(lastAccessTime) in getAbsoluteTimeString() 61 getMediumDateFormat(context).format(lastAccessTime) in getAbsoluteTimeString() 78 } else getAbsoluteTimeString(context, groupUsage.lastAccessTime) in getAbsoluteLastUsageString()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/legacy/ |
D | PermissionUsageViewModelLegacy.kt | 150 .filter { it.lastAccessTime >= startTime } in <lambda>() 174 .any { it.lastAccessTime >= startTime || it.lastAccessTime == 0L } in <lambda>() 189 .filter { it.lastAccessTime > startTime && it.lastAccessTime > 0L } in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | AppPermissionGroupsViewModel.kt | 419 var lastAccessTime = groupUsage.lastAccessTime in <lambda>() variable 421 if (lastAccessTime == 0L || lastAccessTime < filterTimeBeginMillis) { in <lambda>() 428 lastAccessTime = in <lambda>() 431 lastAccessTime in <lambda>() 433 accessTime[groupName] = lastAccessTime in <lambda>() 441 lastAccessTime: Long? in <lambda>() 445 lastAccessTime, in <lambda>()
|
D | PermissionAppsViewModel.kt | 381 val lastAccessTime = groupUsage.lastAccessTime in <lambda>() constant 382 if (lastAccessTime == 0L || lastAccessTime < filterTimeBeginMillis) { in <lambda>() 386 accessTime[key] = lastAccessTime in <lambda>()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 83 String lastAccessTime; field in GlobalSearchSupport.SearchSuggestion 110 list.add(lastAccessTime); // last access hint in asList() 139 list.add(lastAccessTime); in addColumnValue() 161 lastAccessTime = null; in reset() 264 suggestion.lastAccessTime = c.getString(5); in addSearchSuggestionsBasedOnFilter()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadEntry.java | 49 public long lastAccessTime; field in DownloadEntry 67 .append("last_access").append(lastAccessTime).append(", ") in toString()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | Utils.java | 925 long lastAccessTime) { in getAbsoluteTimeString() argument 926 if (lastAccessTime == 0) { in getAbsoluteTimeString() 929 if (isToday(lastAccessTime)) { in getAbsoluteTimeString() 930 return DateFormat.getTimeFormat(context).format(lastAccessTime); in getAbsoluteTimeString() 932 return DateFormat.getMediumDateFormat(context).format(lastAccessTime); in getAbsoluteTimeString() 1418 Long lastAccessTime, Context context, String groupName) { in getPermissionLastAccessSummaryTimestamp() argument 1425 boolean isLastAccessToday = lastAccessTime != null in getPermissionLastAccessSummaryTimestamp() 1426 && midnightToday <= lastAccessTime; in getPermissionLastAccessSummaryTimestamp() 1427 boolean isLastAccessWithinPast24h = lastAccessTime != null in getPermissionLastAccessSummaryTimestamp() 1428 && yesterdayAtThisTime <= lastAccessTime; in getPermissionLastAccessSummaryTimestamp() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v31/ |
D | AppPermissionUsage.java | 119 long lastAccessTime = 0; in getLastAccessTime() local 123 lastAccessTime = Math.max(lastAccessTime, groupUsage.getLastAccessTime()); in getLastAccessTime() 125 return lastAccessTime; in getLastAccessTime()
|
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/ |
D | UtilsTest.kt | 80 val lastAccessTime = 1680739840723L in getAbsoluteTimeString_previousDateTime_returnsDateFormatString() constant 81 val time = Utils.getAbsoluteTimeString(context, lastAccessTime) in getAbsoluteTimeString_previousDateTime_returnsDateFormatString()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoPermissionAppsFragment.java | 247 Long lastAccessTime = groupUsageLastAccessTime.get(key); in onPackagesLoaded() local 250 lastAccessTime, context, mPermGroupName); in onPackagesLoaded()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | PermissionAppsFragment.java | 451 Long lastAccessTime = groupUsageLastAccessTime.get(key); in onPackagesLoaded() local 454 lastAccessTime, context, mPermGroupName); in onPackagesLoaded()
|