Home
last modified time | relevance | path

Searched refs:BluetoothMapAppParams (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapObexServerTest.java70 private BluetoothMapAppParams mParams;
99 mParams = new BluetoothMapAppParams(); in setUp()
133 BluetoothMapAppParams params = mock(BluetoothMapAppParams.class); in setOwnerStatus_withAppParamsInvalid()
135 .thenReturn(BluetoothMapAppParams.INVALID_VALUE_PARAMETER); in setOwnerStatus_withAppParamsInvalid()
138 .thenReturn((long) BluetoothMapAppParams.INVALID_VALUE_PARAMETER); in setOwnerStatus_withAppParamsInvalid()
139 when(params.getChatState()).thenReturn(BluetoothMapAppParams.INVALID_VALUE_PARAMETER); in setOwnerStatus_withAppParamsInvalid()
227 expectedMask |= BluetoothMapAppParams.FILTER_NO_SMS_CDMA; in setMsgTypeFilterParams_withAccountNull_andOverwriteTrue()
228 expectedMask |= BluetoothMapAppParams.FILTER_NO_SMS_GSM; in setMsgTypeFilterParams_withAccountNull_andOverwriteTrue()
229 expectedMask |= BluetoothMapAppParams.FILTER_NO_MMS; in setMsgTypeFilterParams_withAccountNull_andOverwriteTrue()
230 expectedMask |= BluetoothMapAppParams.FILTER_NO_EMAIL; in setMsgTypeFilterParams_withAccountNull_andOverwriteTrue()
[all …]
DBluetoothMapAppParamsTest.java85 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in encodeToBuffer_thenDecode()
120 BluetoothMapAppParams appParamsDecoded = new BluetoothMapAppParams(encodedParams); in encodeToBuffer_thenDecode()
162 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in settersAndGetters()
252 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setAndGetFilterLastActivity_withString()
268 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setAndGetLastActivity_withString()
279 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setAndGetFilterPeriod_withString()
294 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setAndGetMseTime_withString()
305 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setters_withIllegalArguments()
392 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in setters_withIllegalStrings()
DBluetoothMapContentTest.java123 @Mock private BluetoothMapAppParams mParams;
393 .thenReturn(BluetoothMapAppParams.INVALID_VALUE_PARAMETER); in smsSelected_withInvalidFilter()
407 when(mParams.getFilterMessageType()).thenReturn(BluetoothMapAppParams.FILTER_NO_SMS_CDMA); in smsSelected_withSmsCdmaExcludeFilter_andPhoneTypeGsm()
418 when(mParams.getFilterMessageType()).thenReturn(BluetoothMapAppParams.FILTER_NO_SMS_GSM); in smsSelected_witSmsGsmExcludeFilter_andPhoneTypeCdma()
430 BluetoothMapAppParams.FILTER_NO_SMS_CDMA | BluetoothMapAppParams.FILTER_NO_SMS_GSM; in smsSelected_withGsmAndCdmaExcludeFilter()
439 .thenReturn(BluetoothMapAppParams.INVALID_VALUE_PARAMETER); in mmsSelected_withInvalidFilter()
453 when(mParams.getFilterMessageType()).thenReturn(BluetoothMapAppParams.FILTER_NO_MMS); in mmsSelected_withMmsExcludeFilter()
877 when(mParams.getFractionRequest()).thenReturn(BluetoothMapAppParams.FRACTION_REQUEST_FIRST); in getEmailMessage_withFileNotFoundExceptionForEmailBodyAccess()
911 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_UTF8); in getEmailMessage_withFileNotFoundExceptionForEmailBodyAccess()
930 when(mParams.getFractionRequest()).thenReturn(BluetoothMapAppParams.FRACTION_REQUEST_FIRST); in getEmailMessage_withNullPointerExceptionForEmailBodyAccess()
[all …]
DBluetoothMapSmsPduTest.java126 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_NATIVE); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne()
153 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_NATIVE); in getSubmitPdus_withTypeCDMA()
184 inputStream, BluetoothMapAppParams.CHARSET_NATIVE)); in getDeliverPdus_withTypeGSM()
213 inputStream, BluetoothMapAppParams.CHARSET_NATIVE)); in getDeliverPdus_withTypeCDMA()
DBluetoothMapbMessageEmailTest.java56 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_UTF8); in encodeToByteArray_thenCreateByParsing()
73 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_UTF8); in encodeToByteArray_withEmptyBody_thenCreateByParsing()
DBluetoothMapbMessageSmsTest.java88 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_NATIVE); in encodeToByteArray_thenAddByParsing()
105 BluetoothMapbMessage.parse(inputStream, BluetoothMapAppParams.CHARSET_UTF8); in encodeToByteArray_withEmptyMessage_thenAddByParsing()
DBluetoothMapContentObserverTest.java223 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in testPushGroupMMS()
346 mObserver.setNotificationRegistration(BluetoothMapAppParams.NOTIFICATION_STATUS_NO), in testSetNotificationRegistration_withNullHandler()
360 mObserver.setNotificationRegistration(BluetoothMapAppParams.NOTIFICATION_STATUS_NO), in testSetNotificationRegistration_withInvalidMnsRecord()
374 mObserver.setNotificationRegistration(BluetoothMapAppParams.NOTIFICATION_STATUS_NO), in testSetNotificationRegistration_withValidMnsRecord()
716 BluetoothMapAppParams.STATUS_VALUE_YES)); in setEmailMessageStatusDelete_withStatusValueYes()
737 BluetoothMapAppParams.STATUS_VALUE_YES)); in setEmailMessageStatusDelete_withStatusValueYes_andUpdateCountZero()
763 BluetoothMapAppParams.STATUS_VALUE_NO)); in setEmailMessageStatusDelete_withStatusValueNo()
791 BluetoothMapAppParams.STATUS_VALUE_NO)); in setEmailMessageStatusDelete_withStatusValueNo_andOldFolderIdMinusOne()
821 BluetoothMapAppParams.STATUS_VALUE_NO)); in setEmailMessageStatusDelete_withStatusValueNo_andInboxFolderNull()
845 BluetoothMapAppParams.STATUS_VALUE_YES)); in setMessageStatusDeleted_withTypeEmail()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java456 BluetoothMapAppParams appParams = null; in onPut()
465 appParams = new BluetoothMapAppParams(appParamRaw); in onPut()
685 BluetoothMapAppParams appParams, in pushMessage()
687 if (appParams.getCharset() == BluetoothMapAppParams.INVALID_VALUE_PARAMETER) { in pushMessage()
857 private int setMessageStatus(String msgHandle, BluetoothMapAppParams appParams) { in setMessageStatus()
867 } else if ((indicator == BluetoothMapAppParams.INVALID_VALUE_PARAMETER in setMessageStatus()
868 || value == BluetoothMapAppParams.INVALID_VALUE_PARAMETER) in setMessageStatus()
904 if (indicator == BluetoothMapAppParams.STATUS_INDICATOR_DELETED) { in setMessageStatus()
915 } else if (indicator == BluetoothMapAppParams.STATUS_INDICATOR_READ) { in setMessageStatus()
941 int setOwnerStatus(BluetoothMapAppParams appParams) throws RemoteException { in setOwnerStatus()
[all …]
DBluetoothMapContent.java471 BluetoothMapAppParams ap) { in setProtected()
489 BluetoothMapAppParams ap) { in setThreadId()
511 BluetoothMapAppParams ap) { in setThreadName()
526 BluetoothMapAppParams ap) { in setSent()
551 BluetoothMapAppParams ap) { in setRead()
570 BluetoothMapAppParams ap) { in setPriority()
602 BluetoothMapAppParams ap) { in setAttachment()
665 BluetoothMapAppParams ap) { in setText()
691 private void setReceptionStatus(BluetoothMapMessageListingElement e, BluetoothMapAppParams ap) { in setReceptionStatus()
704 BluetoothMapAppParams ap) { in setDeliveryStatus()
[all …]
DBluetoothMnsObexClient.java232 if (notificationStatus == BluetoothMapAppParams.NOTIFICATION_STATUS_NO) { in handleRegistration()
238 } else if (notificationStatus == BluetoothMapAppParams.NOTIFICATION_STATUS_YES) { in handleRegistration()
447 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in sendEventHandler()
DBluetoothMapbMessageSms.java51 if (mAppParamCharset == BluetoothMapAppParams.CHARSET_NATIVE) { in parseMsgPart()
DBluetoothMapAppParams.java35 public class BluetoothMapAppParams { class
188 public BluetoothMapAppParams() {} in BluetoothMapAppParams() method in BluetoothMapAppParams
201 public BluetoothMapAppParams(final byte[] appParams) in BluetoothMapAppParams() method in BluetoothMapAppParams
DBluetoothMapbMessage.java42 protected int mAppParamCharset = BluetoothMapAppParams.INVALID_VALUE_PARAMETER;
551 if (appParamCharset == BluetoothMapAppParams.CHARSET_NATIVE in parse()
DBluetoothMapContentObserver.java1006 if (notificationStatus == BluetoothMapAppParams.NOTIFICATION_STATUS_YES) { in setNotificationRegistration()
2582 if (status == BluetoothMapAppParams.STATUS_VALUE_YES) { in setEmailMessageStatusDelete()
2619 } else if (status == BluetoothMapAppParams.STATUS_VALUE_NO) { in setEmailMessageStatusDelete()
2915 if (statusValue == BluetoothMapAppParams.STATUS_VALUE_YES) { in setMessageStatusDeleted()
2921 } else if (statusValue == BluetoothMapAppParams.STATUS_VALUE_NO) { in setMessageStatusDeleted()
3072 BluetoothMapAppParams ap, in pushMessage()
3078 (ap.getTransparent() == BluetoothMapAppParams.INVALID_VALUE_PARAMETER) in pushMessage()
3386 if (BluetoothMapAppParams.INVALID_VALUE_PARAMETER != handle in sendMmsMessage()
DBluetoothMapService.java463 if (msg.arg2 == BluetoothMapAppParams.NOTIFICATION_STATUS_YES) { in handleMessage()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DRequestTest.java25 import com.android.bluetooth.map.BluetoothMapAppParams;
183 BluetoothMapAppParams outAppParams = new BluetoothMapAppParams(); in onGetValidator()
226 BluetoothMapAppParams appParams; in onPutValidator()
228 appParams = new BluetoothMapAppParams(appParamRaw); in onPutValidator()