/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | VolumeControlProfileTest.java | 108 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in isEnabled_connectionPolicyAllowed_returnTrue() 116 when(mService.getConnectionPolicy(mBluetoothDevice)) in isEnabled_connectionPolicyForbidden_returnFalse() 125 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in getConnectionPolicy_returnCorrectConnectionPolicy() 127 assertThat(mProfile.getConnectionPolicy(mBluetoothDevice)) in getConnectionPolicy_returnCorrectConnectionPolicy() 134 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in setEnabled_connectionPolicyAllowed_setConnectionPolicyAllowed_returnFalse() 144 when(mService.getConnectionPolicy(mBluetoothDevice)) in setEnabled_connectionPolicyForbidden_setConnectionPolicyAllowed_returnTrue() 155 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in setEnabled_connectionPolicyAllowed_setConnectionPolicyForbidden_returnTrue() 165 when(mService.getConnectionPolicy(mBluetoothDevice)) in setEnabled_connectionPolicyForbidden_setConnectionPolicyForbidden_returnTrue()
|
D | HapClientProfileTest.java | 118 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in isEnabled_connectionPolicyAllowed_returnTrue() 126 when(mService.getConnectionPolicy(mBluetoothDevice)) in isEnabled_connectionPolicyForbidden_returnFalse() 135 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in getConnectionPolicy_returnCorrectConnectionPolicy() 137 assertThat(mProfile.getConnectionPolicy(mBluetoothDevice)) in getConnectionPolicy_returnCorrectConnectionPolicy() 144 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in setEnabled_connectionPolicyAllowed_setConnectionPolicyAllowed_returnFalse() 154 when(mService.getConnectionPolicy(mBluetoothDevice)) in setEnabled_connectionPolicyForbidden_setConnectionPolicyAllowed_returnTrue() 165 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in setEnabled_connectionPolicyAllowed_setConnectionPolicyForbidden_returnTrue() 175 when(mService.getConnectionPolicy(mBluetoothDevice)) in setEnabled_connectionPolicyForbidden_setConnectionPolicyForbidden_returnTrue()
|
D | CachedBluetoothDeviceTest.java | 171 when(connectingProfile.getConnectionPolicy(mDevice)).thenReturn(connectionPolicy); in testTransitionFromConnectingToDisconnected()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | MapClientProfile.java | 127 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 131 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in MapClientProfile 135 return mService.getConnectionPolicy(device); in getConnectionPolicy() 145 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | PbapClientProfile.java | 141 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 145 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapClientProfile 149 return mService.getConnectionPolicy(device); in getConnectionPolicy() 159 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | SapProfile.java | 126 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 130 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in SapProfile 134 return mService.getConnectionPolicy(device); in getConnectionPolicy() 144 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | HfpClientProfile.java | 140 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 144 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HfpClientProfile 148 return mService.getConnectionPolicy(device); in getConnectionPolicy() 158 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | A2dpSinkProfile.java | 130 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 134 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpSinkProfile 138 return mService.getConnectionPolicy(device); in getConnectionPolicy() 148 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | HidProfile.java | 118 return mService.getConnectionPolicy(device) != CONNECTION_POLICY_FORBIDDEN; in isEnabled() 122 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidProfile 126 return mService.getConnectionPolicy(device); in getConnectionPolicy() 136 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | CsipSetCoordinatorProfile.java | 168 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 172 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in CsipSetCoordinatorProfile 176 return mService.getConnectionPolicy(device); in getConnectionPolicy() 186 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | MapProfile.java | 128 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 132 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in MapProfile 136 return mService.getConnectionPolicy(device); in getConnectionPolicy() 146 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | HeadsetProfile.java | 155 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 159 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetProfile 163 return mService.getConnectionPolicy(device); in getConnectionPolicy() 173 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | VolumeControlProfile.java | 255 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 259 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in VolumeControlProfile 263 return mService.getConnectionPolicy(device); in getConnectionPolicy() 276 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | HearingAidProfile.java | 221 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 225 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HearingAidProfile 229 return mService.getConnectionPolicy(device); in getConnectionPolicy() 239 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | LeAudioProfile.java | 243 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 247 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in LeAudioProfile 251 return mService.getConnectionPolicy(device); in getConnectionPolicy() 261 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | A2dpProfile.java | 188 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 192 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpProfile 196 return mService.getConnectionPolicy(device); in getConnectionPolicy() 206 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | LocalBluetoothLeBroadcastAssistant.java | 396 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 399 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in LocalBluetoothLeBroadcastAssistant 403 return mService.getConnectionPolicy(device); in getConnectionPolicy() 412 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | HapClientProfile.java | 566 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 570 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HapClientProfile 574 return mService.getConnectionPolicy(device); in getConnectionPolicy() 584 if (mService.getConnectionPolicy(device) < CONNECTION_POLICY_ALLOWED) { in setEnabled()
|
D | LocalBluetoothProfile.java | 50 int getConnectionPolicy(BluetoothDevice device); in getConnectionPolicy() method
|
D | OppProfile.java | 53 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in OppProfile
|
D | PbapServerProfile.java | 105 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapServerProfile
|
D | HidDeviceProfile.java | 120 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidDeviceProfile
|
D | PanProfile.java | 102 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PanProfile
|
D | LocalBluetoothLeBroadcast.java | 1003 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in LocalBluetoothLeBroadcast
|
D | CachedBluetoothDevice.java | 262 if (profile.getConnectionPolicy(mDevice) > in onProfileStateChanged()
|