/external/skqp/experimental/tools/ |
generate-unicode-test-txt | 8 import array, zlib, base64, sys 50 pack = array.array('I', zlib.decompress(
|
/frameworks/base/core/java/android/view/autofill/ |
Helper.java | 65 * Convers a collaction of {@link AutofillId AutofillIds} to an array. 67 * @return The array. 73 final AutofillId[] array = new AutofillId[collection.size()]; local 74 collection.toArray(array); 75 return array;
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
Result.java | 48 // Get the average of an array list 71 float[] array = new float[getIterations()]; local 73 array[i] = timeList.get(i); 75 return array;
|
/hardware/libhardware/modules/camera/3_4/ |
v4l2_wrapper_mock.h | 41 int(uint32_t, std::set<std::array<int32_t, 2>>*)); 44 const std::array<int32_t, 2>&, 45 std::array<int64_t, 2>*));
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/sequences/array/array.tuple/ |
get_const_rv.pass.cpp | 10 // <array> 12 // template <size_t I, class T, size_t N> const T&& get(const array<T, N>&& a); 16 #include <array> 24 // std::array is explicitly allowed to be initialized with A a = { init-list };. 33 typedef std::array<T, 1> C; 44 typedef std::array<T, 3> C;
|
/external/tensorflow/tensorflow/contrib/crf/python/kernel_tests/ |
crf_test.py | 35 transition_params = np.array( 39 np.array(3, dtype=np.int32), 40 np.array(1, dtype=np.int32) 43 np.array([[4, 5, -3], [3, -1, 3], [-1, 2, 1], [0, 0, 0]], 45 np.array([[4, 5, -3]], 49 np.array([1, 2, 1, 0], dtype=np.int32), 50 np.array([1], dtype=np.int32) 72 inputs = np.array( 75 tag_indices = np.array([1, 2, 1, 0], dtype=dtype) 76 sequence_lengths = np.array(3, dtype=np.int32 [all...] |
/art/test/445-checker-licm/src/ |
Main.java | 107 public static int arrayLength(int[] array) { 109 for (int i = 0; i < array.length; ++i) { 110 result += array[i]; 146 public static int divAndIntrinsic(int[] array) { 148 for (int i = 0; i < array.length; i++) { 151 result += (staticField / 42) + Math.abs(array[i]);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
ArrayTest.java | 67 checkStringArray(R.array.strings, new String[] {"zero", "1", "here"}); 68 checkTextArray(R.array.strings, new String[] {"zero", "1", "here"}); 69 checkStringArray(R.array.integers, new String[] {null, null, null}); 70 checkTextArray(R.array.integers, new String[] {null, null, null}); 75 checkIntArray(R.array.strings, new int[] {0, 0, 0}); 76 checkIntArray(R.array.integers, new int[] {0, 1, 101});
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
ShortArrayCodeOutput.java | 24 /** array to write to */ 25 private final short[] array; field in class:ShortArrayCodeOutput 37 this.array = new short[maxSize]; 41 * Gets the array. The returned array contains exactly the data 47 if (cursor == array.length) { 48 return array; 52 System.arraycopy(array, 0, result, 0, cursor); 59 array[cursor()] = codeUnit;
|
/developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
CardService.java | 38 * byte-array based communication channel. It is left to developers to implement higher level 66 * response APDU can be provided directly by returning a byte-array in this method. In general 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 114 * Utility method to convert a byte array to a hexadecimal string. 137 * @return Byte array generated from input 156 * @param first First array 162 for (byte[] array : rest) { 163 totalLength += array.length; 167 for (byte[] array : rest) { 168 System.arraycopy(array, 0, result, offset, array.length) [all...] |
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
CardService.java | 38 * byte-array based communication channel. It is left to developers to implement higher level 66 * response APDU can be provided directly by returning a byte-array in this method. In general 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 114 * Utility method to convert a byte array to a hexadecimal string. 137 * @return Byte array generated from input 156 * @param first First array 162 for (byte[] array : rest) { 163 totalLength += array.length; 167 for (byte[] array : rest) { 168 System.arraycopy(array, 0, result, offset, array.length) [all...] |
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
CardService.java | 38 * byte-array based communication channel. It is left to developers to implement higher level 66 * response APDU can be provided directly by returning a byte-array in this method. In general 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 114 * Utility method to convert a byte array to a hexadecimal string. 137 * @return Byte array generated from input 156 * @param first First array 162 for (byte[] array : rest) { 163 totalLength += array.length; 167 for (byte[] array : rest) { 168 System.arraycopy(array, 0, result, offset, array.length) [all...] |
/external/libcxx/test/std/containers/sequences/array/ |
at.pass.cpp | 10 // <array> 17 #include <array> 22 // std::array is explicitly allowed to be initialized with A a = { init-list };. 29 std::array<double, 3> arr = {1, 2, 3.5}; 38 typedef std::array<T, 3> C; 62 typedef std::array<T, 0> C; 81 typedef std::array<T, 3> C; 102 typedef std::array<T, 3> C;
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ActivityResultFacade.java | 164 boolean[] array = new boolean[resultValue.length]; 166 array[i] = resultValue[i]; 168 mResult.putExtra(Constants.EXTRA_RESULT, array); 180 byte[] array = new byte[resultValue.length]; 182 array[i] = resultValue[i]; 184 mResult.putExtra(Constants.EXTRA_RESULT, array); 196 short[] array = new short[resultValue.length]; local 198 array[i] = resultValue[i]; 200 mResult.putExtra(Constants.EXTRA_RESULT, array); 212 char[] array = new char[resultValue.length] local 228 int[] array = new int[resultValue.length]; local 244 long[] array = new long[resultValue.length]; local 260 float[] array = new float[resultValue.length]; local 276 double[] array = new double[resultValue.length]; local [all...] |
/external/tensorflow/tensorflow/compiler/tests/ |
nullary_ops_test.py | 48 np.array([], dtype=np.float32), 49 np.array([1, 2], dtype=np.float32), 50 np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32), 51 np.array([[[1, 2], [3, 4], [5, 6]], [[10, 20], [30, 40], [50, 60]]], 53 np.array([[[]], [[]]], dtype=np.float32), 54 np.array([[[[1]]]], dtype=np.float32),
|
/external/tensorflow/tensorflow/contrib/eager/python/ |
datasets_test.py | 111 indices=np.array([[0, 0], [1, 0], [2, 0]]), 112 values=np.array([0, 0, 0]), 113 dense_shape=np.array([3, 1])), 115 indices=np.array([[0, 0], [1, 1], [2, 2]]), 116 values=np.array([1, 2, 3]), 117 dense_shape=np.array([3, 3]))) 121 indices=np.array([[0]]), 122 values=np.array([0]), 123 dense_shape=np.array([1])), 125 indices=np.array([[0]]) [all...] |
/external/wayland/src/ |
wayland-util.c | 96 wl_array_init(struct wl_array *array) 98 memset(array, 0, sizeof *array); 102 wl_array_release(struct wl_array *array) 104 free(array->data); 105 array->data = WL_ARRAY_POISON_PTR; 109 wl_array_add(struct wl_array *array, size_t size) 114 if (array->alloc > 0) 115 alloc = array->alloc; 119 while (alloc < array->size + size [all...] |
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
InputMethodSubtypeArrayTest.java | 42 final InputMethodSubtypeArray array = new InputMethodSubtypeArray(subtypes); local 43 assertEquals(subtypes.size(), array.getCount()); 44 assertEquals(subtypes.get(0), array.get(0)); 45 assertEquals(subtypes.get(1), array.get(1)); 46 assertEquals(subtypes.get(2), array.get(2)); 48 final InputMethodSubtypeArray clonedArray = cloneViaParcel(array);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
WrappedCharBufferTest2.java | 74 buf.array(); 81 char array[] = new char[1]; local 83 buf.put(array, 0, array.length); 101 buf.put(array, -1, array.length);
|
/libcore/json/src/test/java/libcore/org/json/ |
JSONStringerTest.java | 38 stringer.array(); 53 stringer.array(); 60 stringer.array(); 72 stringer.array(); 102 stringer.array(); 111 new JSONStringer().array().value(Double.NaN); 116 new JSONStringer().array().value(Double.NEGATIVE_INFINITY); 121 new JSONStringer().array().value(Double.POSITIVE_INFINITY); 127 stringer.array(); 156 new JSONStringer().array().endObject() 236 JSONArray array = new JSONArray(); local 317 JSONArray array = new JSONArray(); local [all...] |
/packages/apps/TV/common/src/com/android/tv/common/util/ |
CollectionUtils.java | 30 * Returns an array with the arrays concatenated together. 37 for (T[] array : rest) { 38 totalLength += array.length; 42 for (T[] array : rest) { 43 System.arraycopy(array, 0, result, offset, array.length); 44 offset += array.length;
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
SimpleBackupSharedPreference.java | 62 final JSONArray array = new JSONArray(); local 64 array.put(o); 66 json.put(VALUE, array); 77 final JSONArray array = (JSONArray) value; local 78 for (int i = 0, len = array.length(); i < len; i++) { 79 set.add(array.get(i));
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
ArrayUtil.java | 34 * Build an array from the provided contents. 37 * The resulting array will be the concatenation of <var>arrays</var> input arrays, in their 42 * @return the newly constructed array 46 for (String[] array : arrays) { 47 length += array.length; 51 for (String[] array : arrays) { 52 System.arraycopy(array, 0, newArray, offset, array.length); 53 offset += array.length; 59 * Convert a varargs list/array to an {@link List}. This is useful for building instances o [all...] |
/tools/tradefederation/core/src/com/android/tradefed/util/ |
ArrayUtil.java | 33 * Build an array from the provided contents. 36 * The resulting array will be the concatenation of <var>arrays</var> input arrays, in their 41 * @return the newly constructed array 45 for (String[] array : arrays) { 46 length += array.length; 50 for (String[] array : arrays) { 51 System.arraycopy(array, 0, newArray, offset, array.length); 52 offset += array.length; 58 * Convert a varargs list/array to an {@link List}. This is useful for building instances o [all...] |
/art/runtime/interpreter/mterp/x86_64/ |
op_aput_object.S | 2 * Store an object into an array. vBB[vCC] <- vAA. 10 call SYMBOL(MterpAputObject) # (array, index)
|