Searched refs:ch2 (Results 1 - 3 of 3) sorted by relevance

/frameworks/av/media/libmedia/
H A DMediaScannerClient.cpp100 uint8_t ch1, ch2; local
105 ch2 = *chp++;
106 ch1 = ((ch1 << 6) & 0xC0) | (ch2 & 0x3F);
109 ch2 = *chp++;
110 if (ch2 & 0x80)
111 ch2 = ((ch2 << 6) & 0xC0) | (*chp++ & 0x3F);
112 // ch2 is now the second byte of the potential native char
113 int ch = (int)ch1 << 8 | (int)ch2;
/frameworks/av/media/mtp/
H A DMtpStringBuffer.cpp156 uint16_t ch2 = *src++; local
157 ch = ((ch1 & 0x1F) << 6) | (ch2 & 0x3F);
160 uint16_t ch2 = *src++; local
162 ch = ((ch1 & 0x0F) << 12) | ((ch2 & 0x3F) << 6) | (ch3 & 0x3F);
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_i18n.c272 uint8_t ch2, ch3, ch4; local
283 if (i + 1 < mbsLen && ((ch2 = mbs[i + 1]) & 0xc0) == 0x80) {
284 wideChar = (uint16_t)(((ch & 0x1F) << 6) | (ch2 & 0x3F));
293 && ((ch2 = mbs[i + 1]) & 0xc0) == 0x80
295 wideChar = (uint16_t)(((ch & 0x0F) << 12) | ((ch2 & 0x3F) << 6) | (ch3 & 0x3F));
306 && ((ch2 = mbs[i + 1]) & 0xc0) == 0x80

Completed in 876 milliseconds