Home
last modified time | relevance | path

Searched refs:new_array (Results 1 – 25 of 71) sorted by relevance

123

/aosp_15_r20/external/webrtc/modules/audio_coding/neteq/
H A Daudio_vector_unittest.cc173 int16_t new_array[kNewLength]; in TEST_F() local
176 new_array[i] = 100 + i; in TEST_F()
179 vec.InsertAt(new_array, kNewLength, insert_position); in TEST_F()
189 EXPECT_EQ(new_array[i], vec[pos]); in TEST_F()
208 int16_t new_array[kNewLength] = {0}; // All zero elements. in TEST_F() local
209 vec_ref.InsertAt(new_array, kNewLength, insert_position); in TEST_F()
222 int16_t new_array[kNewLength]; in TEST_F() local
225 new_array[i] = 100 + i; in TEST_F()
228 vec.InsertAt(new_array, kNewLength, insert_position); in TEST_F()
234 EXPECT_EQ(new_array[i], vec[pos]); in TEST_F()
[all …]
/aosp_15_r20/art/runtime/mirror/
H A Darray.cc57 Handle<Array> new_array(hs.NewHandle( in RecursiveCreateMultiArray() local
59 if (UNLIKELY(new_array == nullptr)) { in RecursiveCreateMultiArray()
73 new_array->AsObjectArray<Array>()->Set<false, false>(i, sub_array); in RecursiveCreateMultiArray()
76 return new_array.Get(); in RecursiveCreateMultiArray()
115 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray() local
116 if (UNLIKELY(new_array == nullptr)) { in CreateMultiArray()
119 return new_array.Ptr(); in CreateMultiArray()
152 ObjPtr<Array> new_array = in CopyOf() local
154 if (LIKELY(new_array != nullptr)) { in CopyOf()
155 memcpy(new_array->GetRawData(component_size, 0), in CopyOf()
[all …]
H A Dobject_array-alloc-inl.h72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, h_this->GetClass(), new_length, allocator_type); in CopyOf() local
73 if (LIKELY(new_array != nullptr)) { in CopyOf()
74 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length)); in CopyOf()
76 return new_array; in CopyOf()
/aosp_15_r20/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_array/
H A DTest_new_array.java17 package dot.junit.opcodes.new_array;
21 import dot.junit.opcodes.new_array.d.T_new_array_1;
22 import dot.junit.opcodes.new_array.d.T_new_array_10;
23 import dot.junit.opcodes.new_array.d.T_new_array_11;
24 import dot.junit.opcodes.new_array.d.T_new_array_2;
25 import dot.junit.opcodes.new_array.d.T_new_array_3;
H A DTestStubs.java17 package dot.junit.opcodes.new_array;
/aosp_15_r20/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_array/d/
H A DT_new_array_6.dfh1 // Processing 'dalvik-opcodes/out/classes_dasm/dot/junit/opcodes/new_array/d/T_new_array_6.dex'...
2 // Opened 'dalvik-opcodes/out/classes_dasm/dot/junit/opcodes/new_array/d/T_new_array_6.dex', DEX ve…
59 // parsed: offset 124, len 4: [3] string_data_off: 317 (0x00013d) "Ldot/junit/opcodes/new_array/d/T…
75 // parsed: offset 152, len 4: [1] descriptor_idx: 3 (0x000003) "Ldot/junit/opcodes/new_array/d/T_ne…
108 // class_idx: 1 "Ldot/junit/opcodes/new_array/d/T_new_array_6;"
118 // CODE_ITEM for "dot.junit.opcodes.new_array.d.T_new_array_6.<init>"
138 // CODE_ITEM for "dot.junit.opcodes.new_array.d.T_new_array_6.run"
172 // parsed: offset 317, len 47: TYPE_STRING_DATA_ITEM [3] "Ldot/junit/opcodes/new_array/d/T_new_arra…
184 // CLASS_DATA_ITEM for class [0] "Ldot/junit/opcodes/new_array/d/T_new_array_6;"
H A DT_new_array_10.smali16 .class public Ldot/junit/opcodes/new_array/d/T_new_array_10;
31 new-array v0, v0, [Ldot/junit/opcodes/new_array/TestStubs;
/aosp_15_r20/external/brotli/c/enc/
H A Dmemory.h84 T* new_array; \
86 new_array = BROTLI_ALLOC((M), T, _new_size); \
87 if (!BROTLI_IS_OOM(M) && !BROTLI_IS_NULL(new_array) && C != 0) \
88 memcpy(new_array, A, C * sizeof(T)); \
90 A = new_array; \
/aosp_15_r20/external/cronet/third_party/brotli/enc/
H A Dmemory.h84 T* new_array; \
86 new_array = BROTLI_ALLOC((M), T, _new_size); \
87 if (!BROTLI_IS_OOM(M) && !BROTLI_IS_NULL(new_array) && C != 0) \
88 memcpy(new_array, A, C * sizeof(T)); \
90 A = new_array; \
/aosp_15_r20/external/harfbuzz_ng/src/
H A Dhb-vector.hh260 Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); in realloc_vector() local
261 if (likely (new_array)) in realloc_vector()
265 new (std::addressof (new_array[i])) Type (); in realloc_vector()
266 new_array[i] = std::move (arrayZ[i]); in realloc_vector()
271 return new_array; in realloc_vector()
419 Type *new_array = realloc_vector (new_allocated, hb_prioritize); in alloc() local
421 if (unlikely (new_allocated && !new_array)) in alloc()
430 arrayZ = new_array; in alloc()
/aosp_15_r20/external/libpng/
H A Dpngmem.c145 png_voidp new_array = png_malloc_array_checked(png_ptr, variable
148 if (new_array != NULL)
154 memcpy(new_array, old_array, element_size*(unsigned)old_elements);
156 memset((char*)new_array + element_size*(unsigned)old_elements, 0,
159 return new_array;
/aosp_15_r20/frameworks/libs/binary_translation/kernel_api/
Dexec_emulation.cc73 char** new_array = static_cast<char**>(dst->data()); in MangleGuestEnvp() local
78 new_array[i] = new_text; in MangleGuestEnvp()
89 new_array[env_count] = nullptr; // add terminating nullptr in MangleGuestEnvp()
91 return new_array; in MangleGuestEnvp()
/aosp_15_r20/art/runtime/native/
H A Djava_lang_reflect_Array.cc48 ObjPtr<mirror::Array> new_array = in Array_createMultiArray() local
50 return soa.AddLocalReference<jobject>(new_array); in Array_createMultiArray()
69 ObjPtr<mirror::Array> new_array = mirror::ObjectArray<mirror::Object>::Alloc( in Array_createObjectArray() local
74 return soa.AddLocalReference<jobject>(new_array); in Array_createObjectArray()
/aosp_15_r20/art/compiler/optimizing/
H A Dbounds_check_elimination_test.cc392 HInstruction* new_array = in BuildSSAGraph3() local
400 HNullCheck* null_check = MakeNullCheck(loop_body, new_array); in BuildSSAGraph3()
595 HInstruction* new_array = in TEST_F() local
607 MakeArraySet(loop_body, new_array, bounds_check_i_mod_10, constant_10, DataType::Type::kInt32); in TEST_F()
612 MakeArraySet(loop_body, new_array, bounds_check_i_mod_1, constant_10, DataType::Type::kInt32); in TEST_F()
617 MakeArraySet(loop_body, new_array, bounds_check_i_mod_200, constant_10, DataType::Type::kInt32); in TEST_F()
624 loop_body, new_array, bounds_check_i_mod_minus_10, constant_10, DataType::Type::kInt32); in TEST_F()
627 HNullCheck* null_check = MakeNullCheck(loop_body, new_array); in TEST_F()
640 loop_body, new_array, bounds_check_param_i_mod_10, constant_10, DataType::Type::kInt32); in TEST_F()
643 null_check = MakeNullCheck(loop_body, new_array); in TEST_F()
H A Dinstruction_builder.cc2500 HNewArray* new_array = new (allocator_) HNewArray(cls, length, dex_pc, component_type_shift); in BuildNewArray() local
2501 AppendInstruction(new_array); in BuildNewArray()
2502 return new_array; in BuildNewArray()
2511 HNewArray* new_array = BuildNewArray(dex_pc, type_index, length); in BuildFilledNewArray() local
2524 HArraySet* aset = new (allocator_) HArraySet(new_array, index, value, type, dex_pc); in BuildFilledNewArray()
2528 latest_result_ = new_array; in BuildFilledNewArray()
2530 return new_array; in BuildFilledNewArray()
3671 HNewArray* new_array = BuildNewArray(dex_pc, type_index, length); in ProcessDexInstruction() local
3674 BuildConstructorFenceForAllocation(new_array); in ProcessDexInstruction()
3683 HNewArray* new_array = BuildFilledNewArray(dex_pc, type_index, operands); in ProcessDexInstruction() local
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/lite/toco/graph_transformations/
H A Ddequantize.cc156 auto& new_array = model->GetOrCreateArray(new_array_name); in DequantizeArray() local
157 new_array.data_type = ArrayDataType::kFloat; in DequantizeArray()
158 new_array.copy_shape(array->shape()); in DequantizeArray()
159 new_array.GetOrCreateMinMax() = array->GetMinMax(); in DequantizeArray()
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/tables/
H A Dapr_hash.c196 apr_hash_entry_t **new_array; in expand_array() local
200 new_array = alloc_array(ht, new_max); in expand_array()
203 hi->this->next = new_array[i]; in expand_array()
204 new_array[i] = hi->this; in expand_array()
206 ht->array = new_array; in expand_array()
/aosp_15_r20/art/test/573-checker-checkcast-regression/src/
H A DMain.java42 static public int test(Object new_array, int index1, int index2) { in test() argument
43 Object[] objectArray = (Object[]) new_array; in test()
/aosp_15_r20/external/cronet/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Drepeated_field.c135 upb_Array* new_array = RepeatedField_GetMutable(new_rptfield); in RepeatedField_deep_copy() local
139 upb_Array_Resize(new_array, elements, arena); in RepeatedField_deep_copy()
145 upb_Array_Set(new_array, i, copy); in RepeatedField_deep_copy()
411 upb_Array* new_array = RepeatedField_GetMutable(new_rptfield); in RepeatedField_dup() local
420 upb_Array_Append(new_array, msgval, arena); in RepeatedField_dup()
/aosp_15_r20/external/protobuf/ruby/ext/google/protobuf_c/
H A Drepeated_field.c135 upb_Array* new_array = RepeatedField_GetMutable(new_rptfield); in RepeatedField_deep_copy() local
139 upb_Array_Resize(new_array, elements, arena); in RepeatedField_deep_copy()
145 upb_Array_Set(new_array, i, copy); in RepeatedField_deep_copy()
411 upb_Array* new_array = RepeatedField_GetMutable(new_rptfield); in RepeatedField_dup() local
420 upb_Array_Append(new_array, msgval, arena); in RepeatedField_dup()
/aosp_15_r20/art/runtime/dex/
H A Ddex_file_annotations.cc599 Handle<mirror::Array> new_array(hs.NewHandle(mirror::Array::Alloc( in ProcessAnnotationValue() local
602 if (new_array == nullptr) { in ProcessAnnotationValue()
617 new_array->AsObjectArray<mirror::Object>()-> in ProcessAnnotationValue()
622 new_array->AsByteArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
626 new_array->AsShortArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
630 new_array->AsCharArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
634 new_array->AsIntArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
638 new_array->AsLongArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
642 new_array->AsFloatArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
646 new_array->AsDoubleArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
[all …]
/aosp_15_r20/art/runtime/interpreter/mterp/
H A Dnterp.cc638 ObjPtr<mirror::Object> new_array = mirror::Array::Alloc( in DoFilledNewArray() local
644 if (UNLIKELY(new_array == nullptr)) { in DoFilledNewArray()
658 new_array->AsIntArray()->SetWithoutChecks</* kTransactionActive= */ false>(i, regs[src_reg]); in DoFilledNewArray()
660 new_array->AsObjectArray<mirror::Object>()->SetWithoutChecks</* kTransactionActive= */ false>( in DoFilledNewArray()
664 return new_array.Ptr(); in DoFilledNewArray()
/aosp_15_r20/art/test/527-checker-array-access-split/src/
H A DMain.java311 int[] new_array = new int[1]; in accrossGC() local
313 return new_array; in accrossGC()
/aosp_15_r20/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
H A Ddata_types_definition.tmpl38 {{kind.key_kind|java_type}}[] keys{{level}} = {{kind.key_kind|array|new_array('size'~level)}};
39 …{{kind.value_kind|java_type}}[] values{{level}} = {{kind.value_kind|array|new_array('size'~level)}…
86 {{variable}} = {{kind|new_array('si'~(level+1)~'.elementsOrVersion')}};
/aosp_15_r20/external/mesa3d/src/util/
H A Dparson.c722 JSON_Array *new_array = (JSON_Array*)parson_malloc(sizeof(JSON_Array)); in json_array_make() local
723 if (new_array == NULL) { in json_array_make()
726 new_array->wrapping_value = wrapping_value; in json_array_make()
727 new_array->items = (JSON_Value**)NULL; in json_array_make()
728 new_array->capacity = 0; in json_array_make()
729 new_array->count = 0; in json_array_make()
730 return new_array; in json_array_make()

123