Lines Matching defs:encoding
145 int language, int encoding, String body, int cmasCategory, int responseType,
152 encodeBody(encoding, body, true, cmasBos);
188 * @param encoding user data encoding method
193 int priority, int language, int encoding, String body) throws Exception {
198 encodeBody(encoding, body, false, bos);
204 * Append the message length, encoding, and body to the BearerData output stream.
207 * @param encoding one of the CDMA UserData encoding values
211 * @throws Exception on any encoding error
213 private static void encodeBody(int encoding, String body, boolean isCmasRecord,
215 if (encoding == UserData.ENCODING_7BIT_ASCII || encoding == UserData.ENCODING_IA5) {
226 bos.write(5, (encoding & 0x1f));
237 } else if (encoding == UserData.ENCODING_GSM_7BIT_ALPHABET
238 || encoding == UserData.ENCODING_GSM_DCS) {
239 // convert to 7-bit packed encoding with septet count in index 0 of byte array
249 if (encoding == UserData.ENCODING_GSM_DCS) {
255 bos.write(5, (encoding & 0x1f));
257 if (!isCmasRecord && encoding == UserData.ENCODING_GSM_DCS) {
267 } else if (encoding == UserData.ENCODING_IS91_EXTENDED_PROTOCOL) {
268 // 6 bit packed encoding with 0x20 offset (ASCII 0x20 - 0x60)
276 bos.write(5, (encoding & 0x1f));
287 switch (encoding) {
310 int recordOctets = encodedBody.length + 1; // add 1 byte for encoding and pad bits
315 bos.write(5, (encoding & 0x1f));
354 private static void doTestNonEmergencyBroadcast(int encoding) throws Exception {
356 BearerData.LANGUAGE_ENGLISH, encoding, TEST_TEXT);