/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
CollectionCreationTester.java | 43 E[] array = createArrayWithNullElement(); local 44 collection = getSubjectGenerator().create(array); 45 expectContents(array); 51 E[] array = createArrayWithNullElement(); local 54 getSubjectGenerator().create(array);
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
AtomicsTest.java | 65 String[] array = {"foo", "bar", "baz"}; local 66 AtomicReferenceArray<String> refArray = Atomics.newReferenceArray(array); 67 for (int i = 0; i < array.length; ++i) { 68 assertEquals(array[i], refArray.get(i)); 71 refArray.get(array.length);
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
IsArray.java | 10 * Matcher for array whose elements satisfy a sequence of matchers. 11 * The array size must equal the number of element matchers. 21 public boolean matchesSafely(T[] array) { 22 if (array.length != elementMatchers.length) return false; 24 for (int i = 0; i < array.length; i++) { 25 if (!elementMatchers[i].matches(array[i])) return false; 34 mismatchDescription.appendText("array length was ").appendValue(actual.length); 85 * positively only if the number of matchers specified is equal to the length of the examined array and 86 * each matcher[i] is satisfied by array[i]. 88 * <pre>assertThat(new Integer[]{1,2,3}, is(array(equalTo(1), equalTo(2), equalTo(3))))</pre 93 public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers) { method in class:IsArray [all...] |
/external/libcxx/test/std/containers/sequences/array/array.special/ |
swap.pass.cpp | 10 // <array> 12 // template <class T, size_t N> void swap(array<T,N>& x, array<T,N>& y); 14 #include <array> 18 // std::array is explicitly allowed to be initialized with A a = { init-list };. 43 typedef std::array<T, 3> C; 58 typedef std::array<T, 0> C; 67 typedef std::array<T, 0> C0; 81 typedef std::array<T, 42> C1;
|
/external/libcxx/test/std/iterators/iterator.container/ |
empty.pass.cpp | 14 // template <class T, size_t N> constexpr bool empty(const T (&array)[N]) noexcept; // C++17 20 #include <array> 58 void test_const_array( const T (&array)[Sz] ) 60 ASSERT_NOEXCEPT(std::empty(array)); 61 assert (!std::empty(array)); 68 std::array<int, 1> a; a[0] = 3;
|
size.pass.cpp | 14 // template <class T, size_t N> constexpr size_t size(const T (&array)[N]) noexcept; // C++17 19 #include <array> 61 void test_const_array( const T (&array)[Sz] ) 63 ASSERT_NOEXCEPT(std::size(array)); 64 assert ( std::size(array) == Sz ); 71 std::array<int, 1> a; a[0] = 3;
|
/external/libcxx/test/std/iterators/iterator.range/ |
begin-end.pass.cpp | 26 // template <class T, size_t N> reverse_iterator<T*> constexpr rbegin(T (&array)[N]); // C++14 27 // template <class T, size_t N> reverse_iterator<T*> constexpr rend(T (&array)[N]); // C++14 38 #include <array> 42 // std::array is explicitly allowed to be initialized with A a = { init-list };. 126 void test_const_array( const T (&array)[Sz] ) { 127 assert ( std::begin(array) == array ); variable 128 assert (*std::begin(array) == array[0] ); variable 129 assert ( std::begin(array) != std::end(array)) 132 assert ( std::cbegin(array) == array ); variable 133 assert (*std::cbegin(array) == array[0] ); variable [all...] |
/external/proguard/src/proguard/obfuscate/ |
AttributeShrinker.java | 49 // Compact the array for class attributes. 71 // Compact the attributes array. 88 // Compact the attributes array. 99 * from the given array. 102 private static int shrinkArray(VisitorAccepter[] array, int length) 109 if (AttributeUsageMarker.isUsed(array[index])) 111 array[counter++] = array[index]; 115 // Clear the remaining array elements. 116 Arrays.fill(array, counter, length, null) [all...] |
/external/skia/src/utils/ |
SkBitSet.h | 36 void setAll(T* array, int len) { 39 this->set(static_cast<int>(array[i])); 49 /** Export indices of set bits to T array. */ 51 void exportTo(SkTDArray<T>* array) const { 53 SkASSERT(array); 61 array->push(index + j);
|
/external/skia/tests/ |
SortTest.cpp | 20 static void rand_array(SkRandom& rand, int array[], int n) { 22 array[j] = rand.nextS() & 0xFF; 27 const int array[], const int reference[], int n) { 29 if (array[j] != reference[j]) { 31 label, n, array[j], reference[j]); 37 /** An array of random numbers to be sorted. */ 41 /** The random numbers are copied into this array, sorted by an SkSort, 42 then this array is compared against the reference sort. */
|
/external/skqp/src/utils/ |
SkBitSet.h | 36 void setAll(T* array, int len) { 39 this->set(static_cast<int>(array[i])); 49 /** Export indices of set bits to T array. */ 51 void exportTo(SkTDArray<T>* array) const { 53 SkASSERT(array); 61 array->push(index + j);
|
/external/skqp/tests/ |
SortTest.cpp | 20 static void rand_array(SkRandom& rand, int array[], int n) { 22 array[j] = rand.nextS() & 0xFF; 27 const int array[], const int reference[], int n) { 29 if (array[j] != reference[j]) { 31 label, n, array[j], reference[j]); 37 /** An array of random numbers to be sorted. */ 41 /** The random numbers are copied into this array, sorted by an SkSort, 42 then this array is compared against the reference sort. */
|
/external/tensorflow/tensorflow/compiler/tests/ |
momentum_test.py | 70 self.assertAllCloseAccordingToType(np.array([0.1, 0.1]), slot0.eval()) 71 self.assertAllCloseAccordingToType(np.array([0.01, 0.01]), slot1.eval()) 74 np.array([1.0 - (0.1 * 2.0), 2.0 - (0.1 * 2.0)]), var0.eval()) 76 np.array([3.0 - (0.01 * 2.0), 4.0 - (0.01 * 2.0)]), var1.eval()) 81 np.array([(0.9 * 0.1 + 0.1), (0.9 * 0.1 + 0.1)]), slot0.eval()) 83 np.array([(0.9 * 0.01 + 0.01), (0.9 * 0.01 + 0.01)]), slot1.eval()) 86 np.array([ 91 np.array([ 101 var0_np = np.array([0.1, 0.2], dtype=dtype) 102 var1_np = np.array([0.3, 0.4], dtype=dtype [all...] |
/external/walt/pywalt/pywalt/ |
evparser.py | 2 from numpy import array 17 x = array([int(e[VALUE]) for e in events if e[AXIS] == 'X']) 18 tx = array([float(e[TIME]) for e in events if e[AXIS] == 'X']) 20 y = array([int(e[VALUE]) for e in events if e[AXIS] == 'Y']) 21 ty = array([float(e[TIME]) for e in events if e[AXIS] == 'Y'])
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
TlvBufferUtils.java | 35 * allowing usage for LV (no T) array formats. 52 * The byte array is either provided (using 59 * The final byte array is obtained using {@link TlvConstructor#getArray()}. 90 * Set the byte array to be used to construct the TLV. 92 * @param array Byte array to be formatted. 96 public TlvConstructor wrap(@Nullable byte[] array) { 97 mArray = array; 98 mArrayLength = (array == null) ? 0 : array.length [all...] |
/frameworks/native/services/vr/performanced/ |
task.h | 6 #include <array> 36 const std::array<int, 4>& user_id() const { return user_id_; } 37 const std::array<int, 4>& group_id() const { return group_id_; } 57 std::array<int, 4> user_id_; 58 std::array<int, 4> group_id_;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryActiveView.java | 54 SparseIntArray array = mProvider.getColorArray(); local 56 for (int i = 0; i < array.size() - 1; i++) { 57 drawColor(canvas, array.keyAt(i), array.keyAt(i + 1), array.valueAt(i), period);
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
PresetSettingsListener.java | 42 newValues = res.getIntArray(R.array.standard_setting_values); 45 newValues = res.getIntArray(R.array.cinema_setting_values); 48 newValues = res.getIntArray(R.array.vivid_setting_values); 51 newValues = res.getIntArray(R.array.game_setting_values); 57 final String[] keys = res.getStringArray(R.array.setting_keys);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
CharSequenceReader.java | 87 * Read the sepcified number of characters into the array. 89 * @param array The array to store the characters in 90 * @param offset The starting position in the array to store 95 public int read(char[] array, int offset, int length) { 99 if (array == null) { 100 throw new NullPointerException("Character array is missing"); 102 if (length < 0 || (offset + length) > array.length) { 103 throw new IndexOutOfBoundsException("Array Size=" + array.length [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
Hex.java | 19 * Basic hex operations: from byte array to string and vice versa. 54 * Quickly converts a byte array to a hexadecimal string representation. 56 * @param array byte array, possibly zero-terminated. 58 public static String encodeHex(byte[] array, boolean zeroTerminated) { 59 char[] cArray = new char[array.length * 2]; 62 for (int i = 0; i < array.length; i++) { 63 int index = array[i] & 0xFF; 64 if (zeroTerminated && index == 0 && i == array.length-1) { 76 * Quickly converts a hexadecimal string to a byte array [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/sequences/array/array.special/ |
swap.pass.cpp | 10 // <array> 12 // template <class T, size_t N> void swap(array<T,N>& x, array<T,N>& y); 14 #include <array> 18 // std::array is explicitly allowed to be initialized with A a = { init-list };. 43 typedef std::array<T, 3> C; 58 typedef std::array<T, 0> C; 67 typedef std::array<T, 0> C0; 81 typedef std::array<T, 42> C1;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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; 61 typedef std::array<T, 3> C; 82 typedef std::array<T, 3> C;
|
indexing.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; 52 typedef std::array<T, 3> C; 63 typedef std::array<T, 3> C;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/iterators/iterator.container/ |
data.pass.cpp | 13 // template <class T, size_t N> constexpr T* data(T (&array)[N]) noexcept; // C++17 25 #include <array> 53 void test_const_array( const T (&array)[Sz] ) 55 assert ( std::data(array) == &array[0]); variable 61 std::array<int, 1> a; a[0] = 3;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/iterators/iterator.range/ |
begin-end.pass.cpp | 26 // template <class T, size_t N> reverse_iterator<T*> constexpr rbegin(T (&array)[N]); // C++14 27 // template <class T, size_t N> reverse_iterator<T*> constexpr rend(T (&array)[N]); // C++14 38 #include <array> 42 // std::array is explicitly allowed to be initialized with A a = { init-list };. 126 void test_const_array( const T (&array)[Sz] ) { 127 assert ( std::begin(array) == array ); variable 128 assert (*std::begin(array) == array[0] ); variable 129 assert ( std::begin(array) != std::end(array)) 132 assert ( std::cbegin(array) == array ); variable 133 assert (*std::cbegin(array) == array[0] ); variable [all...] |