Home
last modified time | relevance | path

Searched refs:shouldEnableBTScanning (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothUtilsTest.java68 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()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java129 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(true); in setUp()
268 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(false); in refreshUi_notValidCallingPackage_doesNotSetScanMode()
DBluetoothDevicePickerPreferenceControllerTest.java141 when(BluetoothUtils.shouldEnableBTScanning(eq(mContext), any())).thenReturn(true); in setUp()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceController.java137 if (BluetoothUtils.shouldEnableBTScanning(getContext(), mCallingAppPackageName)) { in enableScanning()
DBluetoothUtils.java199 public static boolean shouldEnableBTScanning(Context context, String callingPackageName) { in shouldEnableBTScanning() method in BluetoothUtils