Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 33) 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/
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()
DEmulatedCameraDevice.cpp329 const ControlMessage msg = THREAD_STOP; in stopThread() local
331 TEMP_FAILURE_RETRY(write(mThreadControl, &msg, sizeof(msg))); in stopThread()
332 if (wres == sizeof(msg)) { in stopThread()
390 ControlMessage msg; in Select() local
391 res = TEMP_FAILURE_RETRY(read(mControlFD, &msg, sizeof(msg))); in Select()
392 if (res != sizeof(msg)) { in Select()
398 if (msg == THREAD_STOP) { in Select()
402 ALOGE("Unknown worker thread message %d", msg); in Select()
DEmulatedCamera3.cpp172 void EmulatedCamera3::sendNotify(camera3_notify_msg_t *msg) { in sendNotify() argument
173 mCallbackOps->notify(mCallbackOps, msg); in sendNotify()
DEmulatedCamera3.h191 void sendNotify(camera3_notify_msg_t *msg);
DEmulatedFakeCamera3.cpp2240 camera3_notify_msg_t msg; in onSensorEvent() local
2241 msg.type = CAMERA3_MSG_SHUTTER; in onSensorEvent()
2242 msg.message.shutter.frame_number = frameNumber; in onSensorEvent()
2243 msg.message.shutter.timestamp = timestamp; in onSensorEvent()
2244 sendNotify(&msg); in onSensorEvent()
/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()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_sock.c117 void *msg, in mm_camera_socket_sendmsg() argument
127 if (msg == NULL) { in mm_camera_socket_sendmsg()
135 iov[0].iov_base = msg; in mm_camera_socket_sendmsg()
180 void *msg, in mm_camera_socket_recvmsg() argument
191 if ( (msg == NULL) || (buf_size <= 0) ) { in mm_camera_socket_recvmsg()
202 iov[0].iov_base = msg; in mm_camera_socket_recvmsg()
/device/moto/shamu/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/lge/hammerhead/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()
/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/moto/shamu/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera_sock.h44 void *msg,
50 void *msg,
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera_sock.h44 void *msg,
50 void *msg,
/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/hammerhead/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera_sock.h44 void *msg,
50 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/asus/flo/power/
Dpower_flo.c115 char msg[UEVENT_MSG_LEN]; in uevent_event() local
119 n = recv(pfd.fd, msg, UEVENT_MSG_LEN, MSG_DONTWAIT); in uevent_event()
127 cp = msg; in uevent_event()
/device/lge/hammerhead/power/
Dpower_hammerhead.c115 char msg[UEVENT_MSG_LEN]; in uevent_event() local
119 n = recv(pfd.fd, msg, UEVENT_MSG_LEN, MSG_DONTWAIT); in uevent_event()
127 cp = msg; in uevent_event()
/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.h105 bool checkError(const char *msg);
DJpegCompressor.cpp225 bool JpegCompressor::checkError(const char *msg) { in checkError() argument
230 __FUNCTION__, msg, errBuffer); in checkError()
/device/htc/flounder/audio/soundtrigger/
Dsound_trigger_hw.c252 char msg[UEVENT_MSG_LEN]; in callback_thread_loop() local
297 n = uevent_kernel_multicast_recv(fds[0].fd, msg, UEVENT_MSG_LEN); in callback_thread_loop()
303 if (strstr(msg + i, "HOTWORD")) { in callback_thread_loop()
322 i += strlen(msg + i) + 1; in callback_thread_loop()
/device/htc/flounder/sensor_hub/libsensors/
Dsensors.cpp729 char msg(WAKE_MESSAGE); in pollEvents() local
730 int result = read(mPollFds[wake].fd, &msg, 1); in pollEvents()
732 ALOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg)); in pollEvents()

12