Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 1071) sorted by relevance

12345678910>>...43

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmSmsCbMessageTest.java126 SmsCbMessage msg = GsmSmsCbMessage.createSmsCbMessage(mMockedContext, header, null, pdus, in testCreateMessageFromBinary() local
129 Log.d(TAG, "msg=" + msg); in testCreateMessageFromBinary()
132 msg.getGeographicalScope()); in testCreateMessageFromBinary()
133 assertEquals(3946, msg.getSerialNumber()); in testCreateMessageFromBinary()
135 msg.getServiceCategory()); in testCreateMessageFromBinary()
136 assertEquals("en", msg.getLanguageCode()); in testCreateMessageFromBinary()
138 msg.getMessageBody()); in testCreateMessageFromBinary()
139 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, msg.getMessagePriority()); in testCreateMessageFromBinary()
141 SmsCbCmasInfo cmasInfo = msg.getCmasWarningInfo(); in testCreateMessageFromBinary()
148 List<CbGeoUtils.Geometry> geometries = msg.getGeometries(); in testCreateMessageFromBinary()
[all …]
/packages/modules/adb/daemon/
Dfile_sync_service.cpp151 syncmsg msg = {}; in do_lstat_v1() local
152 msg.stat_v1.id = ID_LSTAT_V1; in do_lstat_v1()
156 msg.stat_v1.mode = st.st_mode; in do_lstat_v1()
157 msg.stat_v1.size = st.st_size; in do_lstat_v1()
158 msg.stat_v1.mtime = st.st_mtime; in do_lstat_v1()
159 return WriteFdExactly(s, &msg.stat_v1, sizeof(msg.stat_v1)); in do_lstat_v1()
163 syncmsg msg = {}; in do_stat_v2() local
164 msg.stat_v2.id = id; in do_stat_v2()
176 msg.stat_v2.error = errno_to_wire(errno); in do_stat_v2()
178 msg.stat_v2.dev = st.st_dev; in do_stat_v2()
[all …]
/packages/modules/StatsD/statsd/benchmark/
Dlog_event_benchmark.cpp32 static size_t createStatsEvent(uint8_t* msg, int numElements = 1) { in createStatsEvent() argument
42 memcpy(msg, buf, size); in createStatsEvent()
46 static size_t createStatsEventMedium(uint8_t* msg) { in createStatsEventMedium() argument
47 return createStatsEvent(msg, 5); in createStatsEventMedium()
50 static size_t createStatsEventLarge(uint8_t* msg) { in createStatsEventLarge() argument
51 return createStatsEvent(msg, 10); in createStatsEventLarge()
54 static size_t createStatsEventExtraLarge(uint8_t* msg) { in createStatsEventExtraLarge() argument
55 return createStatsEvent(msg, 20); in createStatsEventExtraLarge()
59 uint8_t msg[LOGGER_ENTRY_MAX_PAYLOAD]; in BM_LogEventCreation() local
60 const size_t size = createStatsEvent(msg); in BM_LogEventCreation()
[all …]
/packages/modules/Bluetooth/system/stack/test/
Dstack_avrcp_test.cc34 tAVRC_MSG msg{}; in TEST_F() local
38 msg.hdr.opcode = AVRC_OP_VENDOR; in TEST_F()
39 msg.hdr.ctype = AVRC_CMD_STATUS; in TEST_F()
49 msg.vendor.p_vendor_data = vendor_rsp_buf; in TEST_F()
50 msg.vendor.vendor_len = 13; in TEST_F()
52 AVRC_Ctrl_ParsResponse(&msg, &result, scratch_buf, &scratch_buf_len), in TEST_F()
59 tAVRC_MSG msg{}; in TEST_F() local
63 msg.hdr.opcode = AVRC_OP_BROWSE; in TEST_F()
74 msg.browse.p_browse_data = browse_rsp_buf; in TEST_F()
75 msg.browse.browse_len = 13; in TEST_F()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java979 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in delayedInitialization() local
980 msg.arg1 = COMMAND_TYPE_DELAYED_INITIALIZATION; in delayedInitialization()
981 mSm.sendMessage(msg); in delayedInitialization()
989 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in getAwareInterface() local
990 msg.arg1 = COMMAND_TYPE_GET_AWARE; in getAwareInterface()
991 msg.obj = requestorWs; in getAwareInterface()
992 mSm.sendMessage(msg); in getAwareInterface()
1000 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in releaseAwareInterface() local
1001 msg.arg1 = COMMAND_TYPE_RELEASE_AWARE; in releaseAwareInterface()
1002 mSm.sendMessage(msg); in releaseAwareInterface()
[all …]
/packages/modules/AdServices/adservices/framework/java/com/android/adservices/
DLogUtil.java36 public static int v(String msg) { in v() argument
38 return Log.v(TAG, msg); in v()
47 String msg = format(format, params); in v() local
48 return Log.v(TAG, msg); in v()
54 public static int d(String msg) { in d() argument
56 return Log.d(TAG, msg); in d()
65 String msg = format(format, params); in d() local
66 return Log.d(TAG, msg); in d()
75 String msg = format(format, params); in d() local
76 return Log.d(TAG, msg, tr); in d()
[all …]
DLoggerFactory.java96 public int v(String msg) { in v() argument
98 return Log.v(mTag, msg); in v()
107 String msg = format(format, params); in v() local
108 return Log.v(mTag, msg); in v()
114 public int d(String msg) { in d() argument
116 return Log.d(mTag, msg); in d()
125 String msg = format(format, params); in d() local
126 return Log.d(mTag, msg); in d()
135 String msg = format(format, params); in d() local
136 return Log.d(mTag, msg, tr); in d()
[all …]
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/
DLoggerFactory.java51 public int v(String msg) { in v() argument
53 return Log.v(mTag, msg); in v()
61 String msg = format(format, params); in v() local
62 return Log.v(mTag, msg); in v()
68 public int d(String msg) { in d() argument
70 return Log.d(mTag, msg); in d()
78 String msg = format(format, params); in d() local
79 return Log.d(mTag, msg); in d()
87 String msg = format(format, params); in d() local
88 return Log.d(mTag, msg, tr); in d()
[all …]
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DLogger.java30 public void v(String msg) { in v() argument
31 Log.v(mTag, buildMessage(msg)); in v()
35 public void v(String msg, Exception ex) { in v() argument
36 Log.v(mTag, buildMessage(msg), ex); in v()
40 public void i(String msg) { in i() argument
41 Log.i(mTag, buildMessage(msg)); in i()
45 public void i(String msg, Exception ex) { in i() argument
46 Log.i(mTag, buildMessage(msg), ex); in i()
50 public void d(String msg) { in d() argument
51 Log.d(mTag, buildMessage(msg)); in d()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DLogUtil.java36 public static int v(String msg) { in v() argument
38 return Log.v(TAG, msg); in v()
47 String msg = format(format, params); in v() local
48 return Log.v(TAG, msg); in v()
54 public static int d(String msg) { in d() argument
56 return Log.d(TAG, msg); in d()
65 String msg = format(format, params); in d() local
66 return Log.d(TAG, msg); in d()
75 String msg = format(format, params); in d() local
76 return Log.d(TAG, msg, tr); in d()
[all …]
/packages/apps/Camera2/src/com/android/camera/debug/
DLoggers.java104 public void d(String msg) {
108 public void d(String msg, Throwable tr) {
112 public void e(String msg) {
116 public void e(String msg, Throwable tr) {
120 public void i(String msg) {
124 public void i(String msg, Throwable tr) {
128 public void v(String msg) {
132 public void v(String msg, Throwable tr) {
136 public void w(String msg) {
140 public void w(String msg, Throwable tr) {
[all …]
DLog.java64 public static void d(Tag tag, String msg) { in d() argument
66 android.util.Log.d(tag.toString(), msg); in d() local
70 public static void d(Tag tag, Object instance, String msg) { in d() argument
72 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg)); in d()
76 public static void d(Tag tag, Object instance, String msg, String tags) { in d() argument
78 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg, tags)); in d()
82 public static void d(Tag tag, String msg, Throwable tr) { in d() argument
84 android.util.Log.d(tag.toString(), msg, tr); in d() local
88 public static void e(Tag tag, String msg) { in e() argument
90 android.util.Log.e(tag.toString(), msg); in e() local
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DStructTest.java117 private void verifyHeaderParsing(final HeaderMsgWithConstructor msg) { in verifyHeaderParsing() argument
118 assertEquals(10, msg.mFamily); in verifyHeaderParsing()
119 assertEquals(0, msg.mLen); in verifyHeaderParsing()
120 assertEquals(15715755, msg.mIfindex); in verifyHeaderParsing()
121 assertEquals(134, msg.mIcmpType); in verifyHeaderParsing()
122 assertEquals(0, msg.mIcmpCode); in verifyHeaderParsing()
126 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in verifyHeaderParsing()
131 final HeaderMsgWithConstructor msg = doParsingMessageTest(HDR_EMPTY, in testClassWithExplicitConstructor() local
133 verifyHeaderParsing(msg); in testClassWithExplicitConstructor()
154 final HeaderMsgWithoutConstructor msg = doParsingMessageTest(HDR_EMPTY, in testClassWithDefaultConstructor() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/
DHidHostService.java384 public void handleMessage(Message msg) {
385 Log.v(TAG, "handleMessage(): msg.what=" + msg.what);
387 switch (msg.what) {
389 handleMessageConnect(msg);
392 handleMessageDisconnect(msg);
395 handleMessageConnectStateChanged(msg);
398 handleMessageGetProtocolMode(msg);
401 handleMessageOnGetProtocolMode(msg);
404 handleMessageVirtualUnplug(msg);
407 handleMessageSetProtocolMode(msg);
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DUserPresetsManager.java32 public void handleMessage(Message msg) {
33 switch (msg.what) {
35 resultLoad(msg);
42 public boolean handleMessage(Message msg) { in handleMessage() argument
43 switch (msg.what) { in handleMessage()
48 processSave(msg); in handleMessage()
51 processDelete(msg); in handleMessage()
54 processUpdate(msg); in handleMessage()
75 Message msg = mProcessingHandler.obtainMessage(LOAD); in load() local
76 mProcessingHandler.sendMessage(msg); in load()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNduseroptMessageTest.java77 NduseroptMessage msg = parseNduseroptMessage(toBuffer(MSG_EMPTY)); in testParsing() local
78 assertMatches(AF_INET6, 0, IFINDEX1, ICMP_TYPE_RA, (byte) 0, SADDR1, msg); in testParsing()
79 assertNull(msg.option); in testParsing()
81 msg = parseNduseroptMessage(toBuffer(MSG_PREF64)); in testParsing()
82 assertMatches(AF_INET6, 16, IFINDEX2, ICMP_TYPE_RA, (byte) 0, SADDR2, msg); in testParsing()
83 assertPref64Option("2001:db8:3:4:5:6::/96", msg.option); in testParsing()
105 NduseroptMessage msg = (NduseroptMessage) nlMsg; in testParseWithinNetlinkMessage() local
107 assertMatches(AF_INET6, 16, 30, ICMP_TYPE_RA, (byte) 0, srcaddr, msg); in testParseWithinNetlinkMessage()
108 assertPref64Option("64:ff9b::/96", msg.option); in testParseWithinNetlinkMessage()
113 msg = parseNduseroptMessage(bufWithoutHeader); in testParseWithinNetlinkMessage()
[all …]
DRtNetlinkRouteMessageTest.java102 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer, NETLINK_ROUTE); in testParseRtmRouteMessage() local
103 assertNotNull(msg); in testParseRtmRouteMessage()
104 assertTrue(msg instanceof RtNetlinkRouteMessage); in testParseRtmRouteMessage()
105 final RtNetlinkRouteMessage routeMsg = (RtNetlinkRouteMessage) msg; in testParseRtmRouteMessage()
122 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer, NETLINK_ROUTE); in testPackRtmNewRoute() local
123 assertNotNull(msg); in testPackRtmNewRoute()
124 assertTrue(msg instanceof RtNetlinkRouteMessage); in testPackRtmNewRoute()
125 final RtNetlinkRouteMessage routeMsg = (RtNetlinkRouteMessage) msg; in testPackRtmNewRoute()
154 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer, NETLINK_ROUTE); in testParseRtmNewRoute_MulticastIpv6() local
155 assertNotNull(msg); in testParseRtmNewRoute_MulticastIpv6()
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/util/
DLogUtil.java39 public static int v(String msg) { in v() argument
41 return Log.v(TAG, msg); in v()
50 String msg = format(format, params); in v() local
51 return Log.v(TAG, msg); in v()
57 public static int d(String msg) { in d() argument
59 return Log.d(TAG, msg); in d()
68 String msg = format(format, params); in d() local
69 return Log.d(TAG, msg); in d()
78 String msg = format(format, params); in d() local
79 return Log.d(TAG, msg, tr); in d()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestBroadcastActivity.java49 public void handleMessage(Message msg) {
52 OnClickListener pendingButtonClick = (OnClickListener) msg.obj;
128 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
129 mDelayHandler.sendMessageDelayed(msg, DELAY_BEFORE_SENDING_MSEC); in onCreate()
143 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
144 mDelayHandler.sendMessageDelayed(msg, DELAY_BEFORE_SENDING_MSEC); in onCreate()
159 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
160 mDelayHandler.sendMessageDelayed(msg, DELAY_BEFORE_SENDING_MSEC); in onCreate()
174 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
175 mDelayHandler.sendMessageDelayed(msg, DELAY_BEFORE_SENDING_MSEC); in onCreate()
[all …]
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_ccb_act.cc153 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd()
154 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd()
160 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd()
161 sep_info[p_data->msg.discover_rsp.num_seps].seid = p_scb->ScbHandle(); in avdt_ccb_hdl_discover_cmd()
162 sep_info[p_data->msg.discover_rsp.num_seps].media_type = in avdt_ccb_hdl_discover_cmd()
164 sep_info[p_data->msg.discover_rsp.num_seps].tsep = in avdt_ccb_hdl_discover_cmd()
167 p_data->msg.discover_rsp.num_seps++; in avdt_ccb_hdl_discover_cmd()
193 (tAVDT_CTRL*)(&p_data->msg.discover_rsp), in avdt_ccb_hdl_discover_rsp()
212 AvdtpScb* p_scb = avdt_scb_by_hdl(p_data->msg.single.seid); in avdt_ccb_hdl_getcap_cmd()
216 p_data->msg.hdr.err_code = AVDT_ERR_BAD_STATE; in avdt_ccb_hdl_getcap_cmd()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsCallStatusTrackerTest.java96 Message msg = (Message) invocation.getArguments()[0]; in setUp() local
98 msg.getTarget().sendMessageDelayed(msg, delay); in setUp()
99 mMessageHashMap.put(++mId, msg); in setUp()
105 Message msg = mMessageHashMap.get(timerId); in setUp()
106 if (msg != null && msg.getTarget() != null) { in setUp()
107 msg.getTarget().removeMessages(msg.what, msg.obj); in setUp()
152 Message msg = mTestLooperListener.nextMessage(); in testForVoiceCallTypeChangedScenarios() local
153 assertEquals(mImsHandler, msg.getTarget()); in testForVoiceCallTypeChangedScenarios()
154 assertNotEquals(mEmergencyHandler, msg.getTarget()); in testForVoiceCallTypeChangedScenarios()
155 assertNotNull(msg); in testForVoiceCallTypeChangedScenarios()
[all …]
/packages/modules/OnDevicePersonalization/framework/java/com/android/federatedcompute/internal/util/
DLogUtil.java37 public static int v(String msg) { in v() argument
39 return Log.v(TAG, msg); in v()
45 public static int v(String tag, String msg) { in v() argument
47 return Log.v(TAG, tag + " - " + msg); in v()
53 public static int d(String tag, String msg) { in d() argument
55 return Log.d(TAG, tag + " - " + msg); in d()
61 public static int d(String tag, Throwable throwable, String msg) { in d() argument
63 return Log.d(TAG, tag + " - " + msg, throwable); in d()
71 String msg = format(format, params); in d() local
72 return Log.d(TAG, tag + " - " + msg); in d()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DLogUtil.java76 public static void v(final String tag, final String msg) { in v() argument
77 println(android.util.Log.VERBOSE, tag, msg); in v()
87 public static void v(final String tag, final String msg, final Throwable tr) { in v() argument
88 println(android.util.Log.VERBOSE, tag, msg + '\n' in v()
98 public static void d(final String tag, final String msg) { in d() argument
99 println(android.util.Log.DEBUG, tag, msg); in d()
109 public static void d(final String tag, final String msg, final Throwable tr) { in d() argument
110 println(android.util.Log.DEBUG, tag, msg + '\n' in d()
120 public static void i(final String tag, final String msg) { in i() argument
121 println(android.util.Log.INFO, tag, msg); in i()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DClog.java59 public static int v(@NonNull String tag, @NonNull String msg) { in v() argument
60 return println(VERBOSE, tag, msg); in v()
63 public static int v(@NonNull String tag, @NonNull String msg, @NonNull Throwable tr) { in v() argument
64 return println(VERBOSE, tag, msg + '\n' + getStackTraceString(tr)); in v()
67 public static int d(@NonNull String tag, @NonNull String msg) { in d() argument
68 return println(DEBUG, tag, msg); in d()
71 public static int d(@NonNull String tag, @NonNull String msg, @NonNull Throwable tr) { in d() argument
72 return println(DEBUG, tag, msg + '\n' + getStackTraceString(tr)); in d()
75 public static int i(@NonNull String tag, @NonNull String msg) { in i() argument
76 return println(INFO, tag, msg); in i()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLog.java20 public static int v(String tag, String msg) { in v() argument
21 return android.util.Log.v(tag, msg); in v()
23 public static int v(String tag, String msg, Throwable tr) { in v() argument
24 return android.util.Log.v(tag, msg, tr); in v()
26 public static int d(String tag, String msg) { in d() argument
27 return android.util.Log.d(tag, msg); in d()
29 public static int d(String tag, String msg, Throwable tr) { in d() argument
30 return android.util.Log.d(tag, msg, tr); in d()
32 public static int i(String tag, String msg) { in i() argument
33 return android.util.Log.i(tag, msg); in i()
[all …]

12345678910>>...43