Searched defs:array (Results 1 - 25 of 71) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java36 * @param array array of floats used to transform colors, treated as a 4x5
37 * matrix. The first 20 entries of the array are copied into
40 public ColorMatrixColorFilter(float[] array) { argument
41 if (array.length < 20) {
44 native_instance = nativeColorMatrixFilter(array);
45 nativeColorFilter = nColorMatrixFilter(native_instance, array);
48 private static native int nativeColorMatrixFilter(float[] array); argument
49 private static native int nColorMatrixFilter(int nativeFilter, float[] array); argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DColorMatrixColorFilter_Delegate.java58 /*package*/ static int nativeColorMatrixFilter(float[] array) { argument
64 /*package*/ static int nColorMatrixFilter(int nativeFilter, float[] array) { argument
H A DNinePatch_Delegate.java89 // get the array and add it to the cache
90 byte[] array = baos.toByteArray();
91 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk));
92 return array;
99 * the array is deserialized into a {@link NinePatchChunk} object.
101 * @param array the serialized representation of the chunk.
104 public static NinePatchChunk getChunk(byte[] array) { argument
105 SoftReference<NinePatchChunk> chunkRef = sChunkCache.get(array);
108 ByteArrayInputStream bais = new ByteArrayInputStream(array);
116 sChunkCache.put(array, ne
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DHexDump.java23 public static String dumpHexString(byte[] array) argument
25 return dumpHexString(array, 0, array.length);
28 public static String dumpHexString(byte[] array, int offset, int length) argument
61 byte b = array[i];
99 public static String toHexString(byte[] array) argument
101 return toHexString(array, 0, array.length);
104 public static String toHexString(byte[] array, int offset, int length) argument
111 byte b = array[
[all...]
H A DArrayUtils.java23 // and the array size eats another 4 bytes
76 * @param array1 the first byte array
77 * @param array2 the second byte array
97 * Returns an empty array of the specified type. The intent is that
98 * it will return the same empty array every time to avoid reallocation,
120 * Checks that value is present as at least one of the elements of the array.
121 * @param array the array to check in
123 * @return true if the value is present in the array
125 public static <T> boolean contains(T[] array, argument
136 contains(int[] array, int value) argument
145 total(long[] array) argument
161 appendElement(Class<T> kind, T[] array, T element) argument
187 removeElement(Class<T> kind, T[] array, T element) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DByteArrayBuilder.java26 single array, though this is supported in the API. It is fastest
46 public synchronized void append(byte[] array, int offset, int length) { argument
60 System.arraycopy(array, offset, c.mArray, c.mLength, amount);
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp54 * and return the array.
100 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); local
101 if (array == NULL) {
105 bytes = env->GetByteArrayElements(array, NULL);
120 env->ReleaseByteArrayElements(array, bytes, 0);
129 return array;
H A Dandroid_util_StringBlock.cpp122 jintArray array = env->NewIntArray((num*sizeof(ResStringPool_span))/sizeof(jint)); local
123 if (array == NULL) { // NewIntArray already threw OutOfMemoryError.
130 env->SetIntArrayRegion(array,
137 return array;
H A Dandroid_nio_utils.cpp29 void* android::nio_getPointer(JNIEnv *_env, jobject buffer, jarray *array) { argument
30 assert(array);
39 *array = NULL;
43 *array = (jarray) _env->CallStaticObjectMethod(gNioJNI.nioAccessClass,
47 data = _env->GetPrimitiveArrayCritical(*array, (jboolean *) 0);
53 void android::nio_releasePointer(JNIEnv *_env, jarray array, void *data, argument
55 _env->ReleasePrimitiveArrayCritical(array, data,
/frameworks/base/libs/hwui/utils/
H A DSortedList.h67 inline const TYPE* array() const;
138 inline const TYPE* SortedList<TYPE>::array() const { function in class:android::uirenderer::SortedList
150 return *(array() + index);
161 return *(array() + ((index < 0) ? (size() - index) : index));
166 return *(array() + size() - 1);
/frameworks/base/services/java/com/android/server/
H A DAttributeCache.java56 public final TypedArray array; field in class:AttributeCache.Entry
60 array = ta;
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dlagconceal.cpp101 void insertion_sort(int16 array[], int16 n);
102 void insert(int16 array[], int16 num, int16 x);
333 void insertion_sort(int16 array[], int16 n) argument
339 insert(array, i, array[i]);
347 void insert(int16 array[], int16 n, int16 x) argument
354 if (x < array[i])
356 array[i + 1] = array[i];
363 array[
[all...]
/frameworks/base/core/jni/android/graphics/
H A DColorFilter.cpp103 SkFixed array[20]; local
105 array[i] = SkFloatToScalar(src[i]);
107 return new SkColorMatrixFilter(array);
133 #define REG(env, name, array) \
134 result = android::AndroidRuntime::registerNativeMethods(env, name, array, \
135 SK_ARRAY_COUNT(array)); \
H A DNinePatch.cpp46 const jbyte* array = env->GetByteArrayElements(obj, 0); local
47 if (array != NULL) {
49 reinterpret_cast<const Res_png_9patch*>(array);
51 env->ReleaseByteArrayElements(obj, const_cast<jbyte*>(array),
H A DPathMeasure.cpp72 static void convertTwoElemFloatArray(JNIEnv* env, jfloatArray array, const SkScalar src[2]) { argument
73 AutoJavaFloatArray autoArray(env, array, 2);
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutDirectionsTest.java72 // Expected directions are an array of start/length+level pairs,
213 private static String hexArray(int[] array) { argument
216 for (int i : array) {
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodecList.cpp66 jobjectArray array = env->NewObjectArray(types.size(), clazz, NULL); local
70 env->SetObjectArrayElement(array, i, obj);
75 return array;
/frameworks/compile/linkloader/utils/
H A Dserialize.h36 inline void swap_byte_order(unsigned char (&array)[1]) { argument
40 inline void swap_byte_order(unsigned char (&array)[2]) { argument
41 std::swap(array[0], array[1]);
44 inline void swap_byte_order(unsigned char (&array)[4]) { argument
45 std::swap(array[0], array[3]);
46 std::swap(array[1], array[2]);
49 inline void swap_byte_order(unsigned char (&array)[ argument
94 readBytes(void *array, size_t size) argument
103 operator &(char (&array)[size]) argument
109 operator &(unsigned char (&array)[size]) argument
[all...]
/frameworks/ex/common/java/com/android/common/content/
H A DSyncStateContentProviderHelper.java131 * Checks that value is present as at least one of the elements of the array.
132 * @param array the array to check in
134 * @return true if the value is present in the array
136 private static <T> boolean contains(T[] array, T value) { argument
137 for (T element : array) {
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DGLES10ExtcHeader.cpp65 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
79 *array = NULL;
83 *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
93 releasePointer(JNIEnv *_env, jarray array, void *data, jboolean commit) argument
95 _env->ReleasePrimitiveArrayCritical(array, data,
H A DGLES10cHeader.cpp77 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
91 *array = NULL;
95 *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
104 releasePointer(JNIEnv *_env, jarray array, void *data, jboolean commit) argument
106 _env->ReleasePrimitiveArrayCritical(array, data,
H A DGLES11ExtcHeader.cpp74 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
88 *array = NULL;
92 *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
101 releasePointer(JNIEnv *_env, jarray array, void *data, jboolean commit) argument
103 _env->ReleasePrimitiveArrayCritical(array, data,
H A DGLES11cHeader.cpp72 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
86 *array = NULL;
90 *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
100 releasePointer(JNIEnv *_env, jarray array, void *data, jboolean commit) argument
102 _env->ReleasePrimitiveArrayCritical(array, data,
H A DGLES20cHeader.cpp65 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
79 *array = NULL;
83 *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
93 releasePointer(JNIEnv *_env, jarray array, void *data, jboolean commit) argument
95 _env->ReleasePrimitiveArrayCritical(array, data,
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DEncodedStringValue.java209 * @return the array of encoded strings computed by splitting this encoded
272 public static EncodedStringValue[] encodeStrings(String[] array) { argument
273 int count = array.length;
277 encodedArray[i] = new EncodedStringValue(array[i]);

Completed in 421 milliseconds

123