/development/samples/USB/AdbTest/src/com/android/adb/ |
D | AdbSocket.java | 39 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()
|
D | AdbDevice.java | 145 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/ApiDemos/src/com/example/android/apis/app/ |
D | IncomingMessage.java | 107 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/ |
D | Log.java | 24 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/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | PermissionRequestFragment.java | 177 public boolean onConsoleMessage(@NonNull ConsoleMessage message) { 178 switch (message.messageLevel()) { 180 Log.v(TAG, message.message()); 183 Log.i(TAG, message.message()); 186 Log.w(TAG, message.message()); 189 Log.e(TAG, message.message()); 192 Log.d(TAG, message.message()); 196 mConsoleMonitor.onConsoleMessage(message); 228 void onConsoleMessage(ConsoleMessage message); in onConsoleMessage() argument
|
D | MessageDialogFragment.java | 34 public static MessageDialogFragment newInstance(@StringRes int message) { in newInstance() argument 37 args.putInt(ARG_MESSAGE_RES_ID, message); in newInstance()
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | SmsMessagingDemo.java | 118 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()
|
D | SmsMessageReceiver.java | 41 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/ |
D | MessageLogger.java | 39 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/ |
D | NotificationIntentReceiver.java | 43 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/ |
D | LogViewer.java | 108 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/ |
D | MessageDialogFragment.java | 29 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/ |
D | MonkeyViewException.java | 31 public MonkeyViewException(String message) { in MonkeyViewException() argument 32 super(message); in MonkeyViewException()
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiChatFragment.java | 90 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/ |
D | Global.java | 24 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/ |
D | LogHelper.java | 80 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/browseable/AppShortcuts/src/com.example.android.appshortcuts/ |
D | Utils.java | 27 public static void showToast(Context context, String message) { in showToast() argument 29 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
D | Utils.java | 27 public static void showToast(Context context, String message) { in showToast() argument 29 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
D | BluetoothChat.java | 140 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/ |
D | BluetoothChatFragment.java | 163 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/ |
D | LceDemoActivity.java | 67 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/ |
D | SenderActivity.java | 41 final CharSequence message = messageInputEditText.getText(); in onCreate() 42 startActivity(ReceiverActivity.makeIntent(SenderActivity.this, message)); in onCreate()
|
D | ReceiverActivity.java | 45 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/ |
D | ResultActivity.java | 33 String message = getIntent().getStringExtra(CommonConstants.EXTRA_MESSAGE); in onCreate() local 35 text.setText(message); in onCreate()
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
D | MainPhoneActivity.java | 369 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()
|