Home
last modified time | relevance | path

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

1234

/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/logging/
DLogger.java60 private String getMsg(String msg) { in getMsg() argument
62 return mLogPrefix + msg; in getMsg()
64 return msg; in getMsg()
68 public void i(String msg) { in i() argument
69 Log.i(APP_TAG, getMsg(msg)); in i()
72 public void i(String msg, Throwable t) { in i() argument
73 Log.i(APP_TAG, getMsg(msg), t); in i()
76 public void d(String msg) { in d() argument
77 Log.d(APP_TAG, getMsg(msg)); in d()
80 public void d(String msg, Throwable t) { in d() argument
[all …]
/development/testrunner/
Dlogger.py48 msg = _PrependTimeStamp(new_str)
49 print msg
50 _WriteLog(msg)
52 def _WriteLog(msg): argument
56 file_handle.write('\n' + str(msg))
77 msg = _PrependTimeStamp(new_str)
79 print msg
80 _WriteLog(msg)
Derrors.py23 def __init__(self, msg=""): argument
24 self.msg = msg
/development/samples/ApiDemos/src/com/example/android/apis/app/
DMessengerServiceActivities.java46 public void handleMessage(Message msg) { in handleMessage() argument
47 switch (msg.what) { in handleMessage()
49 mCallbackText.setText("Received from service: " + msg.arg1); in handleMessage()
52 super.handleMessage(msg); in handleMessage()
79 Message msg = Message.obtain(null,
81 msg.replyTo = mMessenger;
82 mService.send(msg);
85 msg = Message.obtain(null,
87 mService.send(msg);
128 Message msg = Message.obtain(null, in doUnbindService() local
[all …]
DServiceStartArguments.java66 public void handleMessage(Message msg) { in handleMessage() argument
67 Bundle arguments = (Bundle)msg.obj; in handleMessage()
71 Log.i("ServiceStartArguments", "Message: " + msg + ", " in handleMessage()
74 if ((msg.arg2&Service.START_FLAG_REDELIVERY) == 0) { in handleMessage()
75 txt = "New cmd #" + msg.arg1 + ": " + txt; in handleMessage()
77 txt = "Re-delivered #" + msg.arg1 + ": " + txt; in handleMessage()
96 Log.i("ServiceStartArguments", "Done with #" + msg.arg1); in handleMessage()
97 stopSelf(msg.arg1); in handleMessage()
129 Message msg = mServiceHandler.obtainMessage(); in onStartCommand() local
130 msg.arg1 = startId; in onStartCommand()
[all …]
DMessengerService.java86 public void handleMessage(Message msg) { in handleMessage() argument
87 switch (msg.what) { in handleMessage()
89 mClients.add(msg.replyTo); in handleMessage()
92 mClients.remove(msg.replyTo); in handleMessage()
95 mValue = msg.arg1; in handleMessage()
109 super.handleMessage(msg); in handleMessage()
/development/ndk/platforms/android-9/arch-mips/include/machine/
Dcdefs.h35 #define __warn_references(sym,msg) argument
41 #define __warn_references(sym,msg) \ argument
43 " ; .ascii \"" msg "\" ; .text")
44 #define __indr_references(sym,msg) /* nothing */ argument
Dasm.h284 #define PANIC(msg) \ argument
288 MSG(msg)
290 #define PRINTF(msg) \ argument
294 MSG(msg)
296 #define MSG(msg) \ argument
298 9: .asciiz msg; \
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyMotionEvent.java153 StringBuilder msg = new StringBuilder(":Sending "); in injectEvent() local
154 msg.append(getTypeLabel()).append(" ("); in injectEvent()
157 msg.append("ACTION_DOWN"); in injectEvent()
160 msg.append("ACTION_MOVE"); in injectEvent()
163 msg.append("ACTION_UP"); in injectEvent()
166 msg.append("ACTION_CANCEL"); in injectEvent()
169 msg.append("ACTION_POINTER_DOWN ").append(me.getPointerId(me.getActionIndex())); in injectEvent()
172 msg.append("ACTION_POINTER_UP ").append(me.getPointerId(me.getActionIndex())); in injectEvent()
175 msg.append(me.getAction()); in injectEvent()
178 msg.append("):"); in injectEvent()
[all …]
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java62 public void sendMessage(String msg) { in sendMessage() argument
64 mChatClient.sendMessage(msg); in sendMessage()
77 public synchronized void updateMessages(String msg, boolean local) { in updateMessages() argument
78 Log.e(TAG, "Updating message: " + msg); in updateMessages()
81 msg = "me: " + msg; in updateMessages()
83 msg = "them: " + msg; in updateMessages()
87 messageBundle.putString("msg", msg); in updateMessages()
215 String msg = mMessageQueue.take(); in run() local
216 sendMessage(msg); in run()
261 public void sendMessage(String msg) { in sendMessage() argument
[all …]
/development/ndk/platforms/android-9/arch-x86/include/machine/
Dcdefs.h13 #define __warn_references(sym,msg) argument
19 #define __warn_references(sym,msg) \ argument
21 " ; .ascii \"" msg "\" ; .text");
/development/ndk/platforms/android-3/arch-arm/include/machine/
Dcdefs.h8 #define __warn_references(sym,msg) argument
14 #define __warn_references(sym,msg) \ argument
16 " ; .ascii \"" msg "\" ; .text");
Dasm.h117 #define WARN_REFERENCES(sym,msg) \ argument
118 .stabs msg ## ,30,0,0,0 ; \
121 #define WARN_REFERENCES(sym,msg) \ argument
122 .stabs msg,30,0,0,0 ; \
125 #define WARN_REFERENCES(sym,msg) \ argument
126 .stabs msg,30,0,0,0 ; \
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoy.java135 public boolean onKeyDown(int keyCode, KeyEvent msg) { in onKeyDown() argument
137 return super.onKeyDown(keyCode, msg); in onKeyDown()
139 return mJetBoyThread.doKeyDown(keyCode, msg); in onKeyDown()
147 public boolean onKeyUp(int keyCode, KeyEvent msg) { in onKeyUp() argument
149 return super.onKeyUp(keyCode, msg); in onKeyUp()
151 return mJetBoyThread.doKeyUp(keyCode, msg); in onKeyUp()
/development/tools/yuv420sp2rgb/
Ddebug.h12 #define FAILIF(cond, msg...) do { \ argument
15 fprintf(stderr, ##msg); \
32 #define FAILIF(cond, msg...) do { \ argument
34 fprintf(stderr, ##msg); \
/development/samples/AndroidBeamDemo/src/com/example/android/beam/
DBeam.java77 NdefMessage msg = new NdefMessage(NdefRecord.createMime( in createNdefMessage() local
89 return msg; in createNdefMessage()
105 public void handleMessage(Message msg) {
106 switch (msg.what) {
136 NdefMessage msg = (NdefMessage) rawMsgs[0]; in processIntent() local
138 mInfoText.setText(new String(msg.getRecords()[0].getPayload())); in processIntent()
/development/tools/emulator/system/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.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()
/development/ndk/platforms/android-3/include/linux/
Dmsg.h25 struct msg *msg_first;
26 struct msg *msg_last;
Dipmi_smi.h37 void (*done)(struct ipmi_smi_msg *msg);
48 struct ipmi_smi_msg *msg,
/development/samples/BluetoothHDP/src/com/example/bluetooth/health/
DBluetoothHDPService.java103 public void handleMessage(Message msg) { in handleMessage() argument
104 switch (msg.what) { in handleMessage()
108 mClient = msg.replyTo; in handleMessage()
116 registerApp(msg.arg1); in handleMessage()
124 mDevice = (BluetoothDevice) msg.obj; in handleMessage()
129 mDevice = (BluetoothDevice) msg.obj; in handleMessage()
133 super.handleMessage(msg); in handleMessage()
DBluetoothHDPActivity.java78 public void handleMessage(Message msg) {
79 switch (msg.what) {
84 msg.arg1));
90 msg.arg1));
107 msg.arg1));
115 msg.arg1));
119 super.handleMessage(msg);
205 Message msg = Message.obtain(null, BluetoothHDPService.MSG_REG_CLIENT);
206 msg.replyTo = mMessenger;
209 mHealthService.send(msg);
/development/samples/Support4Demos/src/com/example/android/supportv4/content/
DLocalServiceBroadcaster.java117 public void handleMessage(Message msg) {
118 switch (msg.what) {
128 super.handleMessage(msg);
145 Message msg = mHandler.obtainMessage(MSG_UPDATE); in onStartCommand() local
146 mHandler.sendMessageDelayed(msg, 1000); in onStartCommand()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java246 public void handleMessage(Message msg) {
247 switch (msg.what) {
249 if(D) Log.i(TAG, "MESSAGE_STATE_CHANGE: " + msg.arg1);
250 switch (msg.arg1) {
265 byte[] writeBuf = (byte[]) msg.obj;
271 byte[] readBuf = (byte[]) msg.obj;
273 String readMessage = new String(readBuf, 0, msg.arg1);
278 mConnectedDeviceName = msg.getData().getString(DEVICE_NAME);
283 Toast.makeText(getApplicationContext(), msg.getData().getString(TOAST),
DBluetoothChatService.java176 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_DEVICE_NAME); in connected() local
179 msg.setData(bundle); in connected()
180 mHandler.sendMessage(msg); in connected()
235 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); in connectionFailed() local
238 msg.setData(bundle); in connectionFailed()
239 mHandler.sendMessage(msg); in connectionFailed()
250 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); in connectionLost() local
253 msg.setData(bundle); in connectionLost()
254 mHandler.sendMessage(msg); in connectionLost()

1234