Lines Matching refs:encoding
143 int language, int encoding, String body, int cmasCategory, int responseType,
150 encodeBody(encoding, body, true, cmasBos);
186 * @param encoding user data encoding method
191 int priority, int language, int encoding, String body) throws Exception {
196 encodeBody(encoding, body, false, bos);
202 * Append the message length, encoding, and body to the BearerData output stream.
205 * @param encoding one of the CDMA UserData encoding values
209 * @throws Exception on any encoding error
211 private static void encodeBody(int encoding, String body, boolean isCmasRecord,
213 if (encoding == UserData.ENCODING_7BIT_ASCII || encoding == UserData.ENCODING_IA5) {
224 bos.write(5, (encoding & 0x1f));
235 } else if (encoding == UserData.ENCODING_GSM_7BIT_ALPHABET
236 || encoding == UserData.ENCODING_GSM_DCS) {
237 // convert to 7-bit packed encoding with septet count in index 0 of byte array
247 if (encoding == UserData.ENCODING_GSM_DCS) {
253 bos.write(5, (encoding & 0x1f));
255 if (!isCmasRecord && encoding == UserData.ENCODING_GSM_DCS) {
265 } else if (encoding == UserData.ENCODING_IS91_EXTENDED_PROTOCOL) {
266 // 6 bit packed encoding with 0x20 offset (ASCII 0x20 - 0x60)
274 bos.write(5, (encoding & 0x1f));
285 switch (encoding) {
308 int recordOctets = encodedBody.length + 1; // add 1 byte for encoding and pad bits
313 bos.write(5, (encoding & 0x1f));
352 private static void doTestNonEmergencyBroadcast(int encoding) throws Exception {
354 BearerData.LANGUAGE_ENGLISH, encoding, TEST_TEXT);