/packages/apps/Bluetooth/jni/ |
H A D | com_android_bluetooth_gatt.cpp | 568 int offset, int length, 580 jbyteArray val = sCallbackEnv->NewByteArray(length); 581 if (val) sCallbackEnv->SetByteArrayRegion(val, 0, length, (jbyte*)value); 584 offset, length, need_rsp, is_prep, val); 566 btgatts_request_write_cb(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t* value) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
H A D | GattService.java | 64 * Size overhead per field. Usually it's just one byte of field length and one byte of 301 UUID[] uuids = new UUID[ids.length]; 302 for(int i = 0; i != ids.length; ++i) { 586 if (client.uuids.length > 0) { 597 if (matches < client.uuids.length) continue; 805 + ", charUuid=" + charUuid + ", length=" + data.length); 826 + ", status=" + status + ", length=" + data.length); 879 + ", status=" + status + ", length 1537 onAttributeWrite(String address, int connId, int transId, int attrHandle, int offset, int length, boolean needRsp, boolean isPrep, byte[] data) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapbMessage.java | 140 if(numbers != null && numbers.length > 0) 142 phoneNumbers = new String[numbers.length]; 143 for(int i = 0, n = numbers.length; i < n; i++){ 150 if(phoneNumbers.length > 0) { 199 if(parts.length == 2) { 206 if(parts.length == 2) { 213 if(parts.length == 2) { 217 phoneNumbers.add(subParts[subParts.length-1]); // only keep actual phone number 223 if(parts.length == 2) { 227 emailAddresses.add(subParts[subParts.length 352 getDataBytes(int length) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppReceiveFileInfo.java | 71 public BluetoothOppReceiveFileInfo(String data, long length, int status) { argument 74 mLength = length; 77 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, argument 82 mLength = length; 95 long length = 0; 103 length = metadataCursor.getInt(1); 133 if (stat.getBlockSize() * ((long)stat.getAvailableBlocks() - 4) < length) { 179 return new BluetoothOppReceiveFileInfo(fullfilename, length, new FileOutputStream(
|
H A D | BluetoothOppSendFileInfo.java | 80 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument 84 mLength = length; 91 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { argument 96 mLength = length; 106 long length = 0; 125 length = metadataCursor.getInt(1); 126 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length); 140 length = f.length(); [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 130 assertEquals("Not all operations were executed.", work.length, aqs 156 assertEquals("Not all operations were executed.", work.length, aqs 184 assertEquals("Not all operations were executed.", work.length, aqs 214 assertEquals("Not all operations were executed.", work.length, aqs 246 assertEquals("Not all operations were executed.", work.length, aqs 262 OperationInfo[] sorted = generateSortedWork(work, work.length); 268 assertEquals("Not all operations were executed.", work.length, aqs 285 OperationInfo[] expected = generateSortedWork(work, work.length - 1); 296 assertEquals("Not all operations were executed.", expected.length, aqs 328 assertEquals("Not all operations were executed.", expected.length, aq 389 generateSortedWork(OperationInfo[] work, int length) argument [all...] |
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Blend.cpp | 1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; local 1087 X = length * sinTheta + m_wb.x; 1088 Y = length * cosTheta + m_wb.y; 1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; local 1097 Y = length * sinTheta + m_wb.y; 1098 X = length * cosTheta + m_wb.x; 1122 double length = sqrt(deltaX * deltaX + deltaY * deltaY); local 1123 double deltaTheta = asin(deltaX / length); 1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; 1132 double length local 1404 double length = sqrt(deltaX * deltaX + deltaY * deltaY); local [all...] |
/packages/apps/Camera2/jni/feature_mos/src/mosaic/ |
H A D | Blend.cpp | 1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; local 1087 X = length * sinTheta + m_wb.x; 1088 Y = length * cosTheta + m_wb.y; 1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; local 1097 Y = length * sinTheta + m_wb.y; 1098 X = length * cosTheta + m_wb.x; 1122 double length = sqrt(deltaX * deltaX + deltaY * deltaY); local 1123 double deltaTheta = asin(deltaX / length); 1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; 1132 double length local 1404 double length = sqrt(deltaX * deltaX + deltaY * deltaY); local [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | CountedDataInputStream.java | 65 public long skip(long length) throws IOException { argument 66 long skip = in.skip(length); 71 public void skipOrThrow(long length) throws IOException { argument 72 if (skip(length) != length) throw new EOFException(); 88 readOrThrow(b, 0, b.length);
|
H A D | ExifOutputStream.java | 106 , int offset, int length) { 108 int byteToRead = length > byteNeeded ? byteNeeded : length; 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 120 && length > 0) { 122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length; 123 length -= byteToProcess; 128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length; 105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument [all...] |
H A D | ExifParser.java | 297 // Some camera models use invalid length of the offset 692 for (int i = 0, n = value.length; i < n; i++) { 700 for (int i = 0, n = value.length; i < n; i++) { 708 for (int i = 0, n = value.length; i < n; i++) { 716 for (int i = 0, n = value.length; i < n; i++) { 724 for (int i = 0, n = value.length; i < n; i++) { 762 int length = dataStream.readUnsignedShort(); 768 if (length >= 8) { 771 length -= 6; 774 mApp1End = length; 800 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | ExifTag.java | 211 * setValue() if the length of value does not match the component count. 232 * <li>The value.length does NOT match the component count in the definition 237 if (checkBadComponentCount(value.length)) { 250 long[] data = new long[value.length]; 251 for (int i = 0; i < value.length; i++) { 255 mComponentCountActual = value.length; 282 * <li>The value.length does NOT match the component count in the definition 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { 294 mComponentCountActual = value.length; 316 * Characters that cannot be converted are replaced with '?'. The length o 411 setValue(byte[] value, int offset, int length) argument 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | XmpUtil.java | 66 public int length; field in class:XmpUtil.Section 117 section.data, XMP_HEADER_SIZE, buffer, 0, buffer.length); 224 if (section.length > 0) { 226 int lh = section.length >> 8; 227 int ll = section.length & 0xff; 253 if (buffer.length > MAX_XMP_BUFFER_SIZE) { 258 byte[] xmpdata = new byte[buffer.length + XMP_HEADER_SIZE]; 260 System.arraycopy(buffer, 0, xmpdata, XMP_HEADER_SIZE, buffer.length); 263 // Adds the length place (2 bytes) to the section length [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | TextHighlightingAnimation.java | 120 public int length() { method in class:TextHighlightingAnimation.TextWithHighlightingImpl 151 int count = states.length;
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/ |
H A D | FormatUtilsTests.java | 66 private void checkCopyToCharArrayBuffer(CharArrayBuffer buffer, String value, int length) { argument 68 assertEquals(length, buffer.sizeCopied); 69 for (int index = 0; index < length; ++index) {
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerObj.java | 39 // Max timer length is 9 hours + 99 minutes + 9 seconds 46 public long mOriginalLength; // length set at start of timer and by +1 min after times up 47 public long mSetupLength; // length set at start of timer 188 public TimerObj(long length, String label) { argument 189 this(length); 193 private void init (long length) { argument 199 mTimeLeft = mOriginalLength = mSetupLength = length; 212 return (mLabel == null || mLabel.length() == 0) ? context.getString( 245 if (timerStrings.length > 0) { 246 for (int i = 0; i < timerStrings.length; [all...] |
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
H A D | SmartDialNameMatcher.java | 42 // The maximum length of the initial we will match - typically set to 1 to minimize false 69 * @param length Length of the desired mask. 71 private void constructEmptyMask(StringBuilder builder, int length) { argument 72 for (int i = 0; i < length; ++i) { 107 for (int i = offset; i < number.length(); i++) { 128 constructEmptyMask(builder, phoneNumber.length()); 202 for (int i = offset; i < phoneNumber.length(); i++) { 203 if (queryAt == query.length()) { 264 constructEmptyMask(builder, displayName.length()); 266 final int nameLength = displayName.length(); [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | LoggingInputStream.java | 67 public int read(byte[] b, int offset, int length) throws IOException { argument 68 int bytesRead = super.read(b, offset, length); 97 if (mDumpEmptyLines || (mSb.length() > mTag.length())) {
|
/packages/apps/Email/src/com/android/email/ |
H A D | FixedLengthInputStream.java | 23 * A filtering InputStream that stops allowing reads after the given length has been read. This 32 public FixedLengthInputStream(InputStream in, int length) { argument 34 this.mLength = length; 53 public int read(byte[] b, int offset, int length) throws IOException { argument 55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length)); 69 return read(b, 0, b.length); 78 return String.format("FixedLengthInputStream(in=%s, length=%d)", mIn.toString(), mLength);
|
H A D | PeekableInputStream.java | 55 public int read(byte[] b, int offset, int length) throws IOException { argument 57 return mIn.read(b, offset, length); 61 int r = mIn.read(b, offset + 1, length - 1); 72 return read(b, 0, b.length);
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | ProviderTestUtils.java | 64 account.mNewMessageCount = 5 + name.length(); 168 message.mTimeStamp = 100 + name.length(); 178 message.mServerTimeStamp = 300 + name.length(); 190 message.mMeetingInfo = "123" + accountId + mailboxId + name.length(); 197 message.mSourceKey = 400 + name.length(); 235 * @param length the "length" of the attachment 240 public static Attachment setupAttachment(long messageId, String fileName, long length, argument 243 att.mSize = length; 266 * @param length th 270 setupAttachment(long messageId, String fileName, long length, boolean saveIt, Context context) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
H A D | AttachmentDownloadServiceTests.java | 115 for (int i = 0; i < expectedAttachmentIds.length; i++) { 165 * length of the single file can be set 196 public void setFileLength(long length) { argument 197 mMockFile.mLength = length; 207 * A mock file that reports back a pre-set length 218 public long length() { method in class:AttachmentDownloadServiceTests.MockFile 255 // Mock a file of length 12, but need to uncache previous amount first 260 // Mock a file of length 13, but need to uncache previous amount first
|
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | EasOutboxService.java | 102 public SendMailEntity(Context context, FileInputStream instream, long length, int tag, argument 104 super(instream, length); 107 mFileLength = length; 113 * We always return -1 because we don't know the actual length of the POST data (this 159 // the message, as EAS 14 limits the length to 40 chars and we use 70+) 406 long fileLength = tmpFile.length();
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | ItemOperationsParser.java | 103 * @param length the number of expected bytes we're going to read 108 final long length, final ProgressCallback callback) throws IOException { 127 // We can't report percentage if data is chunked; the length of incoming data is unknown 128 if (length > 0) { 129 final int pct = (int)((totalRead * 100) / length); 107 readChunked(final InputStream inputStream, final OutputStream outputStream, final long length, final ProgressCallback callback) argument
|
H A D | Serializer.java | 102 mOutput.write(0); // 0 length string array 175 public Serializer opaque(InputStream is, int length) throws IOException { argument 178 writeInteger(mOutput, length); 180 log("Opaque, length: " + length); 184 while (length > 0) { 185 int bytesRead = is.read(buffer, 0, Math.min(BUFFER_SIZE, length)); 190 length -= bytesRead; 195 public Serializer opaqueWithoutData(int length) throws IOException { argument 198 writeInteger(mOutput, length); [all...] |