Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 50) sorted by relevance

12

/development/samples/USB/AdbTest/src/com/android/adb/
DAdbSocket.java39 AdbMessage message = new AdbMessage(); in open() local
40 message.set(AdbMessage.A_OPEN, mId, 0, destination); in open()
41 if (! message.write(mDevice)) { in open()
55 public void handleMessage(AdbMessage message) { in handleMessage() argument
56 switch (message.getCommand()) { in handleMessage()
58 mPeerId = message.getArg0(); in handleMessage()
64 mDevice.log(message.getDataString()); in handleMessage()
71 AdbMessage message = new AdbMessage(); in sendReady() local
72 message.set(AdbMessage.A_OKAY, mId, mPeerId); in sendReady()
73 message.write(mDevice); in sendReady()
DAdbDevice.java145 AdbMessage message = new AdbMessage(); in connect() local
146 message.set(AdbMessage.A_CNXN, AdbMessage.A_VERSION, AdbMessage.MAX_PAYLOAD, "host::\0"); in connect()
147 message.write(this); in connect()
151 private void handleConnect(AdbMessage message) { in handleConnect() argument
152 if (message.getDataString().startsWith("device:")) { in handleConnect()
165 void dispatchMessage(AdbMessage message) { in dispatchMessage() argument
166 int command = message.getCommand(); in dispatchMessage()
172 handleConnect(message); in dispatchMessage()
178 AdbSocket socket = getSocket(message.getArg1()); in dispatchMessage()
182 socket.handleMessage(message); in dispatchMessage()
[all …]
/development/tools/idegen/src/
DLog.java24 static void debug(String message) { in debug() argument
26 info(message); in debug()
30 static void info(String message) { in info() argument
31 System.out.println(message); in info()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DIncomingMessage.java107 CharSequence message; in showAppNotification() local
109 case 0: message = "r u hungry? i am starved"; break; in showAppNotification()
110 case 1: message = "im nearby u"; break; in showAppNotification()
111 default: message = "kthx. meet u for dinner. cul8r"; break; in showAppNotification()
119 makeMessageIntentStack(this, from, message), PendingIntent.FLAG_CANCEL_CURRENT); in showAppNotification()
122 String tickerText = getString(R.string.imcoming_message_ticker_text, message); in showAppNotification()
129 notif.setLatestEventInfo(this, from, message, contentIntent); in showAppNotification()
156 CharSequence message; in showInterstitialNotification() local
158 case 0: message = "i am ready for some dinner"; break; in showInterstitialNotification()
159 case 1: message = "how about thai down the block?"; break; in showInterstitialNotification()
[all …]
DIncomingMessageView.java49 ((TextView)findViewById(R.id.message)).setText( in onCreate()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyViewException.java31 public MonkeyViewException(String message) { in MonkeyViewException() argument
32 super(message); in MonkeyViewException()
DMonkeySourceNetwork.java61 private final String message; field in MonkeySourceNetwork.MonkeyCommandReturn
65 this.message = null; in MonkeyCommandReturn()
69 String message) { in MonkeyCommandReturn() argument
71 this.message = message; in MonkeyCommandReturn()
75 return message != null; in hasMessage()
79 return message; in getMessage()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsMessagingDemo.java118 for (String message : messages) { in onCreate()
119 sms.sendTextMessage(recipient, null, message, PendingIntent.getBroadcast( in onCreate()
129 String message = null; in onCreate()
133 message = "Message sent!"; in onCreate()
137 message = "Error."; in onCreate()
140 message = "Error: No service."; in onCreate()
143 message = "Error: Null PDU."; in onCreate()
146 message = "Error: Radio off."; in onCreate()
154 statusView.setText(message); in onCreate()
DSmsMessageReceiver.java41 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in onReceive() local
42 String fromAddress = message.getOriginatingAddress(); in onReceive()
71 di.putExtra(SmsReceivedDialog.SMS_MESSAGE_EXTRA, message.getMessageBody().toString()); in onReceive()
/development/apps/Development/src/com/android/development/
DLogViewer.java108 CharSequence message in run() local
113 .append(message) in run()
154 private final CharSequence message; field in LogViewer.AppendCharacters
156 public AppendCharacters(CharSequence message) { in AppendCharacters() argument
157 this.message = message; in AppendCharacters()
161 text.getText().append(message); in run()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiChatFragment.java90 String message = items.get(position); in getView() local
91 if (message != null && !message.isEmpty()) { in getView()
96 nameText.setText(message); in getView()
97 if (message.startsWith("Me: ")) { in getView()
/development/samples/training/testingfun/app/src/com/example/android/testingfun/lesson5/
DSenderActivity.java41 final CharSequence message = messageInputEditText.getText(); in onCreate()
42 startActivity(ReceiverActivity.makeIntent(SenderActivity.this, message)); in onCreate()
DReceiverActivity.java45 public static Intent makeIntent(Context context, CharSequence message) { in makeIntent() argument
47 .putExtra(EXTRA_SENDER_MESSAGE_TEXT, message); in makeIntent()
/development/samples/training/notify-user/src/com/example/android/pingme/
DResultActivity.java33 String message = getIntent().getStringExtra(CommonConstants.EXTRA_MESSAGE); in onCreate() local
35 text.setText(message); in onCreate()
DMainActivity.java48 String message = msgText.getText().toString(); in onPingClick() local
50 mServiceIntent.putExtra(CommonConstants.EXTRA_MESSAGE, message); in onPingClick()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java140 mConversationArrayAdapter = new ArrayAdapter<String>(this, R.layout.message); in setupChat()
154 String message = view.getText().toString(); in setupChat()
155 sendMessage(message); in setupChat()
200 private void sendMessage(String message) { in sendMessage() argument
208 if (message.length() > 0) { in sendMessage()
210 byte[] send = message.getBytes(); in sendMessage()
225 String message = view.getText().toString();
226 sendMessage(message);
/development/samples/ApiDemos/src/com/example/android/apis/view/
DSplitTouchView.java59 String message = getResources().getString(R.string.split_touch_view_cheese_toast,
62 Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT);
DGameControllerInput.java287 StringBuilder message = new StringBuilder(); in onJoystickMotion() local
288 message.append(mDevice.getName()).append(" - Joystick Motion:\n"); in onJoystickMotion()
295 message.append(" ").append(MotionEvent.axisToString(axis)).append(": "); in onJoystickMotion()
299 message.append(event.getHistoricalAxisValue(axis, historyPos)); in onJoystickMotion()
300 message.append(", "); in onJoystickMotion()
304 message.append(value); in onJoystickMotion()
305 message.append("\n"); in onJoystickMotion()
307 Log.i(TAG, message.toString()); in onJoystickMotion()
DSecureView.java113 String message = messages[mClickCount++ % messages.length]; in setClickedAction()
117 .setMessage(message) in setClickedAction()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java155 byte[] message = new byte[1]; in sendCommand()
156 message[0] = (byte)control; in sendCommand()
158 mConnection.controlTransfer(0x21, 0x9, 0x200, 0, message, message.length, 0); in sendCommand()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPurgeableBitmap.java105 private void showAlertDialog(String message) { in showAlertDialog() argument
107 builder.setMessage(message) in showAlertDialog()
/development/tools/etc1tool/
Detc1tool.cpp31 void usage(char* message, ...) { in usage() argument
32 if (message) { in usage()
34 va_start(ap, message); in usage()
35 vfprintf(stderr, message, ap); in usage()
100 void PNGAPI user_error_fn(png_structp png_ptr, png_const_charp message) { in user_error_fn() argument
101 fprintf(stderr, "PNG error: %s\n", message); in user_error_fn()
104 void PNGAPI user_warning_fn(png_structp png_ptr, png_const_charp message) { in user_warning_fn() argument
105 fprintf(stderr, "PNG warning: %s\n", message); in user_warning_fn()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DClockBackService.java226 public void handleMessage(Message message) {
227 switch (message.what) {
229 String utterance = (String) message.obj;
248 int resourceId = message.arg1;
255 int key = message.arg1;
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dapp-win32.c162 static LRESULT CALLBACK wndProc(HWND wnd, UINT message, in wndProc() argument
168 switch (message) in wndProc()
201 return DefWindowProc(wnd, message, wParam, lParam); in wndProc()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java465 public void setState(int mode, CharSequence message) { in setState() argument
500 if (message != null) { in setState()
501 str = message + "\n" + str; in setState()
757 CharSequence message = ""; in updatePhysics() local
775 message = res.getText(R.string.message_off_pad); in updatePhysics()
777 message = res.getText(R.string.message_bad_angle); in updatePhysics()
779 message = res.getText(R.string.message_too_fast); in updatePhysics()
785 setState(result, message); in updatePhysics()

12