/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapAppParamsTest.java | 85 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in encodeToBuffer_thenDecode() local 86 appParams.setMaxListCount(TEST_MAX_LIST_COUNT); in encodeToBuffer_thenDecode() 87 appParams.setStartOffset(TEST_START_OFFSET); in encodeToBuffer_thenDecode() 88 appParams.setFilterMessageType(TEST_FILTER_MESSAGE_TYPE); in encodeToBuffer_thenDecode() 89 appParams.setFilterPeriodBegin(TEST_FILTER_PERIOD_BEGIN); in encodeToBuffer_thenDecode() 90 appParams.setFilterPeriodEnd(TEST_FILTER_PERIOD_END); in encodeToBuffer_thenDecode() 91 appParams.setFilterReadStatus(TEST_FILTER_READ_STATUS); in encodeToBuffer_thenDecode() 92 appParams.setFilterRecipient(TEST_FILTER_RECIPIENT); in encodeToBuffer_thenDecode() 93 appParams.setFilterOriginator(TEST_FILTER_ORIGINATOR); in encodeToBuffer_thenDecode() 94 appParams.setFilterPriority(TEST_FILTER_PRIORITY); in encodeToBuffer_thenDecode() [all …]
|
D | BluetoothMapContentObserverTest.java | 223 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in testPushGroupMMS() local 232 () -> observer.pushMessage(message, folderElement, appParams, null)); in testPushGroupMMS()
|
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/ |
D | CtsOdpManagerTests.java | 283 PersistableBundle appParams = new PersistableBundle(); in testExecuteWithRenderAndLogging() local 284 appParams.putString(SampleServiceApi.KEY_OPCODE, SampleServiceApi.OPCODE_RENDER_AND_LOG); in testExecuteWithRenderAndLogging() 285 appParams.putString(SampleServiceApi.KEY_RENDERING_CONFIG_IDS, "id1"); in testExecuteWithRenderAndLogging() 289 appParams.putPersistableBundle(SampleServiceApi.KEY_LOG_DATA, logData); in testExecuteWithRenderAndLogging() 292 appParams, in testExecuteWithRenderAndLogging() 306 PersistableBundle appParams = new PersistableBundle(); in testExecuteWithRender() local 307 appParams.putString(SampleServiceApi.KEY_OPCODE, SampleServiceApi.OPCODE_RENDER_AND_LOG); in testExecuteWithRender() 308 appParams.putString(SampleServiceApi.KEY_RENDERING_CONFIG_IDS, "id1"); in testExecuteWithRender() 311 appParams, in testExecuteWithRender() 325 PersistableBundle appParams = new PersistableBundle(); in testExecuteWithOutputData() local [all …]
|
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/ |
D | SampleWorker.java | 100 PersistableBundle appParams = Objects.requireNonNull(input.getAppParams()); in onExecute() local 101 if (appParams == null in onExecute() 102 || appParams.equals(PersistableBundle.EMPTY) in onExecute() 103 || appParams.getString(SampleServiceApi.KEY_OPCODE) == null) { in onExecute() 108 String op = Objects.requireNonNull(appParams.getString(SampleServiceApi.KEY_OPCODE)); in onExecute() 110 throw createException(appParams); in onExecute() 113 mExecutor.submit(() -> handleOnExecute(appParams, receiver)); in onExecute() 117 PersistableBundle appParams, in handleOnExecute() argument 124 String op = Objects.requireNonNull(appParams.getString(SampleServiceApi.KEY_OPCODE)); in handleOnExecute() 126 result = handleRenderAndLog(appParams); in handleOnExecute() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapObexServer.java | 456 BluetoothMapAppParams appParams = null; in onPut() local 465 appParams = new BluetoothMapAppParams(appParamRaw); in onPut() 475 + appParams.getNotificationStatus()); in onPut() 476 return mObserver.setNotificationRegistration(appParams.getNotificationStatus()); in onPut() 481 + appParams.getNotificationFilter()); in onPut() 492 mObserver.setNotificationFilter(appParams.getNotificationFilter()); in onPut() 499 + appParams.getStatusIndicator() in onPut() 501 + appParams.getStatusValue() in onPut() 513 return setMessageStatus(name, appParams); in onPut() 518 + appParams.getTransparent() in onPut() [all …]
|
D | BluetoothMapAppParams.java | 201 public BluetoothMapAppParams(final byte[] appParams) in BluetoothMapAppParams() argument 203 parseParams(appParams); in BluetoothMapAppParams() 214 private void parseParams(final byte[] appParams) in parseParams() argument 218 ByteBuffer appParamBuf = ByteBuffer.wrap(appParams); in parseParams() 220 while (i < appParams.length) { in parseParams() 221 tagId = appParams[i++] & 0xff; // Convert to unsigned to support values above 127 in parseParams() 222 tagLength = appParams[i++] & 0xff; // Convert to unsigned to support values above 127 in parseParams() 275 setFilterMessageType(appParams[i] & 0x1f); in parseParams() 280 setFilterPeriodBegin(new String(appParams, i, tagLength)); in parseParams() 297 setFilterPeriodEnd(new String(appParams, i, tagLength)); in parseParams() [all …]
|
D | BluetoothMnsObexClient.java | 447 BluetoothMapAppParams appParams = new BluetoothMapAppParams(); in sendEventHandler() local 448 appParams.setMasInstanceId(masInstanceId); in sendEventHandler() 455 request.setHeader(HeaderSet.APPLICATION_PARAMETER, appParams.encodeParams()); in sendEventHandler()
|
D | BluetoothMapContent.java | 3562 BluetoothMapAppParams appParams, in getMessage() argument 3569 if (appParams.getFractionRequest() == BluetoothMapAppParams.FRACTION_REQUEST_NEXT) { in getMessage() 3577 return getSmsMessage(id, appParams.getCharset()); in getMessage() 3579 return getMmsMessage(id, appParams); in getMessage() 3581 return getEmailMessage(id, appParams, folderElement); in getMessage() 3583 return getIMMessage(id, appParams, folderElement); in getMessage() 3977 public byte[] getMmsMessage(long id, BluetoothMapAppParams appParams) in getMmsMessage() argument 3980 if (appParams.getCharset() == MAP_MESSAGE_CHARSET_NATIVE) { in getMmsMessage() 4008 message.setIncludeAttachments(appParams.getAttachment() != 0); in getMmsMessage() 4037 long id, BluetoothMapAppParams appParams, BluetoothMapFolderElement currentFolder) in getEmailMessage() argument [all …]
|
/packages/modules/OnDevicePersonalization/samples/odpclient/src/main/java/com/example/odpclient/ |
D | MainActivity.java | 129 PersistableBundle appParams = new PersistableBundle(); in makeRequest() local 130 appParams.putString("keyword", mTextBox.getText().toString()); in makeRequest() 137 appParams, in makeRequest() local 217 PersistableBundle appParams = new PersistableBundle(); in scheduleTraining() local 218 appParams.putString("schedule_training", mScheduleTrainingTextBox.getText().toString()); in scheduleTraining() 222 appParams.putLong( in scheduleTraining() 232 appParams, in scheduleTraining() local 271 PersistableBundle appParams = new PersistableBundle(); in cancelTraining() local 272 appParams.putString("cancel_training", mScheduleTrainingTextBox.getText().toString()); in cancelTraining() 279 appParams, in cancelTraining() local [all …]
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | IsolatedServiceExceptionSafetyTest.java | 104 PersistableBundle appParams = new PersistableBundle(); in testOnRequestExceptions() local 105 appParams.putString("ex", operation); in testOnRequestExceptions() 110 PersistableBundleUtils.toByteArray(appParams))) in testOnRequestExceptions() 158 PersistableBundle appParams = new PersistableBundle(); in testOnEvent() local 159 appParams.putString("ex", operation); in testOnEvent() 163 new EventInputParcel.Builder().setParameters(appParams).build()); in testOnEvent()
|
D | IsolatedServiceTest.java | 91 PersistableBundle appParams = new PersistableBundle(); in testOnExecute() local 92 appParams.putString("x", "y"); in testOnExecute() 97 PersistableBundleUtils.toByteArray(appParams))) in testOnExecute() 117 PersistableBundle appParams = new PersistableBundle(); in testOnExecutePropagatesError() local 118 appParams.putInt("error", 1); // Trigger an error in the service. in testOnExecutePropagatesError() 123 PersistableBundleUtils.toByteArray(appParams))) in testOnExecutePropagatesError()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | RequestTest.java | 226 BluetoothMapAppParams appParams; in onPutValidator() local 228 appParams = new BluetoothMapAppParams(appParamRaw); in onPutValidator() 234 if (appParams.getStatusIndicator() != TEST_STATUS_INDICATOR) { in onPutValidator() 237 if (appParams.getStatusValue() != TEST_STATUS_VALUE) { in onPutValidator() 243 if (appParams.getNotificationStatus() != 1) { in onPutValidator()
|