/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 32 String message; in testConvert_DegreesToDouble() local 36 message = "degreesToDoubleTest: Double should be -80.075, actual value is " + in testConvert_DegreesToDouble() 38 assertEquals(message, -80.075, result); in testConvert_DegreesToDouble() 43 String message; in testConvert_MinutesToDouble() local 47 message = "minutesToDoubleTest: Double should be -80.085, actual value is " + in testConvert_MinutesToDouble() 49 assertEquals(message, -80.085, result); in testConvert_MinutesToDouble() 54 String message; in testConvert_SecondsToDouble() local 58 message = "secondsToDoubleTest: Double should be -80.0675, actual value is " + in testConvert_SecondsToDouble() 60 assertEquals(message, -80.0675, result); in testConvert_SecondsToDouble() 65 String message; in testConvert_SecondsToDouble2() local [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DelayedMessageBuffer.java | 44 void add(HdmiCecMessage message) { in add() argument 51 switch (message.getOpcode()) { in add() 54 mBuffer.add(message); in add() 58 mBuffer.add(message); in add() 65 HdmiLogger.debug("Buffering message:" + message); in add() 72 HdmiCecMessage message = iter.next(); in removeActiveSource() local 73 if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE) { in removeActiveSource() 80 for (HdmiCecMessage message : mBuffer) { in isBuffered() 81 if (message.getOpcode() == opcode) { in isBuffered() 92 for (HdmiCecMessage message : copiedBuffer) { in processAllMessages() [all …]
|
D | HdmiCecLocalDevice.java | 219 boolean dispatchMessage(HdmiCecMessage message) { in dispatchMessage() argument 221 int dest = message.getDestination(); in dispatchMessage() 226 mCecMessageCache.cacheMessage(message); in dispatchMessage() 227 return onMessage(message); in dispatchMessage() 231 protected final boolean onMessage(HdmiCecMessage message) { in onMessage() argument 233 if (dispatchMessageToAction(message)) { in onMessage() 236 switch (message.getOpcode()) { in onMessage() 238 return handleActiveSource(message); in onMessage() 240 return handleInactiveSource(message); in onMessage() 242 return handleRequestActiveSource(message); in onMessage() [all …]
|
D | HdmiCecStandbyModeHandler.java | 27 boolean handle(HdmiCecMessage message); in handle() argument 32 public boolean handle(HdmiCecMessage message) { in handle() argument 39 public boolean handle(HdmiCecMessage message) { in handle() argument 50 public boolean handle(HdmiCecMessage message) { in handle() argument 51 mService.maySendFeatureAbortCommand(message, mReason); in handle() 58 public boolean handle(HdmiCecMessage message) { in handle() argument 60 mAborterRefused.handle(message); in handle() 69 public boolean handle(HdmiCecMessage message) { in handle() argument 71 if (HdmiCecLocalDevice.isPowerOnOrToggleCommand(message)) { in handle() 73 } else if (HdmiCecLocalDevice.isPowerOffOrToggleCommand(message)) { in handle() [all …]
|
D | HdmiCecLocalDeviceTv.java | 237 boolean dispatchMessage(HdmiCecMessage message) { in dispatchMessage() argument 239 if (mService.isPowerStandby() && mStandbyHandler.handleCommand(message)) { in dispatchMessage() 242 return super.onMessage(message); in dispatchMessage() 477 protected boolean handleActiveSource(HdmiCecMessage message) { in handleActiveSource() argument 479 int logicalAddress = message.getSource(); in handleActiveSource() 480 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() 485 mDelayedMessageBuffer.add(message); in handleActiveSource() 489 mDelayedMessageBuffer.add(message); in handleActiveSource() 499 protected boolean handleInactiveSource(HdmiCecMessage message) { in handleInactiveSource() argument 504 if (getActiveSource().logicalAddress != message.getSource()) { in handleInactiveSource() [all …]
|
D | HdmiCecLocalDevicePlayback.java | 169 protected boolean handleActiveSource(HdmiCecMessage message) { in handleActiveSource() argument 171 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() 184 protected boolean handleSetStreamPath(HdmiCecMessage message) { in handleSetStreamPath() argument 186 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSetStreamPath() 188 maySendActiveSource(message.getSource()); in handleSetStreamPath() 198 protected boolean handleRoutingChange(HdmiCecMessage message) { in handleRoutingChange() argument 200 int newPath = HdmiUtils.twoBytesToInt(message.getParams(), 2); in handleRoutingChange() 207 protected boolean handleRoutingInformation(HdmiCecMessage message) { in handleRoutingInformation() argument 209 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation() 236 protected boolean handleRequestActiveSource(HdmiCecMessage message) { in handleRequestActiveSource() argument [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | MoreAsserts.java | 64 String message, Object unexpected, Object actual) { in assertNotEqual() argument 66 failEqual(message, unexpected); in assertNotEqual() 84 String message, byte[] expected, byte[] actual) { in assertEquals() argument 86 failWrongLength(message, expected.length, actual.length); in assertEquals() 90 failWrongElement(message, i, expected[i], actual[i]); in assertEquals() 110 String message, int[] expected, int[] actual) { in assertEquals() argument 112 failWrongLength(message, expected.length, actual.length); in assertEquals() 116 failWrongElement(message, i, expected[i], actual[i]); in assertEquals() 136 String message, long[] expected, long[] actual) { in assertEquals() argument 138 failWrongLength(message, expected.length, actual.length); in assertEquals() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 565 public boolean processMessage(Message message) { in processMessage() argument 566 if (DBG) logd(getName() + message.toString()); in processMessage() 567 switch (message.what) { in processMessage() 569 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage() 571 mWifiChannel = (AsyncChannel) message.obj; in processMessage() 573 loge("Full connection failure, error = " + message.arg1); in processMessage() 579 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage() 582 loge("Client connection lost with reason: " + message.arg1); in processMessage() 589 ac.connect(mContext, getHandler(), message.replyTo); in processMessage() 592 mDiscoveryBlocked = (message.arg1 == ENABLED ? true : false); in processMessage() [all …]
|
/frameworks/base/core/jni/ |
D | android_database_SQLiteCommon.cpp | 29 void throw_sqlite3_exception(JNIEnv* env, const char* message) { in throw_sqlite3_exception() argument 30 throw_sqlite3_exception(env, NULL, message); in throw_sqlite3_exception() 36 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message) { in throw_sqlite3_exception() argument 43 sqlite3_errmsg(handle), message); in throw_sqlite3_exception() 47 throw_sqlite3_exception(env, SQLITE_OK, "unknown error", message); in throw_sqlite3_exception() 54 void throw_sqlite3_exception_errcode(JNIEnv* env, int errcode, const char* message) { in throw_sqlite3_exception_errcode() argument 55 throw_sqlite3_exception(env, errcode, "unknown error", message); in throw_sqlite3_exception_errcode() 62 const char* sqlite3Message, const char* message) { in throw_sqlite3_exception() argument 127 if (message) { in throw_sqlite3_exception() 129 fullMessage.append(message); in throw_sqlite3_exception() [all …]
|
/frameworks/base/core/java/android/net/nsd/ |
D | NsdManager.java | 302 public void handleMessage(Message message) { in handleMessage() argument 303 switch (message.what) { in handleMessage() 316 Object listener = getListener(message.arg2); in handleMessage() 318 Log.d(TAG, "Stale key " + message.arg2); in handleMessage() 321 NsdServiceInfo ns = getNsdService(message.arg2); in handleMessage() 322 switch (message.what) { in handleMessage() 324 String s = getNsdServiceInfoType((NsdServiceInfo) message.obj); in handleMessage() 328 removeListener(message.arg2); in handleMessage() 330 message.arg1); in handleMessage() 333 ((DiscoveryListener) listener).onServiceFound((NsdServiceInfo) message.obj); in handleMessage() [all …]
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityInteractionController.java | 102 Message message = mHandler.obtainMessage(); in findAccessibilityNodeInfoByAccessibilityIdClientThread() local 103 message.what = PrivateHandler.MSG_FIND_ACCESSIBILITY_NODE_INFO_BY_ACCESSIBILITY_ID; in findAccessibilityNodeInfoByAccessibilityIdClientThread() 104 message.arg1 = flags; in findAccessibilityNodeInfoByAccessibilityIdClientThread() 113 message.obj = args; in findAccessibilityNodeInfoByAccessibilityIdClientThread() 121 interrogatingTid).setSameThreadMessage(message); in findAccessibilityNodeInfoByAccessibilityIdClientThread() 123 mHandler.sendMessage(message); in findAccessibilityNodeInfoByAccessibilityIdClientThread() 127 private void findAccessibilityNodeInfoByAccessibilityIdUiThread(Message message) { in findAccessibilityNodeInfoByAccessibilityIdUiThread() argument 128 final int flags = message.arg1; in findAccessibilityNodeInfoByAccessibilityIdUiThread() 130 SomeArgs args = (SomeArgs) message.obj; in findAccessibilityNodeInfoByAccessibilityIdUiThread() 177 Message message = mHandler.obtainMessage(); in findAccessibilityNodeInfosByViewIdClientThread() local [all …]
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 714 Message message = mCaller.obtainMessageIOO(DO_INIT, connectionId, 716 mCaller.sendMessage(message); 720 Message message = mCaller.obtainMessage(DO_ON_INTERRUPT); 721 mCaller.sendMessage(message); 725 Message message = mCaller.obtainMessageO(DO_ON_ACCESSIBILITY_EVENT, event); 726 mCaller.sendMessage(message); 730 Message message = mCaller.obtainMessageI(DO_ON_GESTURE, gestureId); 731 mCaller.sendMessage(message); 735 Message message = mCaller.obtainMessage(DO_CLEAR_ACCESSIBILITY_CACHE); 736 mCaller.sendMessage(message); [all …]
|
/frameworks/base/core/java/android/os/ |
D | UEventObserver.java | 130 public UEvent(String message) { in UEvent() argument 132 int length = message.length(); in UEvent() 135 int equals = message.indexOf('=', offset); in UEvent() 136 int at = message.indexOf('\0', offset); in UEvent() 141 mMap.put(message.substring(offset, equals), in UEvent() 142 message.substring(equals + 1, at)); in UEvent() 182 String message = nativeWaitForNextEvent(); in run() local 183 if (message != null) { in run() 185 Log.d(TAG, message); in run() 187 sendEvent(message); in run() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellBroadcastHandler.java | 63 protected boolean handleSmsMessage(Message message) { in handleSmsMessage() argument 64 if (message.obj instanceof SmsCbMessage) { in handleSmsMessage() 65 handleBroadcastSms((SmsCbMessage) message.obj); in handleSmsMessage() 68 loge("handleMessage got object of type: " + message.obj.getClass().getName()); in handleSmsMessage() 77 protected void handleBroadcastSms(SmsCbMessage message) { in handleBroadcastSms() argument 82 if (message.isEmergencyMessage()) { in handleBroadcastSms() 83 log("Dispatching emergency SMS CB, SmsCbMessage is: " + message); in handleBroadcastSms() 88 log("Dispatching SMS CB, SmsCbMessage is: " + message); in handleBroadcastSms() 93 intent.putExtra("message", message); in handleBroadcastSms()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | UsimDataDownloadTest.java | 111 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_1); in testDataDownloadMessage1() local 112 assertTrue("message is SMS-PP data download", message.isUsimDataDownload()); in testDataDownloadMessage1() 116 mHandler.startDataDownload(message); in testDataDownloadMessage1() 121 mHandler.startDataDownload(message); in testDataDownloadMessage1() 126 mHandler.startDataDownload(message); in testDataDownloadMessage1() 131 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_5); in testDataDownloadMessage5() local 132 assertTrue("message is SMS-PP data download", message.isUsimDataDownload()); in testDataDownloadMessage5() 136 mHandler.startDataDownload(message); in testDataDownloadMessage5() 141 mHandler.startDataDownload(message); in testDataDownloadMessage5()
|
/frameworks/base/core/java/android/content/ |
D | OperationApplicationException.java | 30 public OperationApplicationException(String message) { in OperationApplicationException() argument 31 super(message); in OperationApplicationException() 34 public OperationApplicationException(String message, Throwable cause) { in OperationApplicationException() argument 35 super(message, cause); in OperationApplicationException() 46 public OperationApplicationException(String message, int numSuccessfulYieldPoints) { in OperationApplicationException() argument 47 super(message); in OperationApplicationException()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiStateMachine.java | 1856 private void handleScanRequest(int type, Message message) { in handleScanRequest() argument 1861 Bundle bundle = (Bundle) message.obj; in handleScanRequest() 1883 noteScanStart(message.arg1, workSource); in handleScanRequest() 1913 message.arg1, message.arg2, bundle); in handleScanRequest() 1920 Message msg = obtainMessage(CMD_START_SCAN, message.arg1, message.arg2, bundle); in handleScanRequest() 2451 private void logStateAndMessage(Message message, String state) { in logStateAndMessage() argument 2457 loge( " " + state + " " + getLogRecString(message)); in logStateAndMessage() 4266 private SupplicantState handleSupplicantStateChange(Message message) { in handleSupplicantStateChange() argument 4267 StateChangeResult stateChangeResult = (StateChangeResult) message.obj; in handleSupplicantStateChange() 4284 mSupplicantStateTracker.sendMessage(Message.obtain(message)); in handleSupplicantStateChange() [all …]
|
D | WifiApConfigStore.java | 81 public boolean processMessage(Message message) { in processMessage() argument 82 switch (message.what) { in processMessage() 85 Log.e(TAG, "Unexpected message: " + message); in processMessage() 88 mReplyChannel.replyToMessage(message, in processMessage() 92 Log.e(TAG, "Failed to handle " + message); in processMessage() 100 public boolean processMessage(Message message) { in processMessage() argument 101 switch (message.what) { in processMessage() 103 WifiConfiguration config = (WifiConfiguration) message.obj; in processMessage() 105 mWifiApConfig = (WifiConfiguration) message.obj; in processMessage() 108 Log.e(TAG, "Try to setup AP config without SSID: " + message); in processMessage() [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmEvent.java | 62 protected DrmEvent(int uniqueId, int type, String message, in DrmEvent() argument 67 if (null != message) { in DrmEvent() 68 mMessage = message; in DrmEvent() 83 protected DrmEvent(int uniqueId, int type, String message) { in DrmEvent() argument 87 if (null != message) { in DrmEvent() 88 mMessage = message; in DrmEvent()
|
/frameworks/base/docs/html/google/gcm/ |
D | ccs.jd | 78 <a href="server-ref.html">Server Reference</a> for a list of all the message 143 <code><message></code> stanzas to send JSON-encoded messages back and 144 forth. The body of the <code><message></code> must be:</p> 158 identifies the message in an XMPP connection. The ACK or NACK from CCS uses the 159 {@code message_id} to identify a message sent from 3rd-party app servers to CCS. 166 'ack' or 'nack', or 'control' (see formats below). Any GCM message with an 169 <p>For each device message your app server receives from CCS, it needs to send 170 an ACK message. 171 It never needs to send a NACK message. If you don't send an ACK for a message, 174 <p>CCS also sends an ACK or NACK for each server-to-device message. If you do not [all …]
|
D | server-ref.jd | 12 <li><a href="#send-downstream">Sending a downstream message</a></li> 13 <li><a href="#interpret-downstream">Interpreting a downstream message response</a></li> 17 <li><a href="#interpret-upstream">Interpreting an upstream XMPP message</a></li> 18 <li><a href="#upstream-response">Sending an upstream XMPP message response</a></li> 22 <li><a href="#error-codes">Downstream message error response codes (HTTP and XMPP)</a></li> 36 <li><a href="#error-codes">Downstream message error response codes (HTTP and XMPP)</a></li> 43 <p>This is the message that a 3rd-party app server sends to a client app. 45 <p>A downstream message includes the following components:</p> 47 <li>Target: specifies the recipient of the message.</li> 48 <li>Options: specifies attributes of the message.</li> [all …]
|
D | server.jd | 84 <li>Able to generate message IDs to uniquely identify each message it sends. Message IDs 128 another message until the response is received.</li> 150 <li>HTTP: Supported in JSON message format.</li> 159 <p>This section gives an overview of sending messages. For details of message syntax, 165 server sends a message (the details vary depending on the platform):</p> 167 <li>The 3rd-party app server sends a message to GCM servers.</li> 168 <li>The GCM connection server enqueues and stores the message if the device is offline.</li> 169 <li>When the device is online, GCM connection server sends the message to the device.</li> 170 <li>The client app processes the message. </li> 180 <p>Required. When your app server sends a message in GCM, it must specify a target.</p> [all …]
|
/frameworks/base/core/java/android/net/ |
D | DhcpStateMachine.java | 187 public boolean processMessage(Message message) { in processMessage() argument 188 if (DBG) Log.d(TAG, getName() + message.toString() + "\n"); in processMessage() 189 switch (message.what) { in processMessage() 195 Log.e(TAG, "Error! unhandled message " + message); in processMessage() 210 public boolean processMessage(Message message) { in processMessage() argument 212 if (DBG) Log.d(TAG, getName() + message.toString() + "\n"); in processMessage() 213 switch (message.what) { in processMessage() 243 public boolean processMessage(Message message) { in processMessage() argument 245 if (DBG) Log.d(TAG, getName() + message.toString() + "\n"); in processMessage() 246 switch (message.what) { in processMessage() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | CameraRuntimeException.java | 23 public CameraRuntimeException(int problem, String message) { in CameraRuntimeException() argument 24 super(message); in CameraRuntimeException() 26 mMessage = message; in CameraRuntimeException() 29 public CameraRuntimeException(int problem, String message, Throwable cause) { in CameraRuntimeException() argument 30 super(message, cause); in CameraRuntimeException() 32 mMessage = message; in CameraRuntimeException()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkMonitor.java | 312 public boolean processMessage(Message message) { in processMessage() argument 313 if (DBG) log(getName() + message.toString()); in processMessage() 314 switch (message.what) { in processMessage() 334 mUidResponsibleForReeval = message.arg1; in processMessage() 335 mMaxAttempts = message.arg2 != 0 ? message.arg2 : REEVALUATE_ATTEMPTS; in processMessage() 341 switch (message.arg1) { in processMessage() 372 public boolean processMessage(Message message) { in processMessage() argument 373 if (DBG) log(getName() + message.toString()); in processMessage() 374 switch (message.what) { in processMessage() 408 public boolean processMessage(Message message) { in processMessage() argument [all …]
|