Home
last modified time | relevance | path

Searched refs:ints (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java137 new BitPackingTestCase(0, ints()), in testBitsPacking()
138 new BitPackingTestCase(1, ints(0)), in testBitsPacking()
139 new BitPackingTestCase(2, ints(1)), in testBitsPacking()
140 new BitPackingTestCase(3, ints(0, 1)), in testBitsPacking()
141 new BitPackingTestCase(4, ints(2)), in testBitsPacking()
142 new BitPackingTestCase(6, ints(1, 2)), in testBitsPacking()
143 new BitPackingTestCase(9, ints(0, 3)), in testBitsPacking()
144 new BitPackingTestCase(~Long.MAX_VALUE, ints(63)), in testBitsPacking()
145 new BitPackingTestCase(~Long.MAX_VALUE + 1, ints(0, 63)), in testBitsPacking()
146 new BitPackingTestCase(~Long.MAX_VALUE + 2, ints(1, 63)), in testBitsPacking()
[all …]
/frameworks/base/core/jni/
Dandroid_os_NativeHandle.cpp47 ScopedLocalRef<jintArray> ints(env, env->NewIntArray(numInts)); in MakeJavaNativeHandleObj() local
48 env->SetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeJavaNativeHandleObj()
51 gNativeHandleFields.constructID, fds.get(), ints.get(), false /*own*/); in MakeJavaNativeHandleObj()
67 ScopedLocalRef<jintArray> ints(env, (jintArray) env->CallObjectMethod( in MakeCppNativeHandle() local
71 const int numInts = (int) env->GetArrayLength(ints.get()); in MakeCppNativeHandle()
79 env->GetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeCppNativeHandle()
Dandroid_hardware_SensorManager.cpp273 jint handle, jint type, jfloatArray floats, jintArray ints) { in nativeSetOperationParameter() argument
283 if (ints != nullptr) { in nativeSetOperationParameter()
284 int32Vector.resize(_env->GetArrayLength(ints)); in nativeSetOperationParameter()
285 _env->GetIntArrayRegion(ints, 0, _env->GetArrayLength(ints), int32Vector.editArray()); in nativeSetOperationParameter()
/frameworks/base/media/mca/filterfw/jni/
Djni_vertex_frame.cpp37 jintArray ints) { in Java_android_filterfw_core_VertexFrame_setNativeInts() argument
40 if (frame && ints) { in Java_android_filterfw_core_VertexFrame_setNativeInts()
41 jint* int_ptr = env->GetIntArrayElements(ints, NULL); in Java_android_filterfw_core_VertexFrame_setNativeInts()
42 const int length = env->GetArrayLength(ints); in Java_android_filterfw_core_VertexFrame_setNativeInts()
46 env->ReleaseIntArrayElements(ints, int_ptr, JNI_ABORT); in Java_android_filterfw_core_VertexFrame_setNativeInts()
Djni_native_frame.cpp101 jintArray ints) { in Java_android_filterfw_core_NativeFrame_setNativeInts() argument
103 if (frame && ints) { in Java_android_filterfw_core_NativeFrame_setNativeInts()
104 jint* int_ptr = env->GetIntArrayElements(ints, NULL); in Java_android_filterfw_core_NativeFrame_setNativeInts()
105 const int length = env->GetArrayLength(ints); in Java_android_filterfw_core_NativeFrame_setNativeInts()
110 env->ReleaseIntArrayElements(ints, int_ptr, JNI_ABORT); in Java_android_filterfw_core_NativeFrame_setNativeInts()
Djni_native_frame.h39 Java_android_filterfw_core_NativeFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints);
45 Java_android_filterfw_core_NativeFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray ints);
Djni_gl_frame.cpp135 jintArray ints) { in Java_android_filterfw_core_GLFrame_setNativeInts() argument
137 if (frame && ints) { in Java_android_filterfw_core_GLFrame_setNativeInts()
138 jint* int_ptr = env->GetIntArrayElements(ints, NULL); in Java_android_filterfw_core_GLFrame_setNativeInts()
139 const int length = env->GetArrayLength(ints); in Java_android_filterfw_core_GLFrame_setNativeInts()
143 env->ReleaseIntArrayElements(ints, int_ptr, JNI_ABORT); in Java_android_filterfw_core_GLFrame_setNativeInts()
Djni_gl_frame.h58 Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints);
64 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray ints);
Djni_vertex_frame.h33 Java_android_filterfw_core_VertexFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints);
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h641 int32_t* ints = new int32_t[numInts]; in convertTo() local
646 ints[0] = 'GBFR'; in convertTo()
647 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo()
648 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo()
649 ints[3] = static_cast<int32_t>(t.attr.stride); in convertTo()
650 ints[4] = static_cast<int32_t>(t.attr.format); in convertTo()
651 ints[5] = static_cast<int32_t>(t.attr.layerCount); in convertTo()
652 ints[6] = static_cast<int32_t>(t.attr.usage); in convertTo()
653 ints[7] = static_cast<int32_t>(t.attr.id >> 32); in convertTo()
654 ints[8] = static_cast<int32_t>(t.attr.id & 0xFFFFFFFF); in convertTo()
[all …]
/frameworks/base/core/java/android/os/
DNativeHandle.java80 private NativeHandle(@NonNull int[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() argument
81 this(createFileDescriptorArray(fds), ints, own); in NativeHandle()
89 public NativeHandle(@NonNull FileDescriptor[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() argument
91 mInts = ints.clone(); in NativeHandle()
/frameworks/native/libs/sensor/
DISensorServer.cpp127 const Vector<int32_t> &ints) { in setOperationParameter() argument
136 data.writeUint32(static_cast<uint32_t>(ints.size())); in setOperationParameter()
137 for (auto i : ints) { in setOperationParameter()
218 Vector<int32_t> ints; in onTransact() local
226 ints.resize(data.readUint32()); in onTransact()
227 for (auto &i : ints) { in onTransact()
231 int32_t ret = setOperationParameter(handle, type, floats, ints); in onTransact()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java109 public void setInts(int[] ints) { in setInts() argument
111 if (ints.length * nativeIntSize() > getFormat().getSize()) { in setInts()
113 "NativeFrame cannot hold " + ints.length + " integers. (Can only hold " + in setInts()
115 } else if (!setNativeInts(ints)) { in setInts()
248 private native boolean setNativeInts(int[] ints); in setNativeInts() argument
DVertexFrame.java62 public void setInts(int[] ints) { in setInts() argument
64 if (!setNativeInts(ints)) { in setInts()
138 private native boolean setNativeInts(int[] ints); in setNativeInts() argument
DSimpleFrame.java88 public void setInts(int[] ints) { in setInts() argument
90 setGenericObjectValue(ints); in setInts()
DGLFrame.java171 public void setInts(int[] ints) { in setInts() argument
174 if (!setNativeInts(ints)) { in setInts()
384 private native boolean setNativeInts(int[] ints); in setNativeInts() argument
DSerializedFrame.java202 public void setInts(int[] ints) { in setInts() argument
204 setGenericObjectValue(ints); in setInts()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h76 std::vector<int> ints) { in FromFdsAndInts() argument
77 native_handle_t* handle = native_handle_create(fds.size(), ints.size()); in FromFdsAndInts()
87 memcpy(&handle->data[handle->numFds], ints.data(), in FromFdsAndInts()
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp208 int32_t* ints = new int32_t[numInts]; in convertTo() local
213 ints[0] = 'GBFR'; in convertTo()
214 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo()
215 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo()
216 ints[3] = static_cast<int32_t>(t.attr.stride); in convertTo()
217 ints[4] = static_cast<int32_t>(t.attr.format); in convertTo()
218 ints[5] = static_cast<int32_t>(t.attr.layerCount); in convertTo()
219 ints[6] = static_cast<int32_t>(t.attr.usage); in convertTo()
220 ints[7] = static_cast<int32_t>(t.attr.id >> 32); in convertTo()
221 ints[8] = static_cast<int32_t>(t.attr.id & 0xFFFFFFFF); in convertTo()
[all …]
DH2BGraphicBufferProducer.cpp157 int32_t* ints = new int32_t[numInts]; in convertTo() local
162 ints[0] = 'GBFR'; in convertTo()
163 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo()
164 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo()
165 ints[3] = static_cast<int32_t>(t.attr.stride); in convertTo()
166 ints[4] = static_cast<int32_t>(t.attr.format); in convertTo()
167 ints[5] = static_cast<int32_t>(t.attr.layerCount); in convertTo()
168 ints[6] = static_cast<int32_t>(t.attr.usage); in convertTo()
169 ints[7] = static_cast<int32_t>(t.attr.id >> 32); in convertTo()
170 ints[8] = static_cast<int32_t>(t.attr.id & 0xFFFFFFFF); in convertTo()
[all …]
/frameworks/base/core/java/android/text/
DDynamicLayout.java646 int[] ints; in reflow() local
649 ints = new int[COLUMNS_ELLIPSIZE]; in reflow()
650 ints[ELLIPSIS_START] = ELLIPSIS_UNDEFINED; in reflow()
652 ints = new int[COLUMNS_NORMAL]; in reflow()
659 ints[START] = start; in reflow()
660 ints[DIR] |= reflowed.getParagraphDirection(i) << DIR_SHIFT; in reflow()
661 ints[TAB] |= reflowed.getLineContainsTab(i) ? TAB_MASK : 0; in reflow()
666 ints[TOP] = top; in reflow()
672 ints[DESCENT] = desc; in reflow()
673 ints[EXTRA] = reflowed.getLineExtra(i); in reflow()
[all …]
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp207 EXPECT_EQ(complex.ints(0), 23); in TEST()
208 EXPECT_EQ(complex.ints(1), 101); in TEST()
209 EXPECT_EQ(complex.ints(2), -72); in TEST()
248 EXPECT_EQ(complex.ints(0), 23); in TEST()
249 EXPECT_EQ(complex.ints(1), 101); in TEST()
250 EXPECT_EQ(complex.ints(2), -72); in TEST()
274 EXPECT_EQ(beforeClear.ints(0), 32); in TEST()
275 EXPECT_EQ(beforeClear.ints(1), 15); in TEST()
284 EXPECT_EQ(afterClear.ints(0), 1076); in TEST()
307 EXPECT_EQ(complex.ints(0), UINT64_C(-123809234)); in TEST()
Dtest.proto34 repeated int32 ints = 1; field
/frameworks/base/packages/Tethering/tests/unit/src/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java120 private static Set<Integer> asSet(int[] ints) { in asSet() argument
121 return IntStream.of(ints).boxed().collect(Collectors.toSet()); in asSet()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoringParams.java185 int[] ints = parser.getIntArray(key, null); in updateIntArray() local
186 if (ints == null) throw new IllegalArgumentException(); in updateIntArray()
187 if (ints.length != dest.length) throw new IllegalArgumentException(); in updateIntArray()
189 dest[i] = ints[i]; in updateIntArray()

12