Searched refs:ForegroundUtils (Results 1 – 12 of 12) sorted by relevance
48 private ForegroundUtils mForegroundUtils;68 () -> mForegroundUtils = new ForegroundUtils(mActivityManager)); in setUp()81 ForegroundUtils.Callback callback = uid -> { in testRegisterUidToBackgroundCallback()128 ForegroundUtils.Callback callback = uid -> { in testOnUidImportanceBackground()133 SparseArray<List<ForegroundUtils.Callback>> in testOnUidImportanceBackground()135 List<ForegroundUtils.Callback> callbacks = backGroundCallbacks.get(0); in testOnUidImportanceBackground()
59 private ForegroundUtils mForegroundUtils;68 .mockStatic(ForegroundUtils.class) in setUp()84 mForegroundUtils = mock(ForegroundUtils.class); in setUp()85 when(ForegroundUtils.getInstance( in setUp()
28 public class ForegroundUtils implements ActivityManager.OnUidImportanceListener { class45 private static ForegroundUtils sInstance = null;49 public ForegroundUtils(ActivityManager am) { in ForegroundUtils() method in ForegroundUtils70 public static ForegroundUtils getInstance(ActivityManager am) { in getInstance()72 Singleton.sInstance = new ForegroundUtils(am); in getInstance()
77 private final ForegroundUtils mForegroundUtils;104 ForegroundUtils.getInstance(mContext.getSystemService(ActivityManager.class)); in NfcInjector()174 public ForegroundUtils getForegroundUtils() { in getForegroundUtils()
111 private ForegroundUtils mForegroundUtils;128 mForegroundUtils = ForegroundUtils.getInstance( in NfcDispatcher()177 final ForegroundUtils.Callback mForegroundCallback = new ForegroundCallbackImpl();179 class ForegroundCallbackImpl implements ForegroundUtils.Callback {
147 public class NfcService implements DeviceHostListener, ForegroundUtils.Callback {446 private ForegroundUtils mForegroundUtils;
30 import com.android.nfc.ForegroundUtils;36 public class EnabledNfcFServices implements com.android.nfc.ForegroundUtils.Callback {44 final ForegroundUtils mForegroundUtils;68 mForegroundUtils = ForegroundUtils.getInstance( in EnabledNfcFServices()
41 import com.android.nfc.ForegroundUtils;65 public class PreferredServices implements com.android.nfc.ForegroundUtils.Callback {79 final ForegroundUtils mForegroundUtils;123 mForegroundUtils = ForegroundUtils.getInstance( in PreferredServices()
51 import com.android.nfc.ForegroundUtils;119 final ForegroundUtils mForegroundUtils;131 mForegroundUtils = ForegroundUtils.getInstance( in CardEmulationManager()155 ForegroundUtils foregroundUtils, in CardEmulationManager()900 final ForegroundUtils.Callback mForegroundCallback = new ForegroundCallbackImpl();902 class ForegroundCallbackImpl implements ForegroundUtils.Callback {
53 import com.android.nfc.ForegroundUtils;350 ForegroundUtils foregroundUtils = ForegroundUtils.getInstance(am); in arePackagesInForeground()
49 import com.android.nfc.ForegroundUtils;83 private ForegroundUtils mForegroundUtils;116 .mockStatic(ForegroundUtils.class) in setUp()147 when(ForegroundUtils.getInstance(any(ActivityManager.class))).thenReturn(mForegroundUtils); in setUp()
50 import com.android.nfc.ForegroundUtils;95 private ForegroundUtils mForegroundUtils;