/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | UnboundedFifoByteBuffer.java | 57 protected byte[] buffer; field in UnboundedFifoByteBuffer 84 buffer = new byte[initialSize + 1]; in UnboundedFifoByteBuffer() 98 size = buffer.length - head + tail; in size() 123 if (size() + 1 >= buffer.length) { in add() 124 byte[] tmp = new byte[((buffer.length - 1) * 2) + 1]; in add() 128 tmp[j] = buffer[i]; in add() 129 buffer[i] = 0; in add() 133 if (i == buffer.length) { in add() 138 buffer = tmp; in add() 143 buffer[tail] = b; in add() [all …]
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
D | GridQuadFrame.java | 110 CharBuffer buffer = mIndexBuffer; in GridQuadFrame() local 111 buffer.put(0, (char) 0); in GridQuadFrame() 112 buffer.put(1, (char) 4); in GridQuadFrame() 113 buffer.put(2, (char) 1); in GridQuadFrame() 114 buffer.put(3, (char) 5); in GridQuadFrame() 115 buffer.put(4, (char) 2); in GridQuadFrame() 116 buffer.put(5, (char) 6); in GridQuadFrame() 117 buffer.put(6, (char) 3); in GridQuadFrame() 118 buffer.put(7, (char) 7); in GridQuadFrame() 119 buffer.put(8, (char) 11); in GridQuadFrame() [all …]
|
D | GridQuadMesh.java | 168 int[] buffer = new int[1]; in freeHardwareBuffers() local 169 buffer[0] = mVertBufferIndex; in freeHardwareBuffers() 170 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 172 buffer[0] = mTextureCoordBufferIndex; in freeHardwareBuffers() 173 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 175 buffer[0] = mIndexBufferIndex; in freeHardwareBuffers() 176 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 196 int[] buffer = new int[1]; in generateHardwareBuffers() local 199 gl11.glGenBuffers(1, buffer, 0); in generateHardwareBuffers() 200 mVertBufferIndex = buffer[0]; in generateHardwareBuffers() [all …]
|
D | GridQuad.java | 124 CharBuffer buffer = mIndexBuffer; in GridQuad() local 126 buffer.put(i, (char) i); in GridQuad() 326 int[] buffer = new int[1]; in freeHardwareBuffers() local 327 buffer[0] = mVertBufferIndex; in freeHardwareBuffers() 328 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 330 buffer[0] = mOverlayTextureCoordBufferIndex; in freeHardwareBuffers() 331 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 333 buffer[0] = mIndexBufferIndex; in freeHardwareBuffers() 334 gl11.glDeleteBuffers(1, buffer, 0); in freeHardwareBuffers() 355 int[] buffer = new int[1]; in generateHardwareBuffers() local [all …]
|
D | GridCameraManager.java | 234 final int buffer = 24; in computeVisibleRange() local 235 firstVisibleSlotIndex = ((firstVisibleSlotIndex - buffer) / buffer) * buffer; in computeVisibleRange() 236 lastVisibleSlotIndex += buffer; in computeVisibleRange() 237 lastVisibleSlotIndex = (lastVisibleSlotIndex / buffer) * buffer; in computeVisibleRange()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | HexDump.java | 73 StringBuffer buffer = new StringBuffer(74); in dump() local 81 dump(buffer, display_offset).append(' '); in dump() 84 dump(buffer, data[k + j]); in dump() 86 buffer.append(" "); in dump() 88 buffer.append(' '); in dump() 92 buffer.append((char) data[k + j]); in dump() 94 buffer.append('.'); in dump() 97 buffer.append(EOL); in dump() 98 stream.write(buffer.toString().getBytes()); in dump() 100 buffer.setLength(0); in dump()
|
D | CopyUtils.java | 196 byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; in copy() 199 while (-1 != (n = input.read(buffer))) { in copy() 200 output.write(buffer, 0, n); in copy() 221 char[] buffer = new char[DEFAULT_BUFFER_SIZE]; in copy() local 224 while (-1 != (n = input.read(buffer))) { in copy() 225 output.write(buffer, 0, n); in copy()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SwipeTracker.java | 44 final EventRingBuffer buffer = mBuffer; in addPoint() local 45 while (buffer.size() > 0) { in addPoint() 46 long lastT = buffer.getTime(0); in addPoint() 49 buffer.dropOldest(); in addPoint() 51 buffer.add(x, y, time); in addPoint() 59 final EventRingBuffer buffer = mBuffer; in computeCurrentVelocity() local 60 final float oldestX = buffer.getX(0); in computeCurrentVelocity() 61 final float oldestY = buffer.getY(0); in computeCurrentVelocity() 62 final long oldestTime = buffer.getTime(0); in computeCurrentVelocity() 66 final int count = buffer.size(); in computeCurrentVelocity() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleCharStream.java | 42 protected char[] buffer; field in SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 62 System.arraycopy(buffer, 0, newbuffer, in ExpandBuff() 64 buffer = newbuffer; in ExpandBuff() 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 79 buffer = newbuffer; in ExpandBuff() 127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff() 204 return buffer[bufpos]; in readChar() 210 char c = buffer[bufpos]; in readChar() 265 buffer = new char[buffersize]; in SimpleCharStream() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/ |
D | SimpleCharStream.java | 42 protected char[] buffer; field in SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 62 System.arraycopy(buffer, 0, newbuffer, in ExpandBuff() 64 buffer = newbuffer; in ExpandBuff() 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 79 buffer = newbuffer; in ExpandBuff() 127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff() 204 return buffer[bufpos]; in readChar() 210 char c = buffer[bufpos]; in readChar() 265 buffer = new char[buffersize]; in SimpleCharStream() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | SimpleCharStream.java | 42 protected char[] buffer; field in SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 62 System.arraycopy(buffer, 0, newbuffer, in ExpandBuff() 64 buffer = newbuffer; in ExpandBuff() 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff() 79 buffer = newbuffer; in ExpandBuff() 127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff() 204 return buffer[bufpos]; in readChar() 210 char c = buffer[bufpos]; in readChar() 265 buffer = new char[buffersize]; in SimpleCharStream() [all …]
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
D | SuffixFileFilter.java | 183 StringBuffer buffer = new StringBuffer(); in toString() local 184 buffer.append(super.toString()); in toString() 185 buffer.append("("); in toString() 189 buffer.append(","); in toString() 191 buffer.append(suffixes[i]); in toString() 194 buffer.append(")"); in toString() 195 return buffer.toString(); in toString()
|
D | AndFileFilter.java | 151 StringBuffer buffer = new StringBuffer(); in toString() local 152 buffer.append(super.toString()); in toString() 153 buffer.append("("); in toString() 157 buffer.append(","); in toString() 160 buffer.append(filter == null ? "null" : filter.toString()); in toString() 163 buffer.append(")"); in toString() 164 return buffer.toString(); in toString()
|
D | WildcardFileFilter.java | 181 StringBuffer buffer = new StringBuffer(); in toString() local 182 buffer.append(super.toString()); in toString() 183 buffer.append("("); in toString() 187 buffer.append(","); in toString() 189 buffer.append(wildcards[i]); in toString() 192 buffer.append(")"); in toString() 193 return buffer.toString(); in toString()
|
D | PrefixFileFilter.java | 182 StringBuffer buffer = new StringBuffer(); in toString() local 183 buffer.append(super.toString()); in toString() 184 buffer.append("("); in toString() 188 buffer.append(","); in toString() 190 buffer.append(prefixes[i]); in toString() 193 buffer.append(")"); in toString() 194 return buffer.toString(); in toString()
|
D | NameFileFilter.java | 176 StringBuffer buffer = new StringBuffer(); in toString() local 177 buffer.append(super.toString()); in toString() 178 buffer.append("("); in toString() 182 buffer.append(","); in toString() 184 buffer.append(names[i]); in toString() 187 buffer.append(")"); in toString() 188 return buffer.toString(); in toString()
|
D | OrFileFilter.java | 145 StringBuffer buffer = new StringBuffer(); in toString() local 146 buffer.append(super.toString()); in toString() 147 buffer.append("("); in toString() 151 buffer.append(","); in toString() 154 buffer.append(filter == null ? "null" : filter.toString()); in toString() 157 buffer.append(")"); in toString() 158 return buffer.toString(); in toString()
|
/packages/apps/Nfc/jni/ |
D | com_android_nfc_NativeNfcSecureElement.cpp | 216 InParam.buffer = ExternalRFDetected; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 218 OutParam.buffer = Output_Buff; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 243 reg_value = com_android_nfc_jni_ioctl_buffer->buffer[0]; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 357 InParam.buffer = GpioGetValue; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 359 OutParam.buffer = Output_Buff; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 382 gpioValue = com_android_nfc_jni_ioctl_buffer->buffer[0]; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 398 InParam.buffer = GpioSetValue; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 400 OutParam.buffer = Output_Buff; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 502 InParam.buffer = GpioGetValue; in com_android_nfc_NativeNfcSecureElement_doDisconnect() 504 OutParam.buffer = Output_Buff; in com_android_nfc_NativeNfcSecureElement_doDisconnect() [all …]
|
D | com_android_nfc_NativeP2pDevice.cpp | 53 …psGeneralBytes->buffer = (uint8_t*)malloc(psRemoteDevInfo->RemoteDevInfo.NfcIP_Info.ATRInfo_Length… in nfc_jni_connect_callback() 54 psGeneralBytes->buffer = psRemoteDevInfo->RemoteDevInfo.NfcIP_Info.ATRInfo; in nfc_jni_connect_callback() 175 TRACE("0x%02x ", sGeneralBytes.buffer[i]); in com_android_nfc_NativeP2pDevice_doConnect() 182 (jbyte *)sGeneralBytes.buffer); in com_android_nfc_NativeP2pDevice_doConnect() 297 transceive_info.sSendData.buffer = buf; //+ offset; in com_android_nfc_NativeP2pDevice_doTransceive() 299 transceive_info.sRecvData.buffer = (uint8_t*)malloc(1024); in com_android_nfc_NativeP2pDevice_doTransceive() 302 if(transceive_info.sRecvData.buffer == NULL) in com_android_nfc_NativeP2pDevice_doTransceive() 335 (jbyte *)receive_buffer->buffer); in com_android_nfc_NativeP2pDevice_doTransceive() 338 if(transceive_info.sRecvData.buffer != NULL) in com_android_nfc_NativeP2pDevice_doTransceive() 340 free(transceive_info.sRecvData.buffer); in com_android_nfc_NativeP2pDevice_doTransceive() [all …]
|
D | com_android_nfc_NativeLlcpSocket.cpp | 187 serviceName.buffer = (uint8_t*)e->GetStringUTFChars(sn, NULL); in com_android_nfc_NativeLlcpSocket_doConnectBy() 265 sSendBuffer.buffer = (uint8_t*)e->GetByteArrayElements(data, NULL); in com_android_nfc_NativeLlcpSocket_doSend() 298 if (sSendBuffer.buffer != NULL) in com_android_nfc_NativeLlcpSocket_doSend() 300 e->ReleaseByteArrayElements(data, (jbyte*)sSendBuffer.buffer, JNI_ABORT); in com_android_nfc_NativeLlcpSocket_doSend() 306 static jint com_android_nfc_NativeLlcpSocket_doReceive(JNIEnv *e, jobject o, jbyteArray buffer) in com_android_nfc_NativeLlcpSocket_doReceive() argument 326 sReceiveBuffer.buffer = (uint8_t*)e->GetByteArrayElements(buffer, NULL); in com_android_nfc_NativeLlcpSocket_doReceive() 327 sReceiveBuffer.length = (uint32_t)e->GetArrayLength(buffer); in com_android_nfc_NativeLlcpSocket_doReceive() 364 if (sReceiveBuffer.buffer != NULL) in com_android_nfc_NativeLlcpSocket_doReceive() 366 e->ReleaseByteArrayElements(buffer, (jbyte*)sReceiveBuffer.buffer, 0); in com_android_nfc_NativeLlcpSocket_doReceive()
|
D | com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 77 sSendBuffer.buffer = (uint8_t*)e->GetByteArrayElements(data, NULL); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 111 if (sSendBuffer.buffer != NULL) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 113 e->ReleaseByteArrayElements(data, (jbyte*)sSendBuffer.buffer, JNI_ABORT); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 159 sReceiveBuffer.buffer = (uint8_t*)malloc(linkMiu); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 199 e->SetByteArrayRegion(receivedData, 0, sReceiveBuffer.length,(jbyte *)sReceiveBuffer.buffer); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 205 e->ReleaseByteArrayElements(receivedData, (jbyte*)sReceiveBuffer.buffer, 0); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushProtocol.java | 67 ByteArrayInputStream buffer = new ByteArrayInputStream(data); in NdefPushProtocol() local 68 DataInputStream input = new DataInputStream(buffer); in NdefPushProtocol() 149 ByteArrayOutputStream buffer = new ByteArrayOutputStream(1024); in toByteArray() local 150 DataOutputStream output = new DataOutputStream(buffer); in toByteArray() 165 return buffer.toByteArray(); in toByteArray()
|
D | NdefPushClient.java | 106 byte[] buffer = msg.toByteArray(); in doInBackground() 118 if (DBG) Log.d(TAG, "about to send a " + buffer.length + " byte message"); in doInBackground() 119 while (offset < buffer.length) { in doInBackground() 120 int length = Math.min(buffer.length - offset, remoteMiu); in doInBackground() 121 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); in doInBackground()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningProcessesView.java | 305 private boolean matchText(byte[] buffer, int index, String text) { in matchText() argument 307 if ((index+N) >= buffer.length) { in matchText() 311 if (buffer[index+i] != text.charAt(i)) { in matchText() 318 private long extractMemValue(byte[] buffer, int index) { in extractMemValue() argument 319 while (index < buffer.length && buffer[index] != '\n') { in extractMemValue() 320 if (buffer[index] >= '0' && buffer[index] <= '9') { in extractMemValue() 323 while (index < buffer.length && buffer[index] >= '0' in extractMemValue() 324 && buffer[index] <= '9') { in extractMemValue() 327 String str = new String(buffer, 0, start, index-start); in extractMemValue()
|
/packages/providers/DownloadProvider/tests/src/tests/http/ |
D | MockWebServer.java | 274 byte[] buffer = new byte[1024]; in transfer() 276 int count = in.read(buffer, 0, Math.min(buffer.length, length)); in transfer() 280 out.write(buffer, 0, count); in transfer() 316 @Override public void write(byte[] buffer, int offset, int len) { in write() argument 318 super.write(buffer, offset, Math.min(len, bodyLimit - count)); in write()
|