Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DVolumeControlProfileTest.java108 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()
DHapClientProfileTest.java118 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()
DCachedBluetoothDeviceTest.java171 when(connectingProfile.getConnectionPolicy(mDevice)).thenReturn(connectionPolicy); in testTransitionFromConnectingToDisconnected()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DMapClientProfile.java127 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()
DPbapClientProfile.java141 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()
DSapProfile.java126 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()
DHfpClientProfile.java140 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()
DA2dpSinkProfile.java130 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()
DHidProfile.java118 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()
DCsipSetCoordinatorProfile.java168 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()
DMapProfile.java128 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()
DHeadsetProfile.java155 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()
DVolumeControlProfile.java255 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()
DHearingAidProfile.java221 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()
DLeAudioProfile.java243 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()
DA2dpProfile.java188 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()
DLocalBluetoothLeBroadcastAssistant.java396 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()
DHapClientProfile.java566 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()
DLocalBluetoothProfile.java50 int getConnectionPolicy(BluetoothDevice device); in getConnectionPolicy() method
DOppProfile.java53 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in OppProfile
DPbapServerProfile.java105 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapServerProfile
DHidDeviceProfile.java120 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidDeviceProfile
DPanProfile.java102 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PanProfile
DLocalBluetoothLeBroadcast.java1003 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in LocalBluetoothLeBroadcast
DCachedBluetoothDevice.java262 if (profile.getConnectionPolicy(mDevice) > in onProfileStateChanged()