Home
last modified time | relevance | path

Searched refs:FEATURE_BLUETOOTH (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
95 FEATURE_BLUETOOTH, /* supported= */ false); in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
103 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
113 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable()
123 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_available()
134 FEATURE_BLUETOOTH, /* supported= */ true); in onStart_registersEventListener()
145 FEATURE_BLUETOOTH, /* supported= */ true); in onStop_unregistersEventListener()
DPairNewDevicePreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
86 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
112 FEATURE_BLUETOOTH, /* supported= */ false); in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
120 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
130 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
140 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_available()
DBluetoothEntryPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
62 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_bluetoothAvailable_available()
70 FEATURE_BLUETOOTH, /* supported= */ true); in getAvailabilityStatus_bluetoothAvailable_disallowBluetooth_disabledForUser()
79 FEATURE_BLUETOOTH, /* supported= */ false); in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
DBluetoothDeviceAddressPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
61 FEATURE_BLUETOOTH, /* supported= */ true); in refreshUi_setsAddress()
DBluetoothNamePreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
72 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothDevicePreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
77 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothUnbondedDevicesPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
118 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothDeviceProfilesPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
77 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
102 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothRequestPermissionActivityTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
74 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothDevicesGroupPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
98 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
DBluetoothDevicePickerPreferenceControllerTest.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
109 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DConnectedDeviceGroupControllerTest.java91 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in setUp()
160 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_noBluetoothUsbDockFeature_returnUnSupported()
172 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in getAvailabilityStatus_BluetoothFeature_returnSupported()
184 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_haveUsbFeature_returnSupported()
196 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_haveDockFeature_returnSupported()
DAddDevicePreferenceControllerTest.java72 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in setUp()
121 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in addDevice_Availability_UnSupported()
128 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in addDevice_Availability_Supported()
135 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_noBluetoothFeature_unSupported()
DSavedDeviceGroupControllerTest.java98 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_noBluetoothDockFeature_returnUnSupported()
107 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_BluetoothFeature_returnSupported()
116 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_haveDockFeature_returnSupported()
DAvailableMediaDeviceGroupControllerTest.java99 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in setUp()
178 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_noBluetoothFeature_returnUnSupported()
186 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_BluetoothFeature_returnSupported()
DPreviouslyConnectedDevicePreferenceControllerTest.java177 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_noBluetoothDockFeature_returnUnSupported()
186 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_hasBluetoothFeature_returnSupported()
195 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_haveDockFeature_returnSupported()
DDiscoverableFooterPreferenceControllerTest.java92 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_noBluetoothFeature_returnUnSupported()
100 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_BluetoothFeature_returnAvailableUnsearchable()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DBluetoothMacAddressPreferenceControllerTest.java82 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in onCreate_setsAddress()
91 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice()
99 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DAudioOutputSwitchPreferenceControllerTest.java138 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in setUp()
187 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_disableFlagNoBluetoothFeature_returnUnavailable()
195 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in getAvailabilityStatus_disableFlagWithBluetoothFeature_returnUnavailable()
204 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, true); in getAvailabilityStatus_enableFlagWithBluetoothFeature_returnAvailable()
212 mPackageManager.setSystemFeature(PackageManager.FEATURE_BLUETOOTH, false); in getAvailabilityStatus_enableFlagNoBluetoothFeature_returnUnavailable()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothEntryPreferenceController.java19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH;
52 if (!getContext().getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH)) { in getAvailabilityStatus()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTheaterModeTest.java28 private static final String FEATURE_BLUETOOTH = "android.hardware.bluetooth"; field in TheaterModeTest
38 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
DAirplaneModeTest.java31 private static final String FEATURE_BLUETOOTH = "android.hardware.bluetooth"; field in AirplaneModeTest
41 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DBluetoothMacAddressPreferenceController.java57 if (!getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothFilesPreferenceController.java58 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in getAvailabilityStatus()

12