Home
last modified time | relevance | path

Searched refs:rawData (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DImageDescriptor.java56 static ImageDescriptor parse(byte[] rawData, int valueIndex) { in parse() argument
59 d.mWidth = rawData[valueIndex++] & 0xff; in parse()
60 d.mHeight = rawData[valueIndex++] & 0xff; in parse()
61 d.mCodingScheme = rawData[valueIndex++] & 0xff; in parse()
64 d.mImageId = (rawData[valueIndex++] & 0xff) << 8; in parse()
65 d.mImageId |= rawData[valueIndex++] & 0xff; in parse()
67 d.mHighOffset = (rawData[valueIndex++] & 0xff); // high byte offset in parse()
68 d.mLowOffset = rawData[valueIndex++] & 0xff; // low byte offset in parse()
70 d.mLength = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff)); in parse()
DIconLoader.java150 byte[] rawData = ((byte[]) ar.result); in handleMessage()
152 mCurrentIcon = parseToBnW(rawData, rawData.length); in handleMessage()
156 mIconData = rawData; in handleMessage()
186 private boolean handleImageDescriptor(byte[] rawData) { in handleImageDescriptor() argument
187 mId = ImageDescriptor.parse(rawData, 1); in handleImageDescriptor()
DRilMessageDecoder.java181 byte[] rawData = null; in decodeMessageParams()
183 rawData = IccUtils.hexStringToBytes((String) rilMsg.mData); in decodeMessageParams()
192 mCmdParamsFactory.make(BerTlv.decode(rawData)); in decodeMessageParams()
DCatService.java64 RilMessage(int msgId, String rawData) { in RilMessage() argument
66 mData = rawData; in RilMessage()
625 byte[] rawData = buf.toByteArray(); in sendTerminalResponse()
626 String hexString = IccUtils.bytesToHexString(rawData); in sendTerminalResponse()
718 byte[] rawData = buf.toByteArray(); in sendMenuSelection()
721 int len = rawData.length - 2; // minus (tag + length) in sendMenuSelection()
722 rawData[1] = (byte) len; in sendMenuSelection()
724 String hexString = IccUtils.bytesToHexString(rawData); in sendMenuSelection()
790 byte[] rawData = buf.toByteArray(); in eventDownload()
793 int len = rawData.length - 2; // minus (tag + length) in eventDownload()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java121 public void onPreviewFrame(byte [] rawData, Camera camera) { in onPreviewFrame() argument
124 if (rawData != null) { in onPreviewFrame()
125 rawDataLength = rawData.length; in onPreviewFrame()
147 public void onPictureTaken(byte [] rawData, Camera camera) { in onPictureTaken() argument
156 public void onPictureTaken(byte [] rawData, Camera camera) { in onPictureTaken() argument
158 if (rawData != null) { in onPictureTaken()
159 int rawDataLength = rawData.length; in onPictureTaken()
163 outstream.write(rawData); in onPictureTaken()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/
DReportCanvas.java161 public void dumpHexArray(byte[] rawData, StringBuilder builder) { in dumpHexArray() argument
162 if (rawData != null) { in dumpHexArray()
165 for (int index = 0; index < rawData.length; index++) { in dumpHexArray()
166 builder.append(getHexString(rawData[index]) + " "); in dumpHexArray()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java104 byte[] rawData = new byte[length]; in parseHistoricalBytes()
105 System.arraycopy(originalData, startIndex, rawData, 0, length); in parseHistoricalBytes()
106 return new HistoricalBytes(rawData, nodes, rawData[0]); in parseHistoricalBytes()
109 private HistoricalBytes(byte[] rawData, ArrayMap<Integer, byte[]> nodes, byte category) { in HistoricalBytes() argument
110 mRawData = rawData; in HistoricalBytes()
/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.cpp200 unsigned char* rawData = nullptr; in attachExifData() local
202 exif_data_save_data(exifData, &rawData, &size); in attachExifData()
203 if (rawData == nullptr) { in attachExifData()
208 jpeg_write_marker(&mCompressInfo, JPEG_APP0 + 1, rawData, size); in attachExifData()
209 free(rawData); in attachExifData()
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DEvent.java279 byte[] rawData = new byte[data.size()]; in readData()
285 rawData[i] = (byte)d; in readData()
287 return rawData; in readData()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java675 private static int[] getCLUT(byte[] rawData, int offset, int number) { in getCLUT() argument
676 if (null == rawData) { in getCLUT()
687 | ((rawData[valueIndex++] & 0xFF) << 16) in getCLUT()
688 | ((rawData[valueIndex++] & 0xFF) << 8) in getCLUT()
689 | ((rawData[valueIndex++] & 0xFF)); in getCLUT()
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
DEvent.java300 byte[] rawData = new byte[data.size()]; in readData()
306 rawData[i] = (byte) d; in readData()
308 return rawData; in readData()
/frameworks/base/core/java/com/android/internal/telephony/
DIPhoneStateListener.aidl58 void onOemHookRawEvent(in byte[] rawData); in onOemHookRawEvent() argument
DITelephonyRegistry.aidl75 void notifyOemHookRawEventForSubscriber(in int phoneId, in int subId, in byte[] rawData); in notifyOemHookRawEventForSubscriber() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1465 private static void validateRaw16Data(byte[] rawData, int width, int height, int format, in validateRaw16Data() argument
1469 assertEquals("Raw data doesn't match", expectedSize, rawData.length); in validateRaw16Data()
1476 dumpFile(fileName, rawData); in validateRaw16Data()
1482 private static void validateRawPrivateData(byte[] rawData, int width, int height, in validateRawPrivateData() argument
1489 assertTrue("Opaque RAW size " + rawData.length + "out of normal bound [" + in validateRawPrivateData()
1491 expectedSizeMin <= rawData.length && rawData.length <= expectedSizeMax); in validateRawPrivateData()
1496 dumpFile(fileName, rawData); in validateRawPrivateData()
/frameworks/base/core/java/android/telephony/
DPhoneStateListener.java1166 public void onOemHookRawEvent(byte[] rawData) { in onOemHookRawEvent() argument
1523 public void onOemHookRawEvent(byte[] rawData) { in onOemHookRawEvent() argument
1528 () -> mExecutor.execute(() -> psl.onOemHookRawEvent(rawData))); in onOemHookRawEvent()
DTelephonyCallback.java1589 public void onOemHookRawEvent(byte[] rawData) { in onOemHookRawEvent() argument
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java872 byte[] rawData = new byte[dataBytes]; in encodeDtmfSmsAddress()
881 rawData[i / 2] |= val << (4 - ((i % 2) * 4)); in encodeDtmfSmsAddress()
883 return rawData; in encodeDtmfSmsAddress()
1520 private static String decodeDtmfSmsAddress(byte[] rawData, int numFields) in decodeDtmfSmsAddress() argument
1527 int val = 0x0F & (rawData[i / 2] >>> (4 - ((i % 2) * 4))); in decodeDtmfSmsAddress()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java173 public void onPreviewFrame(byte[] rawData, Camera camera) { in onPreviewFrame() argument
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java2249 public void notifyOemHookRawEventForSubscriber(int phoneId, int subId, byte[] rawData) { in notifyOemHookRawEventForSubscriber() argument
2264 r.callback.onOemHookRawEvent(rawData); in notifyOemHookRawEventForSubscriber()