Home
last modified time | relevance | path

Searched refs:ForegroundUtils (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DForegroundUtilsTest.java48 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()
DEnableNfcFServiceTest.java59 private ForegroundUtils mForegroundUtils;
68 .mockStatic(ForegroundUtils.class) in setUp()
84 mForegroundUtils = mock(ForegroundUtils.class); in setUp()
85 when(ForegroundUtils.getInstance( in setUp()
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java28 public class ForegroundUtils implements ActivityManager.OnUidImportanceListener { class
45 private static ForegroundUtils sInstance = null;
49 public ForegroundUtils(ActivityManager am) { in ForegroundUtils() method in ForegroundUtils
70 public static ForegroundUtils getInstance(ActivityManager am) { in getInstance()
72 Singleton.sInstance = new ForegroundUtils(am); in getInstance()
DNfcInjector.java77 private final ForegroundUtils mForegroundUtils;
104 ForegroundUtils.getInstance(mContext.getSystemService(ActivityManager.class)); in NfcInjector()
174 public ForegroundUtils getForegroundUtils() { in getForegroundUtils()
DNfcDispatcher.java111 private ForegroundUtils mForegroundUtils;
128 mForegroundUtils = ForegroundUtils.getInstance( in NfcDispatcher()
177 final ForegroundUtils.Callback mForegroundCallback = new ForegroundCallbackImpl();
179 class ForegroundCallbackImpl implements ForegroundUtils.Callback {
DNfcService.java147 public class NfcService implements DeviceHostListener, ForegroundUtils.Callback {
446 private ForegroundUtils mForegroundUtils;
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java30 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()
DPreferredServices.java41 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()
DCardEmulationManager.java51 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 {
DHostEmulationManager.java53 import com.android.nfc.ForegroundUtils;
350 ForegroundUtils foregroundUtils = ForegroundUtils.getInstance(am); in arePackagesInForeground()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java49 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()
DCardEmulationManagerTest.java50 import com.android.nfc.ForegroundUtils;
95 private ForegroundUtils mForegroundUtils;