HomeSort by relevance Sort by last modified time
    Searched defs:array (Results 226 - 250 of 3039) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.modifying.operations/alg.partitions/
stable_partition.pass.cpp 42 P array[] = local
55 const unsigned size = sizeof(array)/sizeof(array[0]);
56 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first());
57 assert(base(r) == array + 4);
58 assert(array[0] == P(1, 1));
59 assert(array[1] == P(1, 2));
60 assert(array[2] == P(3, 1));
61 assert(array[3] == P(3, 2))
71 P array[] = local
111 P array[] = local
140 P array[] = local
169 P array[] = local
198 P array[] = local
227 P array[] = local
256 P array[] = local
298 std::unique_ptr<int> array[size]; local
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.sorting/alg.sort/sort/
sort.pass.cpp 85 // create array length N filled with M different numbers
86 int* array = new int[N]; local
90 array[i] = x;
95 std::sort(array, array+N);
96 assert(std::is_sorted(array, array+N));
98 std::shuffle(array, array+N, randomness);
99 std::sort(array, array+N)
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
stable_sort.pass.cpp 85 // create array length N filled with M different numbers
86 int* array = new int[N]; local
90 array[i] = x;
95 std::stable_sort(array, array+N);
96 assert(std::is_sorted(array, array+N));
98 std::shuffle(array, array+N, randomness);
99 std::stable_sort(array, array+N)
    [all...]
  /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...]
  /libcore/json/src/test/java/libcore/org/json/
JSONArrayTest.java 36 JSONArray array = new JSONArray(); local
37 assertEquals(0, array.length());
38 assertEquals("", array.join(" AND "));
40 array.get(0);
45 array.getBoolean(0);
50 assertEquals("[]", array.toString());
51 assertEquals("[]", array.toString(4));
54 assertTrue(array.isNull(0));
55 assertNull(array.opt(0));
56 assertFalse(array.optBoolean(0))
82 JSONArray array = new JSONArray(); local
132 JSONArray array = new JSONArray(); local
144 JSONArray array = new JSONArray(); local
186 JSONArray array = new JSONArray("[\\"null\\",null]"); local
205 JSONArray array = new JSONArray(); local
251 JSONArray array = new JSONArray(); local
304 JSONArray array = new JSONArray(); local
320 JSONArray array = new JSONArray(Arrays.asList(5, 6)); local
325 JSONArray array = new JSONArray(Arrays.asList(5, 6)); local
396 JSONArray array = new JSONArray(); local
416 JSONArray array = new JSONArray(); local
428 JSONArray array = new JSONArray(Arrays.asList(5.5, Double.NaN)); local
436 JSONArray array = new JSONArray(Arrays.asList(5.5, Double.NaN)); local
442 JSONArray array = new JSONArray(contents); local
512 JSONArray array = new JSONArray(Arrays.asList(5.5, true)); local
520 JSONArray array = new JSONArray(); local
    [all...]
  /frameworks/base/core/java/android/service/voice/
