Lines Matching defs:bos

85         BitwiseOutputStream bos = new BitwiseOutputStream(10);
86 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER);
87 bos.write(8, 3); // length: 3 bytes
88 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER);
89 bos.write(8, ((messageId >>> 8) & 0xff));
90 bos.write(8, (messageId & 0xff));
91 bos.write(1, 0); // no User Data Header
92 bos.write(3, 0); // reserved
95 bos.write(8, SUBPARAM_PRIORITY_INDICATOR);
96 bos.write(8, 1); // length: 1 byte
97 bos.write(2, (priority & 0x03));
98 bos.write(6, 0); // reserved
102 bos.write(8, SUBPARAM_LANGUAGE_INDICATOR);
103 bos.write(8, 1); // length: 1 byte
104 bos.write(8, (language & 0xff));
107 return bos;
167 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language);
169 bos.write(8, SUBPARAM_USER_DATA);
170 bos.write(8, cmasUserData.length + 2); // add 2 bytes for msg_encoding and num_fields
171 bos.write(5, UserData.ENCODING_OCTET);
172 bos.write(8, cmasUserData.length);
173 bos.writeByteArray(cmasUserData.length * 8, cmasUserData);
174 bos.write(3, 0); // pad to byte boundary
176 return createMessageFromParcel(p, bos.toByteArray());
193 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language);
195 bos.write(8, SUBPARAM_USER_DATA);
196 encodeBody(encoding, body, false, bos);
198 return createMessageFromParcel(p, bos.toByteArray());
208 * @param bos the BitwiseOutputStream to write to
212 BitwiseOutputStream bos) throws Exception {
223 bos.write(8, recordOctets);
224 bos.write(5, (encoding & 0x1f));
227 bos.write(8, charCount);
231 bos.write(7, body.charAt(i));
234 bos.write(padBits, 0); // pad to octet boundary
252 bos.write(8, recordOctets);
253 bos.write(5, (encoding & 0x1f));
256 bos.write(8, 0); // GSM DCS: 7 bit default alphabet, no msg class
260 bos.write(8, charCount);
263 bos.writeByteArray(charCount * 7, bodySeptets);
264 bos.write(padBits, 0); // pad to octet boundary
272 bos.write(8, recordOctets);
274 bos.write(5, (encoding & 0x1f));
275 bos.write(8, UserData.IS91_MSG_TYPE_SHORT_MESSAGE);
276 bos.write(8, charCount);
279 bos.write(6, ((int) body.charAt(i) - 0x20));
282 bos.write(padBits, 0); // pad to octet boundary
312 bos.write(8, recordOctets);
313 bos.write(5, (encoding & 0x1f));
315 bos.write(8, charCount);
317 bos.writeByteArray(encodedBody.length * 8, encodedBody);
318 bos.write(3, 0); // pad to octet boundary
555 BitwiseOutputStream bos = createBearerDataStream(r.nextInt(65536), r.nextInt(4),
558 bos.write(8, SUBPARAM_USER_DATA);
559 bos.write(8, len);
562 bos.write(8, r.nextInt(256));
565 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray());
604 BitwiseOutputStream bos = createBearerDataStream(123, -1, -1);
611 bos.write(8, SUBPARAM_SERVICE_CATEGORY_PROGRAM_DATA);
612 bos.write(8, subparamLengthBytes);
613 bos.write(5, UserData.ENCODING_7BIT_ASCII);
615 bos.write(4, CdmaSmsCbProgramData.OPERATION_ADD_CATEGORY);
616 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT >>> 8));
617 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT & 0xff));
618 bos.write(8, BearerData.LANGUAGE_ENGLISH);
619 bos.write(8, 100); // max messages
620 bos.write(4, CdmaSmsCbProgramData.ALERT_OPTION_DEFAULT_ALERT);
622 bos.write(8, categoryNameLength);
624 bos.write(7, CAT_EXTREME_THREAT.charAt(i));
626 bos.write(subparamPadBits, 0);
628 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray());
645 BitwiseOutputStream bos = createBearerDataStream(456, -1, -1);
654 bos.write(8, SUBPARAM_SERVICE_CATEGORY_PROGRAM_DATA);
655 bos.write(8, subparamLengthBytes);
656 bos.write(5, UserData.ENCODING_7BIT_ASCII);
658 bos.write(4, CdmaSmsCbProgramData.OPERATION_DELETE_CATEGORY);
659 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_SEVERE_THREAT >>> 8));
660 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_SEVERE_THREAT & 0xff));
661 bos.write(8, BearerData.LANGUAGE_ENGLISH);
662 bos.write(8, 0); // max messages
663 bos.write(4, CdmaSmsCbProgramData.ALERT_OPTION_NO_ALERT);
665 bos.write(8, category1NameLength);
667 bos.write(7, CAT_SEVERE_THREAT.charAt(i));
670 bos.write(4, CdmaSmsCbProgramData.OPERATION_DELETE_CATEGORY);
671 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY >>> 8));
672 bos.write(8, (SmsEnvelope.SERVICE_CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY & 0xff));
673 bos.write(8, BearerData.LANGUAGE_ENGLISH);
674 bos.write(8, 0); // max messages
675 bos.write(4, CdmaSmsCbProgramData.ALERT_OPTION_NO_ALERT);
677 bos.write(8, category2NameLength);
679 bos.write(7, CAT_AMBER_ALERTS.charAt(i));
682 bos.write(subparamPadBits, 0);
684 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray());