Lines Matching refs:write

51      * Initialize a Parcel for an incoming CDMA cell broadcast. The caller will write the
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));
146 cmasBos.write(8, 0); // CMAE protocol version 0
149 cmasBos.write(8, 0); // Type 0 elements (alert text)
154 cmasBos.write(8, 1); // Type 1 elements
155 cmasBos.write(8, 4); // length: 4 bytes
156 cmasBos.write(8, (cmasCategory & 0xff));
157 cmasBos.write(8, (responseType & 0xff));
158 cmasBos.write(4, (severity & 0x0f));
159 cmasBos.write(4, (urgency & 0x0f));
160 cmasBos.write(4, (certainty & 0x0f));
161 cmasBos.write(4, 0); // pad to octet boundary
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);
174 bos.write(3, 0); // pad to byte boundary
195 bos.write(8, SUBPARAM_USER_DATA);
208 * @param bos the BitwiseOutputStream to write to
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);
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);
318 bos.write(3, 0); // pad to octet boundary
558 bos.write(8, SUBPARAM_USER_DATA);
559 bos.write(8, len);
562 bos.write(8, r.nextInt(256));
576 * write the bearer data and then convert it to an SmsMessage.
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);
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);