/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothPreferenceControllerTest.java | 19 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()
|
D | PairNewDevicePreferenceControllerTest.java | 19 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()
|
D | BluetoothEntryPreferenceControllerTest.java | 19 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()
|
D | BluetoothDeviceAddressPreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 61 FEATURE_BLUETOOTH, /* supported= */ true); in refreshUi_setsAddress()
|
D | BluetoothNamePreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 72 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothDevicePreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 77 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 118 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 77 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 102 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothRequestPermissionActivityTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 74 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothDevicesGroupPreferenceControllerTest.java | 19 import static android.content.pm.PackageManager.FEATURE_BLUETOOTH; 98 FEATURE_BLUETOOTH, /* supported= */ true); in setUp()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 19 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/ |
D | ConnectedDeviceGroupControllerTest.java | 91 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()
|
D | AddDevicePreferenceControllerTest.java | 72 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()
|
D | SavedDeviceGroupControllerTest.java | 98 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()
|
D | AvailableMediaDeviceGroupControllerTest.java | 99 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()
|
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 177 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()
|
D | DiscoverableFooterPreferenceControllerTest.java | 92 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/ |
D | BluetoothMacAddressPreferenceControllerTest.java | 82 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/ |
D | AudioOutputSwitchPreferenceControllerTest.java | 138 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/ |
D | BluetoothEntryPreferenceController.java | 19 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/ |
D | TheaterModeTest.java | 28 private static final String FEATURE_BLUETOOTH = "android.hardware.bluetooth"; field in TheaterModeTest 38 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
|
D | AirplaneModeTest.java | 31 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/ |
D | BluetoothMacAddressPreferenceController.java | 57 if (!getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothFilesPreferenceController.java | 58 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in getAvailabilityStatus()
|