Searched defs:ch2 (Results 1 - 2 of 2) sorted by relevance

/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/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;

Completed in 650 milliseconds