/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapAccountLoader.java | 51 private ContentProviderClient mProviderClient = null; field in BluetoothMapAccountLoader 176 mProviderClient = in parseAccounts() 179 if (mProviderClient == null) { in parseAccounts() 182 mProviderClient.setDetectNotResponding(PROVIDER_ANR_TIMEOUT); in parseAccounts() 189 mProviderClient.query( in parseAccounts() 197 mProviderClient.query( in parseAccounts() 217 if (mProviderClient != null) { in parseAccounts() 218 mProviderClient.close(); in parseAccounts()
|
D | BluetoothMapObexServer.java | 127 private ContentProviderClient mProviderClient = null; field in BluetoothMapObexServer 159 mProviderClient = acquireUnstableContentProviderOrThrow(); in BluetoothMapObexServer() 279 mProviderClient.query( in addEmailFolders() 559 mProviderClient = acquireUnstableContentProviderOrThrow(); in onPut() 616 mProviderClient.call( in updateInbox() 631 mProviderClient = acquireUnstableContentProviderOrThrow(); in updateInbox() 799 mProviderClient = acquireUnstableContentProviderOrThrow(); in pushMessage() 980 mProviderClient.call( in setOwnerStatus() 994 mProviderClient = acquireUnstableContentProviderOrThrow(); in setOwnerStatus() 1074 if (mProviderClient != null) { in onClose() [all …]
|
D | BluetoothMapContentObserver.java | 133 @VisibleForTesting ContentProviderClient mProviderClient = null; field in BluetoothMapContentObserver 282 mProviderClient = mResolver.acquireUnstableContentProviderClient(mAuthority); in BluetoothMapContentObserver() 283 if (mProviderClient == null) { in BluetoothMapContentObserver() 286 mProviderClient.setDetectNotResponding(PROVIDER_ANR_TIMEOUT); in BluetoothMapContentObserver() 1069 mProviderClient = mResolver.acquireUnstableContentProviderClient(mAuthority); in registerObserver() 1070 if (mProviderClient == null) { in registerObserver() 1073 mProviderClient.setDetectNotResponding(PROVIDER_ANR_TIMEOUT); in registerObserver() 1134 if (mProviderClient != null) { in unregisterObserver() 1135 mProviderClient.close(); in unregisterObserver() 1136 mProviderClient = null; in unregisterObserver() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapObexServerTest.java | 76 @Mock private ContentProviderClient mProviderClient; field in BluetoothMapObexServerTest 83 doReturn(mProviderClient) in setUp() 107 doReturn(null).when(mProviderClient).query(any(), any(), any(), any(), any()); in setOwnerStatus_withAccountTypeEmail() 150 when(mProviderClient.call(any(), any(), any())).thenReturn(bundle); in setOwnerStatus_withNonNullBundle() 158 when(mProviderClient.call(any(), any(), any())).thenReturn(null); in setOwnerStatus_withNullBundle() 167 doThrow(RemoteException.class).when(mProviderClient).call(any(), any(), any()); in setOwnerStatus_withRemoteExceptionThrown() 176 doThrow(NullPointerException.class).when(mProviderClient).call(any(), any(), any()); in setOwnerStatus_withNullPointerExceptionThrown() 185 doThrow(IllegalArgumentException.class).when(mProviderClient).call(any(), any(), any()); in setOwnerStatus_withIllegalArgumentExceptionThrown() 206 .when(mProviderClient) in addEmailFolders()
|
D | BluetoothMapContentObserverTest.java | 132 @Mock private ContentProviderClient mProviderClient; field in BluetoothMapContentObserverTest 194 mObserver.mProviderClient = mProviderClient; in setUp() 421 mObserver.mProviderClient = mProviderClient; in testSetMessageStatusRead_withTypeEmail() 422 when(mProviderClient.update(any(), any(), any(), any())).thenReturn(TEST_PLACEHOLDER_INT); in testSetMessageStatusRead_withTypeEmail() 1008 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in initMsgList_withMsg() 1057 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in initContactsList() 1100 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in handleMsgListChangesMsg_withNonExistingMessage_andVersion11() 1152 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in handleMsgListChangesMsg_withNonExistingMessage_andVersion12() 1185 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in handleMsgListChangesMsg_withNonExistingMessage_andVersion10() 1221 when(mProviderClient.query(any(), any(), any(), any(), any())).thenReturn(cursor); in handleMsgListChangesMsg_withExistingMessage_andNonNullDeletedFolder() [all …]
|