Update SystemUIShared

This commit is contained in:
Suphon Thanakornpakapong committed 2021-10-07 08:38:54 +07:00
1 parent 3332a4e3ec
commit d1c4e1aaa9
51 files changed
+2299 -1319

No files matched your search

@@ -24,11 +24,18 @@ import com.android.internal.util.LatencyTracker;
* @see LatencyTracker
*/
public class LatencyTrackerCompat {
public static boolean isEnabled(Context context) {
return LatencyTracker.isEnabled(context);
/**
* @see LatencyTracker
* @deprecated Please use {@link LatencyTrackerCompat#logToggleRecents(Context, int)} instead.
*/
@Deprecated
public static void logToggleRecents(int duration) {
LatencyTracker.logActionDeprecated(LatencyTracker.ACTION_TOGGLE_RECENTS, duration, false);
}
public static void logToggleRecents(int duration) {
LatencyTracker.logAction(LatencyTracker.ACTION_TOGGLE_RECENTS, duration);
/** @see LatencyTracker */
public static void logToggleRecents(Context context, int duration) {
LatencyTracker.getInstance(context).logAction(LatencyTracker.ACTION_TOGGLE_RECENTS,
duration);
}
}