Searched refs:array (Results 1 - 25 of 190) sorted by relevance

12345678

/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/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/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/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
/frameworks/base/core/java/android/os/
H A DLatencyTimer.java65 long[] array = getArray(tag);
67 // array[mSampleSize] holds the number of used entries
68 final int index = (int) array[mSampleSize]++;
69 array[index] = delta;
70 if (array[mSampleSize] == mSampleSize) {
72 for (long d : array) {
75 array[mSampleSize] = 0;
/frameworks/base/core/jni/android/graphics/
H A DDrawFilter.cpp62 #define REG(env, name, array) \
63 result = android::AndroidRuntime::registerNativeMethods(env, name, array, SK_ARRAY_COUNT(array)); \
H A DXfermode.cpp62 #define REG(env, name, array) \
63 result = android::AndroidRuntime::registerNativeMethods(env, name, array, \
64 SK_ARRAY_COUNT(array)); \
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 DGraphics.cpp52 AutoJavaFloatArray::AutoJavaFloatArray(JNIEnv* env, jfloatArray array, argument
54 : fEnv(env), fArray(array), fPtr(NULL), fLen(0) {
56 if (array) {
57 fLen = env->GetArrayLength(array);
61 fPtr = env->GetFloatArrayElements(array, NULL);
72 AutoJavaIntArray::AutoJavaIntArray(JNIEnv* env, jintArray array, argument
74 : fEnv(env), fArray(array), fPtr(NULL), fLen(0) {
76 if (array) {
77 fLen = env->GetArrayLength(array);
81 fPtr = env->GetIntArrayElements(array, NUL
91 AutoJavaShortArray(JNIEnv* env, jshortArray array, int minLength, JNIAccess access) argument
111 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_nio_utils.h28 * (and releasePointer if array is returned non-null) must be done in the
33 * @param array REQUIRED. Output. If on return it is set to non-null, then
34 * nio_releasePointer must be called with the array
40 void* nio_getPointer(JNIEnv *env, jobject buffer, jarray *array);
43 * Call this if android_nio_getPointer returned non-null in its array parameter.
44 * Pass that array and the returned pointer when you are done accessing the
45 * pointer. If called (i.e. array is non-null), it must be called in the same
49 * @param buffer The array returned from android_nio_getPointer (!= null)
54 void nio_releasePointer(JNIEnv *env, jarray array, void *pointer,
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,
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;
/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/java/android/net/
H A DNetworkUtils.java183 byte[] array = address.getAddress();
185 if (prefixLength < 0 || prefixLength > array.length * 8) {
193 if (offset < array.length) array[offset] = (byte)(array[offset] & mask);
197 for (; offset < array.length; offset++) {
198 array[offset] = 0;
203 netPart = InetAddress.getByAddress(array);
241 * Create a string array of host addresses from a collection of InetAddresses
243 * @return an array o
[all...]
/frameworks/native/libs/utils/
H A DVectorImpl.cpp119 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) argument
125 _do_copy(where, array, length);
130 ssize_t VectorImpl::appendArray(const void* array, size_t length) argument
132 return insertArrayAt(array, size(), length);
172 void* array = const_cast<void*>(arrayImpl()); local
176 void* item = reinterpret_cast<char*>(array) + mItemSize*(i);
177 void* curr = reinterpret_cast<char*>(array) + mItemSize*(i-1);
181 // we're going to have to modify the array...
182 array = editArrayImpl();
183 if (!array) retur
[all...]
/frameworks/base/core/java/android/content/
H A DClipDescription.java69 * @param mimeTypes An array of MIME types this data is available as.
141 * @return Returns an array of all matching MIME types. If there are no
145 ArrayList<String> array = null;
148 if (array == null) {
149 array = new ArrayList<String>();
151 array.add(mMimeTypes[i]);
154 if (array == null) {
157 String[] rawArray = new String[array.size()];
158 array.toArray(rawArray);
/frameworks/base/core/java/com/android/internal/os/
H A DPowerProfile.java147 private static final String TAG_ARRAY = "array";
163 ArrayList<Double> array = new ArrayList<Double>();
176 // Finish array
177 sPowerMap.put(arrayName, array.toArray(new Double[array.size()]));
182 array.clear();
197 array.add(value);
203 sPowerMap.put(arrayName, array.toArray(new Double[array.size()]));
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLayerDrawable.java34 * A Drawable that manages an array of other Drawables. These are drawn in array
342 final ChildDrawable[] array = mLayerState.mChildren;
345 array[i].mDrawable.draw(canvas);
365 final ChildDrawable[] array = mLayerState.mChildren;
368 reapplyPadding(i, array[i]);
380 final ChildDrawable[] array = mLayerState.mChildren;
383 array[i].mDrawable.setVisible(visible, restart);
390 final ChildDrawable[] array = mLayerState.mChildren;
393 array[
[all...]
H A DTransitionDrawable.java189 final ChildDrawable[] array = mLayerState.mChildren;
195 array[0].mDrawable.draw(canvas);
198 array[1].mDrawable.draw(canvas);
204 d = array[0].mDrawable;
214 d = array[1].mDrawable;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_util.h95 /* macro for range checking an array, used only if compiler flag _RANGE_CHECK
98 #define RANGE_CHECK_ARRAY(array, minBound, maxBound, length) \
102 if ((array)[i] < (minBound) || (array)[i] > (maxBound)) \
106 #define RANGE_CHECK_ARRAY(array, minBound, maxBound, length)
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp254 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, method_getObjectList, local
256 if (!array)
259 jint* handles = env->GetIntArrayElements(array, 0);
260 jsize length = env->GetArrayLength(array);
263 env->ReleaseIntArrayElements(array, handles, 0);
264 env->DeleteLocalRef(array);
283 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, local
285 if (!array)
288 jint* formats = env->GetIntArrayElements(array, 0);
289 jsize length = env->GetArrayLength(array);
301 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, local
319 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, local
337 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, local
940 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, method_getObjectReferences, local
960 jintArray array = env->NewIntArray(count); local
[all...]
/frameworks/base/core/java/android/hardware/
H A DSerialPort.java94 return native_read_array(buffer.array(), buffer.remaining());
96 throw new IllegalArgumentException("buffer is not direct and has no array");
110 native_write_array(buffer.array(), length);
112 throw new IllegalArgumentException("buffer is not direct and has no array");
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.h54 ssize_t insertArrayAt(const void* array, size_t index, size_t length);
55 ssize_t appendArray(const void* array, size_t length);
/frameworks/base/services/java/com/android/server/
H A DIntentResolverOld.java378 ArrayList<F> array = mTypeToFilter.get(name);
379 if (array == null) {
380 //Slog.v(TAG, "Creating new array for " + name);
381 array = new ArrayList<F>();
382 mTypeToFilter.put(name, array);
384 array.add(filter);
387 array = mBaseTypeToFilter.get(baseName);
388 if (array == null) {
389 //Slog.v(TAG, "Creating new array for " + name);
390 array
[all...]

Completed in 244 milliseconds

12345678