/frameworks/base/cmds/bugreport/ |
H A D | bugreport.c | 48 int length = read(s, buffer, sizeof(buffer)); local 49 if (length <= 0) 51 fwrite(buffer, 1, length, stdout);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | DiscretePathEffect.java | 29 private static native int nativeCreate(float length, float deviation); argument
|
H A D | PointF.java | 77 public final float length() { method in class:PointF 78 return length(x, y); 84 public static float length(float x, float y) { method in class:PointF
|
/frameworks/base/opengl/libagl/ |
H A D | Tokenizer.h | 45 run_t(uint32_t f, uint32_t l) : first(f), length(l) {} 47 uint32_t length; member in struct:android::Tokenizer::run_t
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | DiscretePathEffect_Delegate.java | 65 /*package*/ static int nativeCreate(float length, float deviation) { argument
|
/frameworks/base/cmds/keystore/ |
H A D | keystore_cli.c | 65 uint16_t length = strlen(argv[i]); local 66 bytes[0] = length >> 8; 67 bytes[1] = length; 69 send(sock, argv[i], length, 0); 79 int length; local 85 length = bytes[0] << 8 | bytes[1]; 86 for (offset = 0; offset < length; offset += i) { 87 i = recv(sock, &bytes[offset], length - offset, 0); 93 fwrite(bytes, 1, length, stdout);
|
H A D | keystore_get.h | 36 * The first two arguments are the key and its length. The third argument 38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or 40 static int keystore_get(const char *key, int length, char *value) argument 42 uint8_t bytes[2] = {length >> 8, length}; 46 if (length < 0 || length > KEYSTORE_MESSAGE_SIZE) { 55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 && 59 length [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 69 * Reads at most {@code length} bytes from this stream and stores them in 77 * @param length 82 * if {@code offset < 0} or {@code length < 0}, or if 83 * {@code offset + length} is greater than the length of 89 public int read(byte[] b, int offset, int length) throws IOException { argument 93 if ((offset | length) < 0 || length > b.length - offset) { 94 throw new ArrayIndexOutOfBoundsException("invalid offset or length"); [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | PluginData.java | 27 * the length of the body, the response headers, and the response 41 * The content length. 61 * @param length The length of the plugin content. 64 * @param length The HTTP response status code. 72 long length, 76 mContentLength = length; 95 * Returns the length of the plugin content. 97 * @return the length of the plugin content. 70 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
|
/frameworks/base/core/jni/ |
H A D | android_os_UEventObserver.cpp | 43 int length = uevent_next_event(buffer, buf_sz - 1); local 47 return length;
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | MidiMetadataRetriever.cpp | 50 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument 52 LOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length); 58 return mMidiPlayer->setDataSource(fd, offset, length);;
|
/frameworks/base/media/libstagefright/ |
H A D | FileSource.cpp | 28 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 31 mLength(length) { 33 CHECK(length >= 0);
|
H A D | string.cpp | 29 string::string(const char *s, size_t length) argument 30 : mString(s, length) { 33 string::string(const string &from, size_type start, size_type length) { argument 35 if (length == npos) { 36 length = from.size() - start; 38 CHECK(start + length <= from.size()); 41 mString.setTo(from.c_str() + start, length); 53 return mString.length(); 84 void string::erase(size_t from, size_t length) { argument 86 s.append(mString.string() + from + length); [all...] |
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_crc.cpp | 56 uint32 length, number of element upon the crc will be calculated 142 uint32 length, 146 uint32 masking = 1 << length; 141 calculate_crc(uint32 data, uint32 length, uint32 *crc) argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
H A D | TextAttribute.java | 27 public int length; field in class:TextAttribute 36 public TextAttribute(int start, int length, TextAlignment align, argument 40 this.length = length;
|
H A D | ImageDescriptor.java | 30 int length; field in class:ImageDescriptor 46 length = 0; 70 d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));
|
/frameworks/base/voip/jni/rtp/ |
H A D | GsmCodec.cpp | 47 int decode(int16_t *samples, void *payload, int length); 60 int GsmCodec::decode(int16_t *samples, void *payload, int length) argument 62 if (length == 33 &&
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | CharSequences.java | 36 public int length() { 37 return bytes.length; 59 * is greater than length(), or if start is greater than end 63 validate(start, end, bytes.length); 69 public int length() { 76 validate(newStart, newEnd, length()); 81 return new String(bytes, start, length()); 86 static void validate(int start, int end, int length) { argument 89 if (end > length) throw new IndexOutOfBoundsException(); 97 if (a.length() ! [all...] |
H A D | HexDump.java | 25 return dumpHexString(array, 0, array.length); 28 public static String dumpHexString(byte[] array, int offset, int length) argument 38 for (int i = offset ; i < offset + length ; i++) 101 return toHexString(array, 0, array.length); 104 public static String toHexString(byte[] array, int offset, int length) argument 106 char[] buf = new char[length * 2]; 109 for (int i = offset ; i < offset + length; i++) 154 int length = hexString.length(); 155 byte[] buffer = new byte[length / [all...] |
/frameworks/base/media/libstagefright/rtsp/ |
H A D | UDPPusher.cpp | 72 uint32_t length; local 73 if (fread(&length, 1, sizeof(length), mFile) < sizeof(length)) { 78 length = fromlel(length); 80 CHECK_GT(length, 0u); 82 sp<ABuffer> buffer = new ABuffer(length); 83 if (fread(buffer->data(), 1, length, mFile) < length) { [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | PrivateInputStream.java | 76 return mData.length - mIndex; 92 while (mData.length == mIndex) { 102 return read(b, 0, b.length); 106 public synchronized int read(byte[] b, int offset, int length) throws IOException { argument 111 if ((offset | length) < 0 || length > b.length - offset) { 116 int currentDataLength = mData.length - mIndex; 117 int remainReadLength = length; 131 currentDataLength = mData.length [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | GsmSmsAddress.java | 36 * @param length the length in bytes rounded up, e.g. "2 + 40 public GsmSmsAddress(byte[] data, int offset, int length) { argument 41 origBytes = new byte[length]; 42 System.arraycopy(data, offset, origBytes, 0, length); 66 byte lastByte = origBytes[length - 1]; 70 origBytes[length - 1] |= 0xf0; 73 OFFSET_TOA, length - OFFSET_TOA); 76 origBytes[length - 1] = lastByte;
|
H A D | SimTlv.java | 38 public SimTlv(byte[] record, int offset, int length) { argument 42 this.tlvLength = length; 97 // one byte length 0 - 0x7f 101 // two byte length 0x80 - 0xff
|
/frameworks/base/core/java/android/speech/srec/ |
H A D | MicrophoneInputStream.java | 66 return AudioRecordRead(mAudioRecord, b, 0, b.length); 70 public int read(byte[] b, int offset, int length) throws IOException { argument 73 return AudioRecordRead(mAudioRecord, b, offset, length); 107 private static native int AudioRecordRead(int audioRecord, byte[] b, int offset, int length) throws IOException; argument
|
H A D | UlawEncoderInputStream.java | 50 byte[] ulawBuf, int ulawOffset, int length, int max) { 80 for (int i = 0; i < length; i++) { 117 * @param length number of pcm samples (not number of input bytes) 120 public static int maxAbsPcm(byte[] pcmBuf, int offset, int length) { argument 122 for (int i = 0; i < length; i++) { 141 public int read(byte[] buf, int offset, int length) throws IOException { argument 144 // return at least one byte, but try to fill 'length' 146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount)); 152 int n = Math.min(mBufCount / 2, length); 49 encode(byte[] pcmBuf, int pcmOffset, byte[] ulawBuf, int ulawOffset, int length, int max) argument [all...] |