Searched refs:shouldEnableBTScanning (Results 1 – 5 of 5) sorted by relevance
68 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, settingsPackage)) in isSystemCallingPackage_shouldEnableBluetoothScanning()70 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, SYSTEM_UI_PACKAGE_NAME)) in isSystemCallingPackage_shouldEnableBluetoothScanning()76 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, ALLOWED_PACKAGE_NAME)) in isAllowedCallingPackage_shouldEnableBluetoothScanning()82 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, DISALLOWED_PACKAGE_NAME)) in isNotAllowedCallingPackage_shouldNotEnableBluetoothScanning()
129 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(true); in setUp()268 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(false); in refreshUi_notValidCallingPackage_doesNotSetScanMode()
141 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(true); in setUp()
137 if (BluetoothUtils.shouldEnableBTScanning(getContext(), mCallingAppPackageName)) { in enableScanning()
199 public static boolean shouldEnableBTScanning(Context context, String callingPackageName) { in shouldEnableBTScanning() method in BluetoothUtils