Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/native/libs/input/
DInputTransport.cpp99 return body.motion.pointerCount > 0 in isValid()
100 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
111 return sizeof(Header) + body.key.size(); in size()
113 return sizeof(Header) + body.motion.size(); in size()
115 return sizeof(Header) + body.finished.size(); in size()
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()
[all …]
/frameworks/av/media/libnblog/
DReader.cpp230 String8 timestamp, body; in dump() local
237 it = handleFormat(FormatEntry(it), &timestamp, &body); in dump()
241 body.appendFormat("EVENT_LATENCY,%.3f", latencyMs); in dump()
245 body.appendFormat("EVENT_OVERRUN,%lld", static_cast<long long>(ts)); in dump()
249 body.appendFormat("EVENT_THREAD_INFO,%d,%s", static_cast<int>(info.id), in dump()
254 body.appendFormat("EVENT_UNDERRUN,%lld", static_cast<long long>(ts)); in dump()
258 body.appendFormat("EVENT_WARMUP_TIME,%.3f", timeMs); in dump()
262 body.appendFormat("EVENT_WORK_TIME,%lld", static_cast<long long>(monotonicNs)); in dump()
266 body.appendFormat("EVENT_THREAD_PARAMS,%zu,%u", params.frameCount, params.sampleRate); in dump()
271 body.appendFormat("warning: unexpected event %d", it->type); in dump()
[all …]
DPerformanceAnalysis.cpp343 void PerformanceAnalysis::reportPerformance(String8 *body, int author, log_hash_t hash, in reportPerformance() argument
345 if (mHists.empty() || body == nullptr) { in reportPerformance()
372 body->appendFormat("%s", in reportPerformance()
376 body->appendFormat("\ntime elapsed between glitches and glitch timestamps:\n"); in reportPerformance()
378 body->appendFormat("%lld: %lld\n", static_cast<long long>(outlier.first), in reportPerformance()
387 String8 body; in dump() local
395 curr.reportPerformance(&body, thread.first, hash.first); in dump()
396 if (!body.isEmpty()) { in dump()
397 dumpLine(fd, indent, body); in dump()
398 body.clear(); in dump()
[all …]
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp81 serverMsg.body.key.action = AKEY_EVENT_ACTION_DOWN; in TEST_F()
90 EXPECT_EQ(serverMsg.body.key.action, clientMsg.body.key.action) in TEST_F()
97 clientReply.body.finished.seq = 0x11223344; in TEST_F()
98 clientReply.body.finished.handled = true; in TEST_F()
107 EXPECT_EQ(clientReply.body.finished.seq, serverReply.body.finished.seq) in TEST_F()
109 EXPECT_EQ(clientReply.body.finished.handled, serverReply.body.finished.handled) in TEST_F()
175 serverMsg.body.motion.seq = 1; in TEST_F()
176 serverMsg.body.motion.pointerCount = 1; in TEST_F()
180 serverMsg.body.motion.classification = classification; in TEST_F()
187 EXPECT_EQ(classification, clientMsg.body.motion.classification) << in TEST_F()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListWithMailMessages.java78 public MailMessage(String subject, String body) { in MailMessage() argument
79 this(subject, body, false); in MailMessage()
83 public MailMessage(String subject, String body, boolean focusable) { in MailMessage() argument
85 mBody = body; in MailMessage()
101 public void setBody(String body) { in setBody() argument
102 this.mBody = body; in setBody()
139 WebView body = (WebView) messageUi.findViewById(R.id.body); in getView() local
140 body.loadData(message.getBody(), mimeType, null); in getView()
142 body.setFocusable(message.isFocusable()); in getView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DDumpTruck.java57 final StringBuilder body = new StringBuilder(); field in DumpTruck
76 body.setLength(0); in captureHeaps()
77 body.append("Build: ").append(Build.DISPLAY).append("\n\nProcesses:\n"); in captureHeaps()
84 body.append(" pid ").append(pid); in captureHeaps()
88 body.append(":") in captureHeaps()
105 body.append(" (hprof attached)"); in captureHeaps()
108 body.append("\n** Could not dump heap: \n").append(e.toString()).append("\n"); in captureHeaps()
111 body.append("\n"); in captureHeaps()
125 body.append("\n** Could not zip up files: \n").append(e.toString()).append("\n"); in captureHeaps()
152 shareIntent.putExtra(Intent.EXTRA_TEXT, body.toString()); in createShareIntent()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java75 public void end(String body) { in end() argument
76 this.bodies += body; in end()
133 public void end(String body) { in testMixedContent()
219 public void end(String body) { in newContentHandler()
220 video.videoId = body; in newContentHandler()
226 public void end(String body) { in newContentHandler()
229 video.dateAdded.parse3339(body); in newContentHandler()
236 public void end(String body) { in newContentHandler()
237 video.authorName = body; in newContentHandler()
275 public void end(String body) { in newContentHandler()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DDrmReceiver.java37 byte[] body; in onReceive()
40 body = intent.getByteArrayExtra("data"); in onReceive()
46 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onReceive()
48 DataVerify.SetLastReceivedPdu(body); in onReceive()
DReceiverActivity.java38 byte[] body; in onCreate()
41 body = in.getByteArrayExtra("data"); in onCreate()
47 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onCreate()
49 DataVerify.SetLastReceivedPdu(body); in onCreate()
DReceiverService.java48 byte[] body; in onStartCommand()
50 body = intent.getByteArrayExtra("data"); in onStartCommand()
56 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onStartCommand()
58 DataVerify.SetLastReceivedPdu(body); in onStartCommand()
/frameworks/av/media/libnblog/include/media/nblog/
DReader.h119 void handleAuthor(const AbstractEntry& fmtEntry __unused, String8* body __unused) {} in handleAuthor()
120 EntryIterator handleFormat(const FormatEntry &fmtEntry, String8 *timestamp, String8 *body);
122 static void appendInt(String8 *body, const void *data);
123 static void appendFloat(String8 *body, const void *data);
124 static void appendPID(String8 *body, const void *data, size_t length);
125 static void appendTimestamp(String8 *body, const void *data);
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java251 byte[] body = new byte[params.length + 1]; in buildBody()
252 body[0] = (byte) opcode; in buildBody()
253 System.arraycopy(params, 0, body, 1, params.length); in buildBody()
254 return body; in buildBody()
619 byte[] body = buildBody(cecMessage.getOpcode(), cecMessage.getParams()); in sendCommand()
624 cecMessage.getSource(), cecMessage.getDestination(), body); in sendCommand()
650 private void handleIncomingCecCommand(int srcAddress, int dstAddress, byte[] body) { in handleIncomingCecCommand() argument
652 HdmiCecMessage command = HdmiCecMessageBuilder.of(srcAddress, dstAddress, body); in handleIncomingCecCommand()
697 int nativeSendCecCommand(int srcAddress, int dstAddress, byte[] body); in nativeSendCecCommand() argument
746 public int nativeSendCecCommand(int srcAddress, int dstAddress, byte[] body) { in nativeSendCecCommand() argument
[all …]
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DMultimediaMessagePdu.java48 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument
50 mMessageBody = body; in MultimediaMessagePdu()
78 public void setBody(PduBody body) { in setBody() argument
79 mMessageBody = body; in setBody()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java143 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument
148 if (body != null) { in createCmasSmsMessage()
150 encodeBody(encoding, body, true, cmasBos); in createCmasSmsMessage()
191 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument
196 encodeBody(encoding, body, false, bos); in createBroadcastSmsMessage()
211 private static void encodeBody(int encoding, String body, boolean isCmasRecord, in encodeBody() argument
214 int charCount = body.length(); in encodeBody()
231 bos.write(7, body.charAt(i)); in encodeBody()
238 byte[] encodedBody = GsmAlphabet.stringToGsm7BitPacked(body); in encodeBody()
267 int charCount = body.length(); in encodeBody()
[all …]
/frameworks/base/obex/javax/obex/
DPrivateInputStream.java147 public synchronized void writeBytes(byte[] body, int start) { in writeBytes() argument
149 int length = (body.length - start) + (mData.length - mIndex); in writeBytes()
153 System.arraycopy(body, start, temp, mData.length - mIndex, body.length - start); in writeBytes()
DServerOperation.java239 byte[] body = updateRequestHeaders(packet); in handleObexPacket()
241 if (body != null) { in handleObexPacket()
272 if (body != null) { in handleObexPacket()
273 mPrivateInput.writeBytes(body, 1); in handleObexPacket()
285 byte[] body = null; in updateRequestHeaders()
287 body = ObexHelper.updateHeaderSet(requestHeader, packet.mPayload); in updateRequestHeaders()
300 return body; in updateRequestHeaders()
487 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendReply()
500 out.write(body); in sendReply()
508 out.write(body); in sendReply()
/frameworks/ml/nn/runtime/test/specs/V1_3/
Dwhile_fib.mod.py84 body, body_quant8, body_quant8_signed = MakeBodyModel()
91 model = Model().Operation("WHILE", cond, body, fib_init, i_init, n).To(outputs)
97 body: body_quant8,
103 body: body_quant8_signed,
Dwhile_sum_of_powers.mod.py82 body = MakeInnerBodyModel()
87 model.Operation("WHILE", cond, body, xi_init, j_init, i, x).To(xi)
97 body = MakeOuterBodyModel()
100 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
Dwhile_sum_of_powers_quant8_signed.mod.py86 body = MakeInnerBodyModel()
93 model.Operation("WHILE", cond, body, xi_init, j_init, i, x).To(xi)
103 body = MakeOuterBodyModel()
106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
Dwhile_sum_of_powers_quant8.mod.py86 body = MakeInnerBodyModel()
93 model.Operation("WHILE", cond, body, xi_init, j_init, i, x).To(xi)
103 body = MakeOuterBodyModel()
106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum)
/frameworks/base/core/java/android/provider/
DTelephony.java420 Uri uri, String address, String body, String subject, in addMessageToUri() argument
423 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri()
443 Uri uri, String address, String body, String subject, in addMessageToUri() argument
445 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri()
466 Uri uri, String address, String body, String subject, in addMessageToUri() argument
469 resolver, uri, address, body, subject, in addMessageToUri()
491 Uri uri, String address, String body, String subject, in addMessageToUri() argument
503 values.put(BODY, body); in addMessageToUri()
610 String address, String body, String subject, Long date, in addMessage() argument
613 resolver, CONTENT_URI, address, body, subject, date, read, false); in addMessage()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_3_cts_only/
Dwhile_fib_unknown_dimension.mod.py99 body, body_quant8, body_quant8_signed = MakeBodyModel()
106 model = Model().Operation("WHILE", cond, body, fib_init, i_init, n).To(outputs)
112 body: body_quant8,
118 body: body_quant8_signed,
Dwhile_fib_unknown_rank.mod.py99 body, body_quant8, body_quant8_signed = MakeBodyModel()
106 model = Model().Operation("WHILE", cond, body, fib_init, i_init, n).To(outputs)
112 body: body_quant8,
118 body: body_quant8_signed,
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java272 protected MockResponse buildResponse(int status, byte[] body) { in buildResponse() argument
273 return buildResponse(status).setBody(body); in buildResponse()
285 final byte[] body = Streams.readFully(new FileInputStream(bodyFile)); in buildResponse()
286 return buildResponse(status).setBody(body); in buildResponse()
925 protected long doStandardEnqueue(byte[] body) throws Exception { in doStandardEnqueue() argument
926 return enqueueDownloadRequest(body); in doStandardEnqueue()
929 protected long enqueueDownloadRequest(byte[] body) throws Exception { in enqueueDownloadRequest() argument
931 mServer.enqueue(buildResponse(HTTP_OK, body)); in enqueueDownloadRequest()
940 protected long doStandardEnqueue(File body) throws Exception { in doStandardEnqueue() argument
941 return enqueueDownloadRequest(body); in doStandardEnqueue()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDeviceTest.java49 private static int SendCecCommandFactory(int srcAddress, int dstAddress, byte[] body) { in SendCecCommandFactory() argument
50 switch (body[0] & 0xFF) { in SendCecCommandFactory()
56 && Arrays.equals(Arrays.copyOfRange(body, 1, body.length), param) in SendCecCommandFactory()

123