Home
last modified time | relevance | path

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

1234

/frameworks/native/libs/input/
DInputTransport.cpp103 return body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
116 return sizeof(Header) + body.key.size(); in size()
118 return sizeof(Header) + body.motion.size(); in size()
120 return sizeof(Header) + body.finished.size(); in size()
122 return sizeof(Header) + body.focus.size(); in size()
141 msg->body.key.seq = body.key.seq; in getSanitizedCopy()
143 msg->body.key.eventId = body.key.eventId; in getSanitizedCopy()
145 msg->body.key.eventTime = body.key.eventTime; in getSanitizedCopy()
147 msg->body.key.deviceId = body.key.deviceId; in getSanitizedCopy()
149 msg->body.key.source = body.key.source; in getSanitizedCopy()
[all …]
/frameworks/av/media/libnblog/
DReader.cpp236 String8 timestamp, body; in dump() local
243 it = handleFormat(FormatEntry(it), &timestamp, &body); in dump()
247 body.appendFormat("EVENT_LATENCY,%.3f", latencyMs); in dump()
251 body.appendFormat("EVENT_OVERRUN,%lld", static_cast<long long>(ts)); in dump()
255 body.appendFormat("EVENT_THREAD_INFO,%d,%s", static_cast<int>(info.id), in dump()
260 body.appendFormat("EVENT_UNDERRUN,%lld", static_cast<long long>(ts)); in dump()
264 body.appendFormat("EVENT_WARMUP_TIME,%.3f", timeMs); in dump()
268 body.appendFormat("EVENT_WORK_TIME,%lld", static_cast<long long>(monotonicNs)); in dump()
272 body.appendFormat("EVENT_THREAD_PARAMS,%zu,%u", params.frameCount, params.sampleRate); in dump()
277 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.cpp89 serverMsg.body.key.action = AKEY_EVENT_ACTION_DOWN; in TEST_F()
98 EXPECT_EQ(serverMsg.body.key.action, clientMsg.body.key.action) in TEST_F()
105 clientReply.body.finished.seq = 0x11223344; in TEST_F()
106 clientReply.body.finished.handled = true; in TEST_F()
115 EXPECT_EQ(clientReply.body.finished.seq, serverReply.body.finished.seq) in TEST_F()
117 EXPECT_EQ(clientReply.body.finished.handled, serverReply.body.finished.handled) in TEST_F()
183 serverMsg.body.motion.seq = 1; in TEST_F()
184 serverMsg.body.motion.pointerCount = 1; in TEST_F()
188 serverMsg.body.motion.classification = classification; in TEST_F()
195 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.java58 final StringBuilder body = new StringBuilder(); field in DumpTruck
77 body.setLength(0); in captureHeaps()
78 body.append("Build: ").append(Build.DISPLAY).append("\n\nProcesses:\n"); in captureHeaps()
85 body.append(" pid ").append(pid); in captureHeaps()
89 body.append(":") in captureHeaps()
104 body.append(" (hprof attached)"); in captureHeaps()
107 body.append("\n** Could not dump heap: \n").append(e.toString()).append("\n"); in captureHeaps()
110 body.append("\n"); in captureHeaps()
124 body.append("\n** Could not zip up files: \n").append(e.toString()).append("\n"); in captureHeaps()
151 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.java262 byte[] body = new byte[params.length + 1]; in buildBody()
263 body[0] = (byte) opcode; in buildBody()
264 System.arraycopy(params, 0, body, 1, params.length); in buildBody()
265 return body; in buildBody()
632 byte[] body = buildBody(cecMessage.getOpcode(), cecMessage.getParams()); in sendCommand()
637 cecMessage.getSource(), cecMessage.getDestination(), body); in sendCommand()
663 private void handleIncomingCecCommand(int srcAddress, int dstAddress, byte[] body) { in handleIncomingCecCommand() argument
665 HdmiCecMessage command = HdmiCecMessageBuilder.of(srcAddress, dstAddress, body); in handleIncomingCecCommand()
721 int nativeSendCecCommand(int srcAddress, int dstAddress, byte[] body); in nativeSendCecCommand() argument
736 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/services/core/jni/
Dcom_android_server_hdmi_HdmiCecController.cpp145 jbyteArray body = env->NewByteArray(message.body.size()); in propagateCecCommand() local
146 const jbyte* bodyPtr = reinterpret_cast<const jbyte *>(message.body.data()); in propagateCecCommand()
147 env->SetByteArrayRegion(body, 0, message.body.size(), bodyPtr); in propagateCecCommand()
150 dstAddr, body); in propagateCecCommand()
151 env->DeleteLocalRef(body); in propagateCecCommand()
361 jint srcAddr, jint dstAddr, jbyteArray body) { in nativeSendCecCommand() argument
366 jsize len = env->GetArrayLength(body); in nativeSendCecCommand()
367 ScopedByteArrayRO bodyPtr(env, body); in nativeSendCecCommand()
370 message.body.resize(bodyLength); in nativeSendCecCommand()
372 message.body[i] = static_cast<uint8_t>(bodyPtr[i]); in nativeSendCecCommand()
/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.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_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)
/frameworks/base/core/java/android/provider/
DTelephony.java421 Uri uri, String address, String body, String subject, in addMessageToUri() argument
424 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri()
444 Uri uri, String address, String body, String subject, in addMessageToUri() argument
446 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri()
467 Uri uri, String address, String body, String subject, in addMessageToUri() argument
470 resolver, uri, address, body, subject, in addMessageToUri()
492 Uri uri, String address, String body, String subject, in addMessageToUri() argument
504 values.put(BODY, body); in addMessageToUri()
611 String address, String body, String subject, Long date, in addMessage() argument
614 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_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,
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,
/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 …]

1234