/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
StringArrayResourceLoaderTest.java | 37 assertThat(Arrays.asList(stringArrayResourceLoader.getArrayValue(R.array.items)), hasItems("foo", "bar")); 42 assertThat(Arrays.asList(stringArrayResourceLoader.getArrayValue(R.array.greetings)), hasItems("hola", "Hello")); 47 assertThat(Arrays.asList(stringArrayResourceLoader.getArrayValue(android.R.array.emailAddressTypes)), hasItems("Home", "Work", "Other", "Custom")); 48 assertThat(Arrays.asList(stringArrayResourceLoader.getArrayValue(R.array.emailAddressTypes)), hasItems("Doggy", "Catty"));
|
/external/skia/tools/lua/ |
classify_rrect_clips.lua | 76 array = {} 79 array[#array + 1] = {class = k, count = v}; 82 table.sort(array, sort_classes) 84 for i = 1, #array do 85 io.write(array[i].class, ": ", array[i].count, " (", array[i].count/class_table["total"] * 100, "%)\n");
|
/external/skqp/tools/lua/ |
classify_rrect_clips.lua | 76 array = {} 79 array[#array + 1] = {class = k, count = v}; 82 table.sort(array, sort_classes) 84 for i = 1, #array do 85 io.write(array[i].class, ": ", array[i].count, " (", array[i].count/class_table["total"] * 100, "%)\n");
|
/external/tensorflow/tensorflow/core/kernels/ |
matrix_diag_op.h | 37 operator()(const Eigen::array<Eigen::DenseIndex, 2>& coords) const { 38 Eigen::array<Eigen::DenseIndex, 3> diag_from_coords( 55 operator()(const Eigen::array<Eigen::DenseIndex, 3>& coords) const { 58 Eigen::array<Eigen::DenseIndex, 2> diag_coords({coords[0], coords[1]});
|
/external/tensorflow/tensorflow/python/debug/examples/ |
debug_errors.py | 35 v = tf.Variable(np.array([[-2.0], [-3.0], [6.0]], dtype=np.float32), name="v") 37 np.array([[0.0, 1.0, 2.0], [-4.0, -1.0, 0.0]]), 47 print(sess.run(y, feed_dict={ph_float: np.array([[0.0], [1.0], [2.0]])})) 51 print(sess.run(y, feed_dict={ph_float: np.array([[0.0, 1.0, 2.0]])}))
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
xent_op_test.py | 75 np.array([[1.], [-1.], [0.]]).astype(dtype), 76 np.array([[-1.], [0.], [1.]]).astype(dtype)) 87 np_features = np.array([[[1., 1., 1., 1.]], [[1., 2., 3., 89 np_labels = np.array([[[0., 0., 0., 1.]], [[0., .5, .5, 121 np_loss, np_backprop = self._npXent(np.array(features), np.array(labels)) 123 np.array([[0.25, 0.25, 0.25, -0.75], [0.0321, -0.4129, -0.2632, 129 np.array([1.3862, 1.9401]), np_loss, rtol=1.e-3, atol=1.e-3) 145 np.array([[1., 1., 1., 1.], [1., 2., 3., 4.]]).astype(np.float16), 146 np.array([[0., 0., 0., 1.], [0., .5, .5, 0.]]).astype(np.float16) [all...] |
/external/tensorflow/tensorflow/python/training/ |
momentum_test.py | 90 self.assertAllCloseAccordingToType(np.array([0.1, 0.1]), 92 self.assertAllCloseAccordingToType(np.array([0.01, 0.01]), 96 np.array([1.0 - (0.1 * 2.0), 2.0 - (0.1 * 2.0)]), 99 np.array([3.0 - (0.01 * 2.0), 4.0 - (0.01 * 2.0)]), 108 np.array([(0.9 * 0.1 + 0.1), (0.9 * 0.1 + 0.1)]), 111 np.array([(0.9 * 0.01 + 0.01), (0.9 * 0.01 + 0.01)]), 115 np.array([ 120 np.array([ 175 var0_np = np.array([1.0, 2.0], dtype=dtype.as_numpy_dtype) 176 var1_np = np.array([3.0, 4.0], dtype=dtype.as_numpy_dtype [all...] |
/external/webrtc/talk/app/webrtc/objc/ |
RTCMediaConstraints.mm | 59 (NSArray*)array { 61 for (RTCPair* pair in array) {
|
/frameworks/base/apct-tests/perftests/core/src/android/perftests/ |
SystemPerfTest.java | 109 private static native void jintarrayArgumentNoop(int[] array, int length); 111 private static native int jintarrayGetLength(int[] array); 113 private static native int jintarrayCriticalAccess(int[] array, int index); 115 private static native int jintarrayBasicAccess(int[] array, int index);
|
/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
AtomicFile.kt | 47 * Sets the content of this file as an [array] of bytes. 50 fun AtomicFile.writeBytes(array: ByteArray) { 52 it.write(array) 66 * Gets the entire content of this file as a byte array.
|
/hardware/interfaces/tests/foo/1.0/default/lib/include/hidl-test/ |
FooHelper.h | 41 std::string to_string(const hidl_array<T, SIZE> &array) { 42 return to_string(&array[0], SIZE); 46 std::string to_string(const hidl_array<T, SIZE1, SIZE2> &array) { 60 out += to_string(array[i][j]);
|
/hardware/qcom/msm8998/json-c/ |
arraylist.h | 25 void **array; member in struct:array_list
|
/libcore/luni/src/main/java/java/nio/ |
NIOAccess.java | 42 * Returns the underlying Java array containing the data of the 43 * given Buffer, or null if the Buffer is not backed by a Java array. 46 return b.hasArray() ? b.array() : null; 51 * Java array object containing the data of the given Buffer to
|
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/ |
ManyConfigResourceActivity.java | 30 getResources().getStringArray(R.array.many_configs);
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/linux-x86/clang-4479392/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|
/prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/Support/ |
MD5.h | 34 #include <array> 56 std::array<uint8_t, 16> Bytes; 58 operator std::array<uint8_t, 16>() const { return Bytes; } 98 static std::array<uint8_t, 16> hash(ArrayRef<uint8_t> Data);
|