Searched defs:length (Results 1 - 25 of 240) sorted by relevance

12345678910

/frameworks/base/cmds/bugreport/
H A Dbugreport.c48 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 DDiscretePathEffect.java29 private static native int nativeCreate(float length, float deviation); argument
H A DPointF.java79 public final float length() { method in class:PointF
80 return length(x, y);
86 public static float length(float x, float y) { method in class:PointF
/frameworks/base/cmds/keystore/
H A Dkeystore_cli.cpp61 uint16_t length = strlen(argv[i]); local
62 bytes[0] = length >> 8;
63 bytes[1] = length;
65 send(sock, argv[i], length, 0);
77 int length; local
83 length = bytes[0] << 8 | bytes[1];
84 for (offset = 0; offset < length; offset += i) {
85 i = recv(sock, &bytes[offset], length - offset, 0);
91 fwrite(bytes, 1, length, stdout);
H A Dkeystore_get.h36 * 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/jni/android/graphics/
H A DNinePatchPeeker.cpp23 bool NinePatchPeeker::peek(const char tag[], const void* data, size_t length) { argument
24 if (strcmp("npTc", tag) == 0 && length >= sizeof(Res_png_9patch)) {
27 assert(length == patchSize);
/frameworks/base/opengl/libagl/
H A DTokenizer.h45 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 DDiscretePathEffect_Delegate.java65 /*package*/ static int nativeCreate(float length, float deviation) { argument
/frameworks/compile/libbcc/runtime/lib/
H A Denable_execute_stack.c49 size_t length = endPage - startPage; local
50 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java69 * 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/speech/tts/
H A DSynthesisCallback.java62 * @param length The number of bytes of audio data in {@code buffer}. This must be
66 public int audioAvailable(byte[] buffer, int offset, int length); argument
/frameworks/base/core/java/android/webkit/
H A DKeyStoreHandler.java43 * @param length The length of data.
45 public void didReceiveData(byte[] data, int length) { argument
47 mDataBuilder.append(data, 0, length);
H A DPluginData.java27 * the length of the body, the response headers, and the response
42 * The content length.
62 * @param length The length of the plugin content.
65 * @param length The HTTP response status code.
74 long length,
78 mContentLength = length;
98 * Returns the length of the plugin content.
100 * @return the length of the plugin content.
72 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
/frameworks/base/core/jni/
H A Dandroid_os_UEventObserver.cpp43 int length = uevent_next_event(buffer, buf_sz - 1); local
47 return length;
/frameworks/base/drm/common/
H A DReadWriteUtils.cpp45 off64_t length = sb.st_size; local
46 char* bytes = new char[length];
47 if (length == read(fd, (void*) bytes, length)) {
48 string.append(bytes, length);
60 off64_t length = 0; local
67 length = sb.st_size;
68 *buffer = new char[length];
69 if (length != read(fd, (void*) *buffer, length)) {
[all...]
H A DDrmConstraints.cpp33 int length = strlen(value); local
34 char* charValue = new char[length + 1];
36 strncpy(charValue, value, length);
37 charValue[length] = '\0';
H A DDrmMetadata.cpp28 int length = strlen(value); local
29 char* charValue = new char[length + 1];
31 memcpy(charValue, value, length);
32 charValue[length] = '\0';
/frameworks/base/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_crc.cpp56 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/cat/
H A DTextAttribute.java27 public int length; field in class:TextAttribute
36 public TextAttribute(int start, int length, TextAlignment align, argument
40 this.length = length;
/frameworks/compile/linkloader/utils/
H A Draw_ostream.cpp30 int const length, // Fill Width.
37 t_format.ptr = new char[length+1];
38 t_format.ptr[length] = '\0';
39 vsnprintf(t_format.ptr, length, format_s, valist);
41 int fill_len = length;
29 fillformat(char const fill_char, int const length, char const *format_s, ...) argument
/frameworks/base/core/java/com/android/internal/util/
H A DCharSequences.java36 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 DHexDump.java25 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/libs/hwui/
H A DVertex.h76 float length; member in struct:android::uirenderer::AAVertex
78 static inline void set(AAVertex* vertex, float x, float y, float width, float length) { argument
81 vertex[0].length = length;
84 static inline void setColor(AAVertex* vertex, float width, float length) { argument
86 vertex[0].length = length;
/frameworks/base/media/libmediaplayerservice/
H A DMidiMetadataRetriever.cpp50 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/rtsp/
H A DUDPPusher.cpp72 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...]

Completed in 4404 milliseconds

12345678910