Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 27) sorted by relevance

12

/device/google/accessory/demokit/firmware/demokit/
Ddemokit.pde144 byte msg[3];
148 int len = acc.read(msg, sizeof(msg), 1);
157 if (msg[0] == 0x2) {
158 if (msg[1] == 0x0)
159 analogWrite(LED1_RED, 255 - msg[2]);
160 else if (msg[1] == 0x1)
161 analogWrite(LED1_GREEN, 255 - msg[2]);
162 else if (msg[1] == 0x2)
163 analogWrite(LED1_BLUE, 255 - msg[2]);
164 else if (msg[1] == 0x3)
[all …]
/device/generic/goldfish/camera/
DEmulatedCameraDevice.cpp313 const ControlMessage msg = THREAD_STOP; in stopThread() local
315 TEMP_FAILURE_RETRY(write(mThreadControl, &msg, sizeof(msg))); in stopThread()
316 if (wres == sizeof(msg)) { in stopThread()
374 ControlMessage msg; in Select() local
375 res = TEMP_FAILURE_RETRY(read(mControlFD, &msg, sizeof(msg))); in Select()
376 if (res != sizeof(msg)) { in Select()
382 if (msg == THREAD_STOP) { in Select()
386 ALOGE("Unknown worker thread message %d", msg); in Select()
DCallbackNotifier.cpp57 static int GetMessageStrings(uint32_t msg, const char** strings, int max) in GetMessageStrings() argument
61 while (msg != 0 && out < max && index < lCameraMessagesNum) { in GetMessageStrings()
62 while ((msg & 0x1) == 0 && index < lCameraMessagesNum) { in GetMessageStrings()
63 msg >>= 1; in GetMessageStrings()
66 if ((msg & 0x1) != 0 && index < lCameraMessagesNum) { in GetMessageStrings()
69 msg >>= 1; in GetMessageStrings()
78 static void PrintMessages(uint32_t msg) in PrintMessages() argument
81 const int translated = GetMessageStrings(msg, strs, lCameraMessagesNum); in PrintMessages()
DEmulatedCamera3.cpp191 void EmulatedCamera3::sendNotify(camera3_notify_msg_t *msg) { in sendNotify() argument
192 mCallbackOps->notify(mCallbackOps, msg); in sendNotify()
DEmulatedCamera3.h192 void sendNotify(camera3_notify_msg_t *msg);
DEmulatedFakeCamera3.cpp1828 camera3_notify_msg_t msg; in onSensorEvent() local
1829 msg.type = CAMERA3_MSG_SHUTTER; in onSensorEvent()
1830 msg.message.shutter.frame_number = frameNumber; in onSensorEvent()
1831 msg.message.shutter.timestamp = timestamp; in onSensorEvent()
1832 sendNotify(&msg); in onSensorEvent()
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_sock.c112 void *msg, in mm_camera_socket_sendmsg() argument
121 if (msg == NULL) { in mm_camera_socket_sendmsg()
129 iov[0].iov_base = msg; in mm_camera_socket_sendmsg()
172 void *msg, in mm_camera_socket_recvmsg() argument
183 if ( (msg == NULL) || (buf_size <= 0) ) { in mm_camera_socket_recvmsg()
194 iov[0].iov_base = msg; in mm_camera_socket_recvmsg()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_sock.c117 void *msg, in mm_camera_socket_sendmsg() argument
126 if (msg == NULL) { in mm_camera_socket_sendmsg()
134 iov[0].iov_base = msg; in mm_camera_socket_sendmsg()
178 void *msg, in mm_camera_socket_recvmsg() argument
189 if ( (msg == NULL) || (buf_size <= 0) ) { in mm_camera_socket_recvmsg()
200 iov[0].iov_base = msg; in mm_camera_socket_recvmsg()
Dmm_camera.c1499 void *msg, in mm_camera_util_sendmsg() argument
1508 if(mm_camera_socket_sendmsg(my_obj->ds_fd, msg, buf_size, sendfd) > 0) { in mm_camera_util_sendmsg()
/device/lge/mako/camera/mm-camera-interface/
Dmm_camera_sock.c112 void *msg, in mm_camera_socket_sendmsg() argument
121 if (msg == NULL) { in mm_camera_socket_sendmsg()
129 iov[0].iov_base = msg; in mm_camera_socket_sendmsg()
172 void *msg, in mm_camera_socket_recvmsg() argument
183 if ( (msg == NULL) || (buf_size <= 0) ) { in mm_camera_socket_recvmsg()
194 iov[0].iov_base = msg; in mm_camera_socket_recvmsg()
Dmm_camera_sock.h44 void *msg,
50 void *msg,
Dmm_camera_interface2.h303 int32_t (*sendmsg)(mm_camera_t * camera, void *msg, uint32_t buf_size, int sendfd);
482 int32_t cam_ops_sendmsg(int cam_id, void *msg, uint32_t buf_size, int sendfd);
Dmm_camera_interface2.c464 void *msg, in mm_camera_ops_sendmsg() argument
475 rc = mm_camera_sendmsg(my_obj, msg, buf_size, sendfd); in mm_camera_ops_sendmsg()
910 int32_t cam_ops_sendmsg(int cam_id, void *msg, uint32_t buf_size, int sendfd) in cam_ops_sendmsg() argument
915 rc = mm_cam->ops->sendmsg(mm_cam, msg, buf_size, sendfd); in cam_ops_sendmsg()
Dmm_camera.h354 extern int32_t mm_camera_sendmsg(mm_camera_obj_t *my_obj, void *msg, uint32_t buf_size, int sendfd);
/device/sample/frameworks/PlatformLibrary/jni/
DPlatformLibrary.cpp55 char msg[1000]; in throwException() local
56 snprintf(msg, sizeof(msg), fmt, data); in throwException()
57 env->ThrowNew(cls, msg); in throwException()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera_sock.h44 void *msg,
50 void *msg,
Dmm_camera.h414 void *msg,
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera_sock.h44 void *msg,
50 void *msg,
Dmm_camera.h445 void *msg,
/device/sample/frameworks/PlatformLibrary/java/com/example/android/platform_library/
DPlatformLibrary.java51 private static void yodel(String msg) { in yodel() argument
52 Log.d("PlatformLibrary", "yodel: " + msg); in yodel()
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DDemoKitActivity.java326 public void handleMessage(Message msg) {
327 switch (msg.what) {
329 SwitchMsg o = (SwitchMsg) msg.obj;
334 TemperatureMsg t = (TemperatureMsg) msg.obj;
339 LightMsg l = (LightMsg) msg.obj;
344 JoyMsg j = (JoyMsg) msg.obj;
/device/samsung/manta/libsensors/
Dsensors.cpp306 char msg; in pollEvents() local
307 int result = read(mPollFds[wake].fd, &msg, 1); in pollEvents()
309 ALOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg)); in pollEvents()
/device/lge/hammerhead/libsensors/
Dsensors.cpp361 char msg; in pollEvents() local
362 int result = read(mPollFds[wake].fd, &msg, 1); in pollEvents()
364 ALOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg)); in pollEvents()
/device/generic/goldfish/camera/fake-pipeline2/
DJpegCompressor.cpp225 bool JpegCompressor::checkError(const char *msg) { in checkError() argument
230 __FUNCTION__, msg, errBuffer); in checkError()
DJpegCompressor.h105 bool checkError(const char *msg);

12