Home
last modified time | relevance | path

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

1234

/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/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DPermissionRequestFragment.java131 public boolean onConsoleMessage(@NonNull ConsoleMessage message) {
132 switch (message.messageLevel()) {
134 Log.v(TAG, message.message());
137 Log.i(TAG, message.message());
140 Log.w(TAG, message.message());
143 Log.e(TAG, message.message());
146 Log.d(TAG, message.message());
150 mConsoleMonitor.onConsoleMessage(message);
177 public void onConsoleMessage(ConsoleMessage message); in onConsoleMessage() argument
/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()
130 .setContentText(message) // the contents of the entry in showAppNotification()
158 CharSequence message; in showInterstitialNotification() local
160 case 0: message = "i am ready for some dinner"; break; in showInterstitialNotification()
161 case 1: message = "how about thai down the block?"; break; in showInterstitialNotification()
[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/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/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessageLogger.java39 public static void logMessage(Context context, String message) { in logMessage() argument
41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage()
43 .putString(LOG_KEY, prefs.getString(LOG_KEY, "") + LINE_BREAKS + message) in logMessage()
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DNotificationIntentReceiver.java43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE); in onReceive() local
50 message = message + ": \"" + replyMessage + "\""; in onReceive()
52 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); 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/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DMessageDialogFragment.java29 public static MessageDialogFragment newInstance(int message) { in newInstance() argument
32 args.putInt(ARG_MESSAGE_INT, message); in newInstance()
37 public static MessageDialogFragment newInstance(String message) { in newInstance() argument
40 args.putString(ARG_MESSAGE_STRING, message); in newInstance()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyViewException.java31 public MonkeyViewException(String message) { in MonkeyViewException() argument
32 super(message); in MonkeyViewException()
/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/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DGlobal.java24 public static void showToast(Context context, String message) { in showToast() argument
25 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DLogHelper.java80 String message; in log() local
83 message = messages[0].toString(); in log()
92 message = sb.toString(); in log()
94 Log.println(level, tag, message); in log()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DUtils.java32 public static void showToast(Context context, String message) { in showToast() argument
33 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
/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/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatFragment.java163 mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message); in setupChat()
177 String message = textView.getText().toString(); in setupChat()
178 sendMessage(message); in setupChat()
207 private void sendMessage(String message) { in sendMessage() argument
215 if (message.length() > 0) { in sendMessage()
217 byte[] send = message.getBytes(); in sendMessage()
234 String message = view.getText().toString();
235 sendMessage(message);
/development/samples/LceDemo/src/com/example/android/lce/
DLceDemoActivity.java67 Message message = handler.obtainMessage(); in onCreate() local
68 message.obj = "New downlink capacity received: " + in onCreate()
71 handler.sendMessage(message); in onCreate()
/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/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/
DMainPhoneActivity.java369 private void logToUi(final String message) { in logToUi() argument
375 if (!message.isEmpty()) { in logToUi()
376 Log.d(TAG, message); in logToUi()
377 mOutputTextView.setText(message); in logToUi()
381 if (!message.isEmpty()) { in logToUi()
387 Log.d(TAG, message); in logToUi()
388 mOutputTextView.setText(message); in logToUi()
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/sms/
DSmsTest.java65 Uri message = Uri.parse("content://sms/"); in getSmsCursor() local
69 c = r.query(message,null,null,null,null); in getSmsCursor()

1234