Home
last modified time | relevance | path

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

12345678910>>...44

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java33 String message; in testConvert_DegreesToDouble() local
37 message = "degreesToDoubleTest: Double should be -80.075, actual value is " + in testConvert_DegreesToDouble()
39 assertEquals(message, -80.075, result); in testConvert_DegreesToDouble()
44 String message; in testConvert_MinutesToDouble() local
48 message = "minutesToDoubleTest: Double should be -80.085, actual value is " + in testConvert_MinutesToDouble()
50 assertEquals(message, -80.085, result); in testConvert_MinutesToDouble()
55 String message; in testConvert_SecondsToDouble() local
59 message = "secondsToDoubleTest: Double should be -80.0675, actual value is " + in testConvert_SecondsToDouble()
61 assertEquals(message, -80.0675, result); in testConvert_SecondsToDouble()
66 String message; in testConvert_SecondsToDouble2() local
[all …]
/frameworks/native/libs/vr/libpdx/fuzz/
Dmessage_fuzzer.cpp60 Message message = Message(info); in LLVMFuzzerTestOneInput() local
64 message.GetProcessId(); in LLVMFuzzerTestOneInput()
65 message.GetThreadId(); in LLVMFuzzerTestOneInput()
66 message.GetEffectiveUserId(); in LLVMFuzzerTestOneInput()
67 message.GetEffectiveGroupId(); in LLVMFuzzerTestOneInput()
68 message.GetChannelId(); in LLVMFuzzerTestOneInput()
69 message.GetMessageId(); in LLVMFuzzerTestOneInput()
70 message.GetOp(); in LLVMFuzzerTestOneInput()
71 message.GetFlags(); in LLVMFuzzerTestOneInput()
72 message.GetSendLength(); in LLVMFuzzerTestOneInput()
[all …]
Dhelpers.h85 Status<void> MessageReceive(Message* message) { in MessageReceive() argument
107 *message = Message(info); in MessageReceive()
142 Status<RemoteChannelHandle> PushChannel(Message* message, int flags, in PushChannel() argument
144 UNUSED(message); in PushChannel()
155 Status<int> CheckChannel(const Message* message, ChannelReference ref, in CheckChannel() argument
157 UNUSED(message); in CheckChannel()
164 Status<void> MessageReply(Message* message, int return_code) { in MessageReply() argument
165 UNUSED(message); in MessageReply()
171 Status<void> MessageReplyFd(Message* message, unsigned int push_fd) { in MessageReplyFd() argument
172 UNUSED(message); in MessageReplyFd()
[all …]
/frameworks/base/test-base/src/junit/framework/
DAssert.java18 static public void assertTrue(String message, boolean condition) { in assertTrue() argument
20 fail(message); in assertTrue()
33 static public void assertFalse(String message, boolean condition) { in assertFalse() argument
34 assertTrue(message, !condition); in assertFalse()
46 static public void fail(String message) { in fail() argument
47 if (message == null) { in fail()
50 throw new AssertionFailedError(message); in fail()
62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
67 failNotEquals(message, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevice.java238 boolean dispatchMessage(HdmiCecMessage message) { in dispatchMessage() argument
240 int dest = message.getDestination(); in dispatchMessage()
245 mCecMessageCache.cacheMessage(message); in dispatchMessage()
246 return onMessage(message); in dispatchMessage()
250 protected final boolean onMessage(HdmiCecMessage message) { in onMessage() argument
252 if (dispatchMessageToAction(message)) { in onMessage()
255 switch (message.getOpcode()) { in onMessage()
257 return handleActiveSource(message); in onMessage()
259 return handleInactiveSource(message); in onMessage()
261 return handleRequestActiveSource(message); in onMessage()
[all …]
DDelayedMessageBuffer.java42 void add(HdmiCecMessage message) { in add() argument
49 switch (message.getOpcode()) { in add()
52 mBuffer.add(message); in add()
56 mBuffer.add(message); in add()
63 HdmiLogger.debug("Buffering message:" + message); in add()
70 HdmiCecMessage message = iter.next(); in removeActiveSource() local
71 if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE) { in removeActiveSource()
78 for (HdmiCecMessage message : mBuffer) { in isBuffered()
79 if (message.getOpcode() == opcode) { in isBuffered()
90 for (HdmiCecMessage message : copiedBuffer) { in processAllMessages()
[all …]
DHdmiCecLocalDeviceSource.java117 protected boolean handleActiveSource(HdmiCecMessage message) { in handleActiveSource() argument
119 int logicalAddress = message.getSource(); in handleActiveSource()
120 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource()
135 protected boolean handleRequestActiveSource(HdmiCecMessage message) { in handleRequestActiveSource() argument
137 maySendActiveSource(message.getSource()); in handleRequestActiveSource()
143 protected boolean handleSetStreamPath(HdmiCecMessage message) { in handleSetStreamPath() argument
145 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSetStreamPath()
149 setAndBroadcastActiveSource(message, physicalAddress); in handleSetStreamPath()
157 protected boolean handleRoutingChange(HdmiCecMessage message) { in handleRoutingChange() argument
160 mService.maySendFeatureAbortCommand(message, Constants.ABORT_REFUSED); in handleRoutingChange()
[all …]
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java67 String message, Object unexpected, Object actual) { in assertNotEqual() argument
69 failEqual(message, unexpected); in assertNotEqual()
87 String message, byte[] expected, byte[] actual) { in assertEquals() argument
89 failWrongLength(message, expected.length, actual.length); in assertEquals()
93 failWrongElement(message, i, expected[i], actual[i]); in assertEquals()
113 String message, int[] expected, int[] actual) { in assertEquals() argument
115 failWrongLength(message, expected.length, actual.length); in assertEquals()
119 failWrongElement(message, i, expected[i], actual[i]); in assertEquals()
139 String message, long[] expected, long[] actual) { in assertEquals() argument
141 failWrongLength(message, expected.length, actual.length); in assertEquals()
[all …]
/frameworks/native/cmds/surfacereplayer/proto/src/
Dtrace.proto4 message Trace {
8 message Increment {
23 message Transaction {
31 message SurfaceChange {
52 message PositionChange {
57 message SizeChange {
62 message AlphaChange {
66 message CornerRadiusChange {
70 message LayerChange {
74 message CropChange {
[all …]
/frameworks/rs/script_api/include/
Drs_debug.rsh33 * rsDebug: Log a message and values
35 * This function prints a message to the standard log, followed by the provided values.
41 rsDebug(const char* message, double a);
44 rsDebug(const char* message, int a);
47 rsDebug(const char* message, uint a);
50 rsDebug(const char* message, long a);
53 rsDebug(const char* message, ulong a);
57 rsDebug(const char* message, int2 a);
62 rsDebug(const char* message, int3 a);
67 rsDebug(const char* message, int4 a);
[all …]
/frameworks/av/media/bufferpool/2.0/tests/
Dmulti.cpp127 bool sendMessage(int *pipes, const PipeMessage &message) { in sendMessage() argument
128 int ret = write(pipes[1], message.array, sizeof(PipeMessage)); in sendMessage()
132 bool receiveMessage(int *pipes, PipeMessage *message) { in receiveMessage() argument
133 int ret = read(pipes[0], message->array, sizeof(PipeMessage)); in receiveMessage()
139 PipeMessage message; in doReceiver() local
142 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
143 sendMessage(mResultPipeFds, message); in doReceiver()
148 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
149 sendMessage(mResultPipeFds, message); in doReceiver()
152 message.data.command = PipeCommand::INIT_OK; in doReceiver()
[all …]
/frameworks/av/media/bufferpool/1.0/vts/
Dmulti.cpp127 bool sendMessage(int *pipes, const PipeMessage &message) { in sendMessage() argument
128 int ret = write(pipes[1], message.array, sizeof(PipeMessage)); in sendMessage()
132 bool receiveMessage(int *pipes, PipeMessage *message) { in receiveMessage() argument
133 int ret = read(pipes[0], message->array, sizeof(PipeMessage)); in receiveMessage()
139 PipeMessage message; in doReceiver() local
142 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
143 sendMessage(mResultPipeFds, message); in doReceiver()
148 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
149 sendMessage(mResultPipeFds, message); in doReceiver()
152 message.data.command = PipeCommand::INIT_OK; in doReceiver()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java67 Message message = (Message) invocation.getArguments()[2]; in testHelper()
69 message.obj = ar; in testHelper()
70 message.sendToTarget(); in testHelper()
78 Message message = (Message) invocation.getArguments()[7]; in testHelper()
81 message.obj = ar; in testHelper()
82 message.sendToTarget(); in testHelper()
91 Message message = (Message) invocation.getArguments()[1]; in testHelper()
92 message.sendToTarget(); in testHelper()
306 Message message = (Message) invocation.getArguments()[2]; in testAID_OnlyARAM()
309 message.obj = ar; in testAID_OnlyARAM()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierActionAgentTest.java97 ArgumentCaptor<Message> message = ArgumentCaptor.forClass(Message.class); in testCarrierActionResetOnAPM() local
98 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
99 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
105 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
106 assertEquals(DATA_CARRIER_ACTION_EVENT, message.getValue().what); in testCarrierActionResetOnAPM()
107 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
108 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
109 assertEquals(RADIO_CARRIER_ACTION_EVENT, message.getValue().what); in testCarrierActionResetOnAPM()
110 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
119 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMessageCapturingHandler.java52 public boolean sendMessageAtTime(Message message, long uptimeMillis) { in sendMessageAtTime() argument
53 timedMessages.add(new Pair<>(Message.obtain(message), uptimeMillis)); in sendMessageAtTime()
54 return super.sendMessageAtTime(message, Long.MAX_VALUE); in sendMessageAtTime()
62 Message message = timedMessages.remove(0).first; in sendOneMessage() local
63 removeMessages(message.what, message.obj); in sendOneMessage()
64 dispatchMessage(message); in sendOneMessage()
75 Message message = timedMessages.remove(timedMessages.size() - 1).first; in sendLastMessage() local
76 removeMessages(message.what, message.obj); in sendLastMessage()
77 dispatchMessage(message); in sendLastMessage()
91 Message message = timedMessages.get(i).first; in removeAllMessages() local
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dmock_service_endpoint.h19 Status<RemoteChannelHandle>(Message* message, int flags,
22 Status<int>(const Message* message, ChannelReference ref,
24 MOCK_METHOD1(MessageReceive, Status<void>(Message* message));
25 MOCK_METHOD2(MessageReply, Status<void>(Message* message, int return_code));
27 Status<void>(Message* message, unsigned int push_fd));
29 Status<void>(Message* message,
32 Status<void>(Message* message,
35 Status<void>(Message* message,
38 Status<size_t>(Message* message, const iovec* vector,
41 Status<size_t>(Message* message, const iovec* vector,
[all …]
Dservice_endpoint.h69 virtual Status<RemoteChannelHandle> PushChannel(Message* message, int flags,
77 virtual Status<int> CheckChannel(const Message* message, ChannelReference ref,
81 virtual Status<void> MessageReceive(Message* message) = 0;
84 virtual Status<void> MessageReply(Message* message, int return_code) = 0;
87 virtual Status<void> MessageReplyFd(Message* message,
92 Message* message, const LocalChannelHandle& handle) = 0;
96 Message* message, const BorrowedChannelHandle& handle) = 0;
100 Message* message, const RemoteChannelHandle& handle) = 0;
103 virtual Status<size_t> ReadMessageData(Message* message, const iovec* vector,
107 virtual Status<size_t> WriteMessageData(Message* message, const iovec* vector,
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java943 public boolean processMessage(Message message) { in processMessage() argument
944 if (mVerboseLoggingEnabled) logd(getName() + message.toString()); in processMessage()
945 switch (message.what) { in processMessage()
947 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
951 mWifiChannel = (AsyncChannel) message.obj; in processMessage()
953 loge("Full connection failure, error = " + message.arg1); in processMessage()
959 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage()
962 loge("Client connection lost with reason: " + message.arg1); in processMessage()
969 ac.connect(mContext, getHandler(), message.replyTo); in processMessage()
972 mDiscoveryBlocked = (message.arg1 == ENABLED ? true : false); in processMessage()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java94 String message) { in checkCallingOrSelfReadPhoneState() argument
96 callingPackage, callingFeatureId, message); in checkCallingOrSelfReadPhoneState()
102 String message) { in checkCallingOrSelfReadPhoneStateNoThrow() argument
105 callingFeatureId, message); in checkCallingOrSelfReadPhoneStateNoThrow()
135 @Nullable String callingFeatureId, String message) { in checkReadPhoneState() argument
138 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, uid, message); in checkReadPhoneState()
145 android.Manifest.permission.READ_PHONE_STATE, pid, uid, message); in checkReadPhoneState()
150 enforceCarrierPrivilege(context, subId, uid, message); in checkReadPhoneState()
192 String callingPackage, @Nullable String callingFeatureId, String message) { in checkReadPhoneStateOnAnyActiveSub() argument
195 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, uid, message); in checkReadPhoneStateOnAnyActiveSub()
[all …]
/frameworks/rs/script_api/
Drs_debug.spec30 arg: const char* message
32 summary: Log a message and values
34 This function prints a message to the standard log, followed by the provided values.
46 arg: const char* message
56 arg: const char* message
64 arg: const char* message
73 arg: const char* message
83 arg: const char* message
90 arg: const char* message
98 arg: const char* message
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dremote_method.h90 UnpackArguments(Class& instance, MethodType method, Message& message,
94 message_(message),
123 inline void RemoteMethodError(Message& message, int error_code) {
124 const auto status = message.ReplyError(error_code);
137 Message& message, const Return& return_value) {
138 const auto status = message.Reply(return_value);
146 Message& message, const Return& return_value) {
148 rpc::ServicePayload<ReplyBuffer> payload(message);
151 auto ret = message.WriteAll(payload.Data(), payload.Size());
152 auto status = message.Reply(ret);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DSMSDispatcherUtil.java50 String destAddr, String message, boolean statusReportRequested, SmsHeader smsHeader) { in getSubmitPdu() argument
52 return getSubmitPduCdma(scAddr, destAddr, message, statusReportRequested, smsHeader); in getSubmitPdu()
54 return getSubmitPduGsm(scAddr, destAddr, message, statusReportRequested); in getSubmitPdu()
86 String destAddr, String message, boolean statusReportRequested, SmsHeader smsHeader, in getSubmitPdu() argument
89 return getSubmitPduCdma(scAddr, destAddr, message, statusReportRequested, smsHeader, in getSubmitPdu()
92 return getSubmitPduGsm(scAddr, destAddr, message, statusReportRequested, in getSubmitPdu()
108 String message, boolean statusReportRequested) { in getSubmitPduGsm() argument
109 return com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(scAddr, destAddr, message, in getSubmitPduGsm()
129 String message, boolean statusReportRequested, int validityPeriod) { in getSubmitPduGsm() argument
130 return com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(scAddr, destAddr, message, in getSubmitPduGsm()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DCellularDataService.java69 public void handleMessage(Message message) { in CellularDataServiceProvider()
70 DataServiceCallback callback = mCallbackMap.remove(message); in CellularDataServiceProvider()
72 AsyncResult ar = (AsyncResult) message.obj; in CellularDataServiceProvider()
73 switch (message.what) { in CellularDataServiceProvider()
109 loge("Unexpected event: " + message.what); in CellularDataServiceProvider()
125 Message message = null; in setupDataCall() local
129 message = Message.obtain(mHandler, SETUP_DATA_CALL_COMPLETE); in setupDataCall()
130 mCallbackMap.put(message, callback); in setupDataCall()
134 reason, linkProperties, message); in setupDataCall()
141 Message message = null; in deactivateDataCall() local
[all …]
/frameworks/base/cmds/statsd/src/
Dstats_log.proto26 message DimensionsValue {
40 message DimensionsValueTuple {
44 message EventMetricData {
52 message CountBucketInfo {
66 message CountMetricData {
78 message DurationBucketInfo {
92 message DurationMetricData {
104 message ValueBucketInfo {
117 message Value {
136 message ValueMetricData {
[all …]
/frameworks/base/tools/stats_log_api_gen/
Dtest.proto24 message IntAtom {
28 message AnotherIntAtom {
32 message OutOfOrderAtom {
42 message AllTypesAtom {
61 message Event {
70 message BadTypesAtom {
75 message BadTypesEvent {
81 message BadSkippedFieldSingleAtom {
85 message BadSkippedFieldSingle {
91 message BadSkippedFieldMultipleAtom {
[all …]

12345678910>>...44