VoiceInteractionServiceInfo.java 112 TypedArray array = res.obtainAttributes(attrs, local
114 mSessionService = array.getString(
116 mRecognitionService = array.getString(
118 mSettingsActivity = array.getString(
120 mSupportsAssist = array.getBoolean(
123 mSupportsLaunchFromKeyguard = array.getBoolean(com.android.internal.
126 mSupportsLocalInteraction = array.getBoolean(com.android.internal.
128 array.recycle();
  /frameworks/base/core/tests/coretests/src/android/widget/
SuggestionsPopupWindowTest.java 265 final TypedArray array = local
267 final int id = array.getResourceId(
269 array.recycle();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
NotificationLogger.java 209 private void recycleAllVisibilityObjects(ArraySet<NotificationVisibility> array) {
210 final int N = array.size();
212 array.valueAt(i).recycle();
214 array.clear();
217 private void recycleAllVisibilityObjects(NotificationVisibility[] array) {
218 final int N = array.length;
220 if (array[i] != null) {
221 array[i].recycle();
228 final NotificationVisibility[] array = new NotificationVisibility[c.size()]; local
232 array[i] = nv.clone()
    [all...]
  /frameworks/base/services/core/java/com/android/server/
AttributeCache.java 60 public final TypedArray array; field in class:AttributeCache.Entry
64 array = ta;
68 if (array != null) {
69 array.recycle();
  /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);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
AMReceiver.java 66 ArrayList<String> array = new ArrayList<String>(); local
138 array.add("ActivityManager: " + s); //$NON-NLS-1$
143 AdtPlugin.printErrorToConsole(mLaunchInfo.getProject(), array.toArray());
145 AdtPlugin.printToConsole(mLaunchInfo.getProject(), array.toArray());
  /art/compiler/optimizing/
nodes_test.cc 132 HInstruction* const array[] = { parameter1 }; local
134 environment->CopyFrom(ArrayRef<HInstruction* const>(array));
142 parent1->CopyFrom(ArrayRef<HInstruction* const>(array));
148 parent2->CopyFrom(ArrayRef<HInstruction* const>(array));
  /art/runtime/native/
java_lang_VMClassLoader.cc 125 * Returns an array of entries from the boot classpath that could contain resources.
130 jobjectArray array = local
132 if (array == nullptr) {
147 env->SetObjectArrayElement(array, i, javaPath.get());
149 return array;
  /art/test/129-ThreadGetId/src/
Main.java 46 Thread[] array = new Thread[activeCount]; local
47 systemThreadGroup.enumerate(array);
48 for (Thread thread : array) {
  /art/test/527-checker-array-access-split/src/
Main.java 30 /// CHECK: <<Array:l\d+>> NullCheck
32 /// CHECK: ArrayGet [<<Array>>,<<Index>>]
35 /// CHECK: <<Array:l\d+>> NullCheck
38 /// CHECK: ArrayGet [<<Array>>,<<Index>>]
42 /// CHECK: <<Array:l\d+>> NullCheck
44 /// CHECK: ArrayGet [<<Array>>,<<Index>>]
47 /// CHECK: <<Array:l\d+>> NullCheck
50 /// CHECK: ArrayGet [<<Array>>,<<Index>>]
52 public static int constantIndexGet(int array[]) {
53 return array[1]
403 int[] array = {0, 7, 14, 21}; local
516 int[] array = {64, 8, 4, 2 }; local
556 int[] array = {123, 456, 789}; local
    [all...]
  /art/test/642-fp-callees/
fp_callees.cc 24 // Make the array volatile, which is apparently making the C compiler
26 volatile double array[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 }; member in namespace:art
32 double a = array[0];
33 double b = array[1];
34 double c = array[2];
35 double d = array[3];
36 double e = array[4];
37 double f = array[5];
38 double g = array[6];
39 double h = array[7]
    [all...]
  /bionic/linker/tests/
linker_memory_allocator_test.cpp 78 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); local
90 memcpy(array, model, array_size);
92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024));
95 ASSERT_TRUE(reallocated_ptr != array);
99 array = reallocated_ptr;
101 memcpy(array, model, 2*array_size);
103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62));
105 ASSERT_TRUE(reallocated_ptr == array);
107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000));
110 ASSERT_TRUE(reallocated_ptr != array);
    [all...]
  /cts/tests/sample/src/android/sample/cts/
SampleDeviceResultTest.java 61 * Measures the time taken to sort an array.
67 * The size of the array to sort.
70 private int[] array;
73 array = createArray(ARRAY_SIZE);
77 Arrays.sort(array);
78 assertTrue("Array not sorted", isSorted(array));
97 * Creates an array filled with random numbers of the given size.
100 int[] array = new int[size]; local
102 array[i] = random.nextInt()
    [all...]
  /dalvik/dx/src/com/android/dx/io/instructions/
ShortArrayCodeInput.java 26 /** source array to read from */
27 private final short[] array; field in class:ShortArrayCodeInput
32 public ShortArrayCodeInput(short[] array) {
33 if (array == null) {
34 throw new NullPointerException("array == null");
37 this.array = array;
43 return cursor() < array.length;
50 int value = array[cursor()];
  /external/caliper/tutorial/
Tutorial.java 87 * Let's try iterating over a large array. This seems simple enough, but
91 private final int[] array = new int[1000000]; field in class:Tutorial.Benchmark3
96 for (int ignoreMe : array) {}
128 private final int[] array = new int[1000000]; field in class:Tutorial.Benchmark4
133 for (int doNotIgnoreMe : array) {
171 private int[] array; // set by us, in setUp() field in class:Tutorial.Benchmark5
175 array = new int[size];
181 for (int doNotIgnoreMe : array) {
  /external/clang/test/CodeGen/
globalinit.c 49 static int array[]; variable
50 static int array[4]; variable
  /external/clang/test/CodeGenCXX/
rvalue-references.cpp 5 struct A { double array[2]; }; member in struct:A
  /external/clang/test/Sema/
vector-init.c 10 float4 array[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0}; variable
11 int array_sizecheck[(sizeof(array) / sizeof(float4)) == 3 ? 1 : -1];
14 9.0 }; // expected-warning {{excess elements in array initializer}}
17 9.0 }; // expected-warning {{excess elements in array initializer}}
vla.c 22 extern int e1[2][m]; // expected-error {{variable length array declaration cannot have 'extern' linkage}}
31 int d[i]; // expected-error {{variable length array declaration not allowed at file scope}}
37 static int a[i]; // expected-error {{variable length array declaration cannot have 'static' storage duration}}
38 extern int b[i]; // expected-error {{variable length array declaration cannot have 'extern' linkage}}
45 static const unsigned array[((2 * (int)((((4) / 2) + 1.0/3.0) * (4) - 1e-8)) + 1)]; // expected-warning {{variable length array folded to constant array as an extension}} variable
56 void f5() { char a[][f5_ci] = {""}; } // expected-warning {{variable length array folded to constant array as an extension}}
60 void pr5185(int a[*]) // expected-error {{variable length array must be bound in function definition}
    [all...]
  /external/clang/test/SemaCXX/
cast-conversion.cpp 33 const char array[2] = { 'a', 'b' }; local
34 make_X0(array);

Completed in 975 milliseconds

1 2 3 4 5 6 7 8 91011>>