Home
last modified time | relevance | path

Searched refs:jsonObj (Results 1 – 4 of 4) sorted by relevance

/pdk/apps/CameraITS/pymodules/its/
Ddevice.py245 jsonObj,buf = self.__read_response_from_socket()
246 if jsonObj['tag'] in ['jpegImage','yuvImage'] and buf is not None:
248 fmts.append(jsonObj['tag'][:-5])
249 elif jsonObj['tag'] == 'captureResults':
250 mds.append(jsonObj['objValue']['captureResult'])
251 width = jsonObj['objValue']['width']
252 height = jsonObj['objValue']['height']
/pdk/apps/CameraITS/service/src/com/android/camera2/its/
DItsService.java353 JSONObject jsonObj = new JSONObject(); in sendResponse() local
354 jsonObj.put("tag", tag); in sendResponse()
356 jsonObj.put("strValue", str); in sendResponse()
359 jsonObj.put("objValue", obj); in sendResponse()
362 jsonObj.put("bufValueSize", bbuf.capacity()); in sendResponse()
365 (jsonObj.toString()+"\n").getBytes(Charset.defaultCharset())); in sendResponse()
399 JSONObject jsonObj = new JSONObject(); in sendResponse() local
400 jsonObj.put("cameraProperties", ItsSerializer.serialize(props)); in sendResponse()
401 sendResponse("cameraProperties", null, jsonObj, null); in sendResponse()
412 JSONObject jsonObj = new JSONObject(); in sendResponse() local
[all …]
DItsUtils.java41 public static ByteBuffer jsonToByteBuffer(JSONObject jsonObj) { in jsonToByteBuffer() argument
42 return ByteBuffer.wrap(jsonObj.toString().getBytes(Charset.defaultCharset())); in jsonToByteBuffer()
DItsSerializer.java163 JSONObject jsonObj = new JSONObject(); in serialize() local
183 jsonObj.put(entry.key, entry.value); in serialize()
200 return jsonObj; in serialize()