/frameworks/native/libs/input/ |
D | InputTransport.cpp | 78 return body.motion.pointerCount > 0 in isValid() 79 && body.motion.pointerCount <= MAX_POINTERS; in isValid() 90 return sizeof(Header) + body.key.size(); in size() 92 return sizeof(Header) + body.motion.size(); in size() 94 return sizeof(Header) + body.finished.size(); in size() 270 msg.body.key.seq = seq; in publishKeyEvent() 271 msg.body.key.deviceId = deviceId; in publishKeyEvent() 272 msg.body.key.source = source; in publishKeyEvent() 273 msg.body.key.action = action; in publishKeyEvent() 274 msg.body.key.flags = flags; in publishKeyEvent() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmSmsCbMessage.java | 265 String body = null; in unpackBody() local 269 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7); in unpackBody() 271 if (hasLanguageIndicator && body != null && body.length() > 2) { in unpackBody() 274 language = body.substring(0, 2); in unpackBody() 275 body = body.substring(3); in unpackBody() 289 body = new String(pdu, offset, (length & 0xfffe), "utf-16"); in unpackBody() 300 if (body != null) { in unpackBody() 302 for (int i = body.length() - 1; i >= 0; i--) { in unpackBody() 303 if (body.charAt(i) != CARRIAGE_RETURN) { in unpackBody() 304 body = body.substring(0, i + 1); in unpackBody() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListWithMailMessages.java | 77 public MailMessage(String subject, String body) { in MailMessage() argument 78 this(subject, body, false); in MailMessage() 82 public MailMessage(String subject, String body, boolean focusable) { in MailMessage() argument 84 mBody = body; in MailMessage() 100 public void setBody(String body) { in setBody() argument 101 this.mBody = body; in setBody() 138 WebView body = (WebView) messageUi.findViewById(R.id.body); in getView() local 139 body.loadData(message.getBody(), mimeType, null); in getView() 141 body.setFocusable(message.isFocusable()); in getView()
|
D | ListOfEditTexts.java | 113 String body = getItem(position); in getView() local 116 ((EditText) convertView).setText(body); in getView() 121 editText.setText(body); in getView()
|
/frameworks/native/libs/input/tests/ |
D | InputChannel_test.cpp | 79 serverMsg.body.key.action = AKEY_EVENT_ACTION_DOWN; in TEST_F() 88 EXPECT_EQ(serverMsg.body.key.action, clientMsg.body.key.action) in TEST_F() 95 clientReply.body.finished.seq = 0x11223344; in TEST_F() 96 clientReply.body.finished.handled = true; in TEST_F() 105 EXPECT_EQ(clientReply.body.finished.seq, serverReply.body.finished.seq) in TEST_F() 107 EXPECT_EQ(clientReply.body.finished.handled, serverReply.body.finished.handled) in TEST_F()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/ |
D | HTTPResponse.java | 31 int body = -1; in HTTPResponse() local 43 if (body < 0) { in HTTPResponse() 47 body = n + 1; in HTTPResponse() 48 statusCode = parseHeader(input, body, mHeaders); in HTTPResponse() 49 expected = calculateLength(body, mHeaders); in HTTPResponse() 63 mBody = ByteBuffer.wrap(input, body, expected - body); in HTTPResponse() 66 private static int parseHeader(byte[] input, int body, Map<String, String> headers) in parseHeader() argument 68 String headerText = new String(input, 0, body - BODY_SEPARATOR_LENGTH, in parseHeader() 101 private static int calculateLength(int body, Map<String, String> headers) throws IOException { in calculateLength() argument 107 return body + Integer.parseInt(contentLength); in calculateLength()
|
/frameworks/av/media/libnbaio/ |
D | NBLog.cpp | 714 String8 timestamp, body; in dump() local 717 body.appendFormat("warning: lost %zu bytes worth of events", lost); in dump() 720 dumpLine(timestamp, body); in dump() 737 body.appendFormat("%.*s", (int) entry.length(), entry.data()); in dump() 772 dumpLine(timestamp, body); in dump() 791 appendInt(&body, entry.data()); in dump() 794 appendFloat(&body, entry.data()); in dump() 797 appendPID(&body, entry.data(), entry.length()); in dump() 802 entry = handleFormat(FormatEntry(entry), ×tamp, &body); in dump() 805 body.appendFormat("warning: got to end format event"); in dump() [all …]
|
/frameworks/rs/rsov/compiler/spirit/ |
D | generate.py | 271 body = "setWordCount();\n" 272 body += " OS << mCodeAndCount;\n" 275 body += " if (%s!=nullptr) { OS << *%s; }\n" % (var, var) 277 body += """ for (auto val : %s) { OS << val; }\n""" % var 279 body += " OS << %s;\n" % var 280 body += " SerializeExtraOperands(OS);\n" 281 return body 284 body = "return DeserializeFirstWord(IS, %s)" % name 286 body += " &&\n " 288 body += "DeserializeOptionallyOne(IS, &%s)" % var [all …]
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 75 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/ |
D | DrmReceiver.java | 37 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()
|
D | ReceiverActivity.java | 38 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()
|
D | ReceiverService.java | 48 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/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | MultimediaMessagePdu.java | 44 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument 46 mMessageBody = body; in MultimediaMessagePdu() 72 public void setBody(PduBody body) { in setBody() argument 73 mMessageBody = body; in setBody()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | SOAPParser.java | 70 XMLNode body = null; in SOAPParser() local 74 body = child; in SOAPParser() 79 if (body == null || body.getChildren().isEmpty()) { in SOAPParser() 83 mResponseNode = body.getSoleChild(); in SOAPParser()
|
/frameworks/base/telephony/java/android/telephony/ |
D | Telephony.java | 343 Uri uri, String address, String body, String subject, in addMessageToUri() argument 346 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri() 365 Uri uri, String address, String body, String subject, in addMessageToUri() argument 367 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri() 387 Uri uri, String address, String body, String subject, in addMessageToUri() argument 390 resolver, uri, address, body, subject, in addMessageToUri() 411 Uri uri, String address, String body, String subject, in addMessageToUri() argument 423 values.put(BODY, body); in addMessageToUri() 527 String address, String body, String subject, Long date, in addMessage() argument 530 resolver, CONTENT_URI, address, body, subject, date, read, false); in addMessage() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaSmsCbTest.java | 145 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument 150 if (body != null) { in createCmasSmsMessage() 152 encodeBody(encoding, body, true, cmasBos); in createCmasSmsMessage() 193 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument 198 encodeBody(encoding, body, false, bos); in createBroadcastSmsMessage() 213 private static void encodeBody(int encoding, String body, boolean isCmasRecord, in encodeBody() argument 216 int charCount = body.length(); in encodeBody() 233 bos.write(7, body.charAt(i)); in encodeBody() 240 byte[] encodedBody = GsmAlphabet.stringToGsm7BitPacked(body); in encodeBody() 269 int charCount = body.length(); in encodeBody() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | PrivateInputStream.java | 147 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()
|
D | ServerOperation.java | 229 byte[] body = updateRequestHeaders(packet); in handleObexPacket() 231 if (body != null) { in handleObexPacket() 262 if (body != null) { in handleObexPacket() 263 mPrivateInput.writeBytes(body, 1); in handleObexPacket() 275 byte[] body = null; in updateRequestHeaders() 277 body = ObexHelper.updateHeaderSet(requestHeader, packet.mPayload); in updateRequestHeaders() 290 return body; in updateRequestHeaders() 477 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendReply() 490 out.write(body); in sendReply() 498 out.write(body); in sendReply()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hdmi_HdmiCecController.cpp | 145 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/av/media/libnbaio/include/ |
D | NBLog.h | 185 static void appendInt(String8 *body, const void *data); 186 static void appendFloat(String8 *body, const void *data); 187 static void appendPID(String8 *body, const void *data, size_t length); 188 static void appendTimestamp(String8 *body, const void *data); 377 void dumpLine(const String8& timestamp, String8& body); 381 String8 *body); 383 virtual size_t handleAuthor(const FormatEntry &fmtEntry, String8 *body) { return 0; } in handleAuthor() argument 440 size_t handleAuthor(const FormatEntry &fmtEntry, String8 *body);
|
/frameworks/rs/rsov/compiler/tests/single_kernel/ |
D | duff.ll | 16 i32 0, label %do.body 26 do.body: ; preds = %entry, %sw.bb14 32 sw.bb1: ; preds = %entry, %do.body 33 %n.1 = phi i32 [ %n.0, %do.body ], [ %div, %entry ] 34 %x.1 = phi i32 [ %mul, %do.body ], [ 321, %entry ] 78 br i1 %cmp, label %do.body, label %sw.epilog
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | WifiDisplaySource.cpp | 593 AString body = in sendM3() local 603 request.append(AStringPrintf("Content-Length: %d\r\n", body.size())); in sendM3() 605 request.append(body); in sendM3() 625 AString body; in sendM4() local 628 body.append("wfd_video_formats: "); in sendM4() 638 body.append(chosenVideoFormat.getFormatSpec(true /* forM4Message */)); in sendM4() 639 body.append("\r\n"); in sendM4() 643 body.append( in sendM4() 650 body.append( in sendM4() 655 body.append( in sendM4() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerBaseTest.java | 272 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, DOWNLOAD_TO_DOWNLOAD_CACHE_DIR); in doStandardEnqueue() 929 protected long enqueueDownloadRequest(byte[] body, int location) 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, DOWNLOAD_TO_DOWNLOAD_CACHE_DIR); in doStandardEnqueue() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecController.java | 230 byte[] body = new byte[params.length + 1]; in buildBody() 231 body[0] = (byte) opcode; in buildBody() 232 System.arraycopy(params, 0, body, 1, params.length); in buildBody() 233 return body; in buildBody() 597 byte[] body = buildBody(cecMessage.getOpcode(), cecMessage.getParams()); in sendCommand() 602 cecMessage.getDestination(), body); in sendCommand() 628 private void handleIncomingCecCommand(int srcAddress, int dstAddress, byte[] body) { in handleIncomingCecCommand() argument 630 HdmiCecMessage command = HdmiCecMessageBuilder.of(srcAddress, dstAddress, body); in handleIncomingCecCommand() 674 int dstAddress, byte[] body); in nativeSendCecCommand() argument
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMasRequest.java | 128 protected void executePut(ClientSession session, byte[] body) throws IOException { in executePut() argument 131 mHeaderSet.setHeader(HeaderSet.LENGTH, Long.valueOf(body.length)); in executePut() 137 out.write(body); in executePut()
|