Home
last modified time | relevance | path

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

12345678910>>...48

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dproto3_test.js73 var msg = new proto.jspb.test.TestProto3();
75 assertEquals(msg.getOptionalInt32(), 0);
76 assertEquals(msg.getOptionalInt64(), 0);
77 assertEquals(msg.getOptionalUint32(), 0);
78 assertEquals(msg.getOptionalUint64(), 0);
79 assertEquals(msg.getOptionalSint32(), 0);
80 assertEquals(msg.getOptionalSint64(), 0);
81 assertEquals(msg.getOptionalFixed32(), 0);
82 assertEquals(msg.getOptionalFixed64(), 0);
83 assertEquals(msg.getOptionalSfixed32(), 0);
[all …]
Dmessage.js290 jspb.Message.getIndex_ = function(msg, fieldNumber) { argument
291 return fieldNumber + msg.arrayIndexOffset_;
311 msg, data, messageId, suggestedPivot, repeatedFields, opt_oneofFields) { argument
312 msg.wrappers_ = jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS ? null : {};
316 msg.messageId_ = messageId ? String(messageId) : undefined;
320 msg.arrayIndexOffset_ = messageId === 0 ? -1 : 0;
321 msg.array = data;
322 jspb.Message.materializeExtensionObject_(msg, suggestedPivot);
323 msg.convertedFloatingPointFields_ = {};
328 if (fieldNumber < msg.pivot_) {
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBSwiftTests.swift39 let msg = Message2() in testProto2Basics() variable
43 msg.optionalInt32 = 100 in testProto2Basics()
44 msg.optionalString = "abc" in testProto2Basics()
45 msg.optionalEnum = .Bar in testProto2Basics()
47 msg.optionalMessage = msg2 in testProto2Basics()
49 msg.optionalGroup = msg3 in testProto2Basics()
50 msg.repeatedInt32Array.addValue(300) in testProto2Basics()
51 msg.repeatedInt32Array.addValue(301) in testProto2Basics()
52 msg.repeatedStringArray.addObject("mno") in testProto2Basics()
53 msg.repeatedStringArray.addObject("pqr") in testProto2Basics()
[all …]
DGPBMessageTests+Runtime.m311 //% Message2 *msg = [[Message2 alloc] init];
312 //% XCTAssertFalse(msg.hasOptional##FIELD);
313 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
314 //% msg.optional##FIELD = NON_ZERO_VALUE;
315 //% XCTAssertTrue(msg.hasOptional##FIELD);
316 //% XCTAssertTrue(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
317 //% [msg release];
320 //% Message2 *msg = [[Message2 alloc] init];
321 //% XCTAssertFalse(msg.hasOptional##FIELD);
322 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
[all …]
DGPBMessageTests+Serialization.m60 Message3 *msg = [[Message3 alloc] init];
64 NSData *data = [msg data];
69 msg.optionalInt32 = 0;
70 msg.optionalInt64 = 0;
71 msg.optionalUint32 = 0;
72 msg.optionalUint64 = 0;
73 msg.optionalSint32 = 0;
74 msg.optionalSint64 = 0;
75 msg.optionalFixed32 = 0;
76 msg.optionalFixed64 = 0;
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioEffectTest.java153 String msg = "test1_0ConstructorFromType()"; in test1_0ConstructorFromType() local
155 assertTrue(msg+": no effects found", (desc.length != 0)); in test1_0ConstructorFromType()
170 assertNotNull(msg + ": could not create AudioEffect", effect); in test1_0ConstructorFromType()
172 assertTrue(msg +": invalid effect ID", (effect.getId() != 0)); in test1_0ConstructorFromType()
174 msg = msg.concat(": AudioEffect not initialized"); in test1_0ConstructorFromType()
183 msg = msg.concat(": Effect not found: "+desc[0].name); in test1_0ConstructorFromType()
186 msg = msg.concat(": Effect library not loaded"); in test1_0ConstructorFromType()
189 assertTrue(msg, result); in test1_0ConstructorFromType()
196 String msg = "test1_1ConstructorFromUuid()"; in test1_1ConstructorFromUuid() local
198 assertTrue(msg+"no effects found", (desc.length != 0)); in test1_1ConstructorFromUuid()
[all …]
DMediaEqualizerTest.java96 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
100 assertNotNull(msg + ": could not create Equalizer", eq); in test0_0ConstructorAndRelease()
102 assertTrue(msg +": invalid effect ID", (eq.getId() != 0)); in test0_0ConstructorAndRelease()
104 msg = msg.concat(": Equalizer not initialized"); in test0_0ConstructorAndRelease()
108 msg = msg.concat(": Equalizer not found"); in test0_0ConstructorAndRelease()
110 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
116 assertTrue(msg, result); in test0_0ConstructorAndRelease()
128 String msg = "test1_0BandLevel()"; in test1_0BandLevel() local
132 assertTrue(msg + ": not enough bands", numBands >= MIN_NUMBER_OF_BANDS); in test1_0BandLevel()
135 assertTrue(msg + ": min level too high", levelRange[0] <= MIN_BAND_LEVEL); in test1_0BandLevel()
[all …]
DMediaEnvReverbTest.java105 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
109 assertNotNull(msg + ": could not create EnvironmentalReverb", reverb); in test0_0ConstructorAndRelease()
111 assertTrue(msg +": invalid effect ID", (reverb.getId() != 0)); in test0_0ConstructorAndRelease()
113 msg = msg.concat(": EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease()
117 msg = msg.concat(": EnvironmentalReverb not found"); in test0_0ConstructorAndRelease()
119 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
125 assertTrue(msg, result); in test0_0ConstructorAndRelease()
136 String msg = "test1_0Room()"; in test1_0Room() local
141 assertTrue(msg +": got incorrect room level", in test1_0Room()
147 assertTrue(msg +": got incorrect room HF level", in test1_0Room()
[all …]
DMediaVisualizerTest.java105 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
109 assertNotNull(msg + ": could not create Visualizer", visualizer); in test0_0ConstructorAndRelease()
112 msg = msg.concat(": Visualizer not found"); in test0_0ConstructorAndRelease()
114 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
120 assertTrue(msg, result); in test0_0ConstructorAndRelease()
132 String msg = "test1_0CaptureRates()"; in test1_0CaptureRates() local
136 assertTrue(msg +": insufficient max capture rate", in test1_0CaptureRates()
139 assertTrue(msg +": invalid sampling rate", in test1_0CaptureRates()
143 msg = msg.concat(": Bad parameter value"); in test1_0CaptureRates()
144 loge(msg, "Bad parameter value"); in test1_0CaptureRates()
[all …]
DMediaPresetReverbTest.java99 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
103 assertNotNull(msg + ": could not create PresetReverb", reverb); in test0_0ConstructorAndRelease()
105 assertTrue(msg +": invalid effect ID", (reverb.getId() != 0)); in test0_0ConstructorAndRelease()
107 msg = msg.concat(": PresetReverb not initialized"); in test0_0ConstructorAndRelease()
111 msg = msg.concat(": PresetReverb not found"); in test0_0ConstructorAndRelease()
113 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
119 assertTrue(msg, result); in test0_0ConstructorAndRelease()
130 String msg = "test1_0Preset()"; in test1_0Preset() local
135 assertEquals(msg +": got incorrect preset", in test1_0Preset()
140 msg = msg.concat(": Bad parameter value"); in test1_0Preset()
[all …]
DMediaVirtualizerTest.java92 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
96 assertNotNull(msg + ": could not create Virtualizer", virtualizer); in test0_0ConstructorAndRelease()
98 assertTrue(msg +": invalid effect ID", (virtualizer.getId() != 0)); in test0_0ConstructorAndRelease()
100 msg = msg.concat(": Virtualizer not initialized"); in test0_0ConstructorAndRelease()
104 msg = msg.concat(": Virtualizer not found"); in test0_0ConstructorAndRelease()
106 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
112 assertTrue(msg, result); in test0_0ConstructorAndRelease()
124 String msg = "test1_0Strength()"; in test1_0Strength() local
131 assertTrue(msg +": got incorrect strength", in test1_0Strength()
136 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000); in test1_0Strength()
[all …]
DMediaBassBoostTest.java92 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local
96 assertNotNull(msg + ": could not create BassBoost", bb); in test0_0ConstructorAndRelease()
98 assertTrue(msg +": invalid effect ID", (bb.getId() != 0)); in test0_0ConstructorAndRelease()
100 msg = msg.concat(": BassBoost not initialized"); in test0_0ConstructorAndRelease()
104 msg = msg.concat(": BassBoost not found"); in test0_0ConstructorAndRelease()
106 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease()
112 assertTrue(msg, result); in test0_0ConstructorAndRelease()
123 String msg = "test1_0Strength()"; in test1_0Strength() local
130 assertTrue(msg +": got incorrect strength", in test1_0Strength()
135 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000); in test1_0Strength()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/
Dproto_test.js102 function fillAllFields(msg) { argument
103 msg.setOptionalInt32(-42);
106 msg.setOptionalInt64(-0x7fffffff00000000);
107 msg.setOptionalUint32(0x80000000);
108 msg.setOptionalUint64(0xf000000000000000);
109 msg.setOptionalSint32(-100);
110 msg.setOptionalSint64(-0x8000000000000000);
111 msg.setOptionalFixed32(1234);
112 msg.setOptionalFixed64(0x1234567800000000);
113 msg.setOptionalSfixed32(-1234);
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsCbTest.java54 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue() local
56 assertEquals("Unexpected geographical scope decoded", expectedGs, msg in doTestGeographicalScopeValue()
62 SmsCbMessage msg = createFromPdu(null); in testCreateNullPdu() local
63 assertNull("createFromPdu(byte[] with null pdu should return null", msg); in testCreateNullPdu()
69 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu() local
71 assertNull("createFromPdu(byte[] with too short pdu should return null", msg); in testCreateTooShortPdu()
124 SmsCbMessage msg = createFromPdu(pdu); in testGetGeographicalScopeUmts() local
127 SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE, msg.getGeographicalScope()); in testGetGeographicalScopeUmts()
147 SmsCbMessage msg = createFromPdu(pdu); in testGetMessageBody7Bit() local
151 msg.getMessageBody()); in testGetMessageBody7Bit()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMessageQueueTest.java37 public void handleMessage(Message msg) { in go()
38 BaseTestHandler.this.handleMessage(msg); in go()
43 public void handleMessage(Message msg) { in handleMessage() argument
44 if (!msg.isInUse()) { in handleMessage()
46 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage()
49 if (msg.what != mCount) { in handleMessage()
52 + ", received #" + msg.what)); in handleMessage()
59 "Message received after done, #" + msg.what)); in handleMessage()
96 public void handleMessage(Message msg) { in testAtFrontOfQueue()
97 super.handleMessage(msg); in testAtFrontOfQueue()
[all …]
DBroadcasterTest.java43 Message msg = new Message(); in test1()
44 msg.what = MESSAGE_A; in test1()
46 b.broadcast(msg); in test1()
49 public void handleMessage(Message msg) { in test1()
50 if (msg.what == MESSAGE_B) { in test1()
79 Message msg = new Message(); in go() local
80 msg.what = MESSAGE_A; in go()
82 b.broadcast(msg); in go()
85 public void handleMessage(Message msg) { in handleMessage() argument
86 int index = msg.what - MESSAGE_B; in handleMessage()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java66 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local
67 assertEquals(123, msg.d); in testSimpleMessageNano()
68 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano()
69 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano()
71 msg.d = 456; in testSimpleMessageNano()
72 assertEquals(456, msg.d); in testSimpleMessageNano()
77 msg.nestedMsg = nestedMsg; in testSimpleMessageNano()
78 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano()
80 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano()
81 assertEquals(SimpleMessageNano.BAR, msg.defaultNestedEnum); in testSimpleMessageNano()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskChangeNotificationController.java173 public void handleMessage(Message msg) { in handleMessage() argument
174 switch (msg.what) { in handleMessage()
182 forAllRemoteListeners(mNotifyTaskStackChanged, msg); in handleMessage()
185 forAllRemoteListeners(mNotifyTaskCreated, msg); in handleMessage()
188 forAllRemoteListeners(mNotifyTaskRemoved, msg); in handleMessage()
191 forAllRemoteListeners(mNotifyTaskMovedToFront, msg); in handleMessage()
194 forAllRemoteListeners(mNotifyTaskDescriptionChanged, msg); in handleMessage()
197 forAllRemoteListeners(mNotifyActivityRequestedOrientationChanged, msg); in handleMessage()
200 forAllRemoteListeners(mNotifyTaskRemovalStarted, msg); in handleMessage()
203 forAllRemoteListeners(mNotifyActivityPinned, msg); in handleMessage()
[all …]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowSlog.java28 protected static int v(String tag, String msg) { in v() argument
29 return Log.v(tag, msg); in v()
33 protected static int v(String tag, String msg, Throwable tr) { in v() argument
34 return Log.v(tag, msg, tr); in v()
38 protected static int d(String tag, String msg) { in d() argument
39 return Log.d(tag, msg); in d()
43 protected static int d(String tag, String msg, Throwable tr) { in d() argument
44 return Log.d(tag, msg, tr); in d()
48 protected static int i(String tag, String msg) { in i() argument
49 return Log.i(tag, msg); in i()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java468 Message msg = Message.obtain(); in disconnect() local
469 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect()
470 msg.replyTo = mSrcMessenger; in disconnect()
471 mDstMessenger.send(msg); in disconnect()
490 public void sendMessage(Message msg) { in sendMessage() argument
491 msg.replyTo = mSrcMessenger; in sendMessage()
493 mDstMessenger.send(msg); in sendMessage()
506 Message msg = Message.obtain(); in sendMessage() local
507 msg.what = what; in sendMessage()
508 sendMessage(msg); in sendMessage()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java541 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in delayedInitialization() local
542 msg.arg1 = COMMAND_TYPE_DELAYED_INITIALIZATION; in delayedInitialization()
543 mSm.sendMessage(msg); in delayedInitialization()
551 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in getAwareInterface() local
552 msg.arg1 = COMMAND_TYPE_GET_AWARE; in getAwareInterface()
553 mSm.sendMessage(msg); in getAwareInterface()
561 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in releaseAwareInterface() local
562 msg.arg1 = COMMAND_TYPE_RELEASE_AWARE; in releaseAwareInterface()
563 mSm.sendMessage(msg); in releaseAwareInterface()
572 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in connect() local
[all …]
/frameworks/base/core/java/android/util/
DSlog.java31 public static int v(String tag, String msg) { in v() argument
32 return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag, msg); in v()
35 public static int v(String tag, String msg, Throwable tr) { in v() argument
37 msg + '\n' + Log.getStackTraceString(tr)); in v()
41 public static int d(String tag, String msg) { in d() argument
42 return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag, msg); in d()
46 public static int d(String tag, String msg, Throwable tr) { in d() argument
48 msg + '\n' + Log.getStackTraceString(tr)); in d()
52 public static int i(String tag, String msg) { in i() argument
53 return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag, msg); in i()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.cpp139 sp<AMessage> msg = new AMessage(kWhatPrepare, this); in prepare() local
140 msg->post(); in prepare()
147 sp<AMessage> msg = new AMessage(kWhatPlay, this); in play() local
148 msg->post(); in play()
154 sp<AMessage> msg = new AMessage(kWhatPause, this); in pause() local
155 msg->post(); in pause()
174 sp<AMessage> msg = new AMessage(kWhatSeek, this); in seek() local
175 msg->setInt64(WHATPARAM_SEEK_SEEKTIME_MS, timeMsec); in seek()
176 msg->post(); in seek()
182 sp<AMessage> msg = new AMessage(kWhatLoop, this); in loop() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dmessage_factory_test.py59 msg = cls()
60 msg.mandatory = 42
61 msg.nested_factory_2_enum = 0
62 msg.nested_factory_2_message.value = 'nested message value'
63 msg.factory_1_message.factory_1_enum = 1
64 msg.factory_1_message.nested_factory_1_enum = 0
65 msg.factory_1_message.nested_factory_1_message.value = (
67 msg.factory_1_message.scalar_value = 22
68 msg.factory_1_message.list_value.extend([u'one', u'two', u'three'])
69 msg.factory_1_message.list_value.append(u'four')
[all …]
/frameworks/native/libs/input/
DInputTransport.cpp124 void InputMessage::getSanitizedCopy(InputMessage* msg) const { in getSanitizedCopy()
125 memset(msg, 0, sizeof(*msg)); in getSanitizedCopy()
128 msg->header.type = header.type; in getSanitizedCopy()
134 msg->body.key.seq = body.key.seq; in getSanitizedCopy()
136 msg->body.key.eventTime = body.key.eventTime; in getSanitizedCopy()
138 msg->body.key.deviceId = body.key.deviceId; in getSanitizedCopy()
140 msg->body.key.source = body.key.source; in getSanitizedCopy()
142 msg->body.key.displayId = body.key.displayId; in getSanitizedCopy()
144 msg->body.key.action = body.key.action; in getSanitizedCopy()
146 msg->body.key.flags = body.key.flags; in getSanitizedCopy()
[all …]

12345678910>>...48