Home
last modified time | relevance | path

Searched refs:primitives (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp71 PrimitiveProto primitives; in TEST() local
72 ASSERT_TRUE(primitives.ParseFromString(flushToString(&proto))); in TEST()
73 EXPECT_EQ(primitives.val_int32(), 123); in TEST()
74 EXPECT_EQ(primitives.val_int64(), -1); in TEST()
75 EXPECT_EQ(primitives.val_float(), -23.5f); in TEST()
76 EXPECT_EQ(primitives.val_double(), 324.5f); in TEST()
77 EXPECT_EQ(primitives.val_uint32(), 3424); in TEST()
78 EXPECT_EQ(primitives.val_uint64(), 57); in TEST()
79 EXPECT_EQ(primitives.val_fixed32(), -20); in TEST()
80 EXPECT_EQ(primitives.val_fixed64(), -37); in TEST()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DLineBreaker_Delegate.java121 List<Primitive> primitives = in nComputeLineBreaks() local
125 builder.mLineBreaker = new GreedyLineBreaker(primitives, builder.mLineWidth, in nComputeLineBreaks()
132 builder.mLineBreaker = new OptimizingLineBreaker(primitives, builder.mLineWidth, in nComputeLineBreaks()
137 builder.mLineBreaker = new GreedyLineBreaker(primitives, builder.mLineWidth, in nComputeLineBreaks()
200 List<Primitive> primitives = new ArrayList<Primitive>(((int) Math.ceil(length * 1.833))); in computePrimitives() local
206 primitives.add(PrimitiveType.GLUE.getNewPrimitive(i, widths[i])); in computePrimitives()
208 primitives.add(PrimitiveType.VARIABLE.getNewPrimitive(i)); in computePrimitives()
220 primitives.add(p); in computePrimitives()
223 primitives.add(PrimitiveType.BOX.getNewPrimitive(i, widths[i])); in computePrimitives()
227 primitives.add( in computePrimitives()
[all …]
DBaseLineBreaker.java37 public BaseLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in BaseLineBreaker() argument
39 mPrimitives = Collections.unmodifiableList(primitives); in BaseLineBreaker()
DGreedyLineBreaker.java30 public GreedyLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in GreedyLineBreaker() argument
32 super(primitives, lineWidth, tabStops); in GreedyLineBreaker()
DOptimizingLineBreaker.java38 public OptimizingLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in OptimizingLineBreaker() argument
40 super(primitives, lineWidth, tabStops); in OptimizingLineBreaker()
/frameworks/rs/
DrsMesh.cpp26 mHal.state.primitives = nullptr; in Mesh()
44 mHal.state.primitives = new RsPrimitive[mHal.state.primitivesCount]; in Mesh()
47 mHal.state.primitives[i] = RS_PRIMITIVE_POINT; in Mesh()
68 delete[] mHal.state.primitives; in ~Mesh()
95 stream->addU8((uint8_t)mHal.state.primitives[pCount]); in serialize()
129 RsPrimitive *primitives = nullptr; in createFromStream() local
132 primitives = new RsPrimitive[primitivesCount]; in createFromStream()
136 primitives[pCount] = (RsPrimitive)stream->loadU8(); in createFromStream()
153 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); in createFromStream()
162 delete[] primitives; in createFromStream()
DrsMesh.h51 RsPrimitive *primitives; member
75 mHal.state.primitives[index] = prim; in setPrimitive()
DrsApiMesh.cpp48 primType[ct] = sm->mHal.state.primitives[ct]; in rsaMeshGetIndices()
/frameworks/base/rs/java/android/renderscript/
DMesh.java163 int[] primitives = new int[idxCount]; in updateFromNative() local
166 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() local
184 mPrimitives[i] = Primitive.values()[primitives[i]]; in updateFromNative()
363 Primitive[] primitives = new Primitive[mIndexTypes.size()]; in create() local
393 primitives[ct] = entry.prim; in create()
403 newMesh.mPrimitives = primitives; in create()
529 Primitive[] primitives = new Primitive[mIndexTypes.size()]; in create() local
542 primitives[ct] = entry.prim; in create()
552 newMesh.mPrimitives = primitives; in create()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java205 private Long[] convertToLong(long[] primitives) { in convertToLong() argument
206 if (primitives == null) { in convertToLong()
209 final Long[] datesLong = new Long[primitives.length]; in convertToLong()
210 for (int i = 0; i < primitives.length; ++i) { in convertToLong()
211 datesLong[i] = primitives[i]; in convertToLong()
/frameworks/native/opengl/libagl/
DAndroid.bp77 "primitives.cpp",
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/
DEncryptedChunkOrderingTest.java23 import com.google.common.primitives.Bytes;
DChunkHashTest.java23 import com.google.common.primitives.Bytes;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DRawBackupWriterTest.java27 import com.google.common.primitives.Bytes;
DDiffScriptBackupWriterTest.java27 import com.google.common.primitives.Bytes;
DEncryptedChunkTest.java27 import com.google.common.primitives.Bytes;
/frameworks/rs/driver/runtime/
Drs_mesh.c60 return mesh->mHal.state.primitives[index]; in rsgMeshGetPrimitive()
Drs_structs.h298 rs_primitive *primitives; member
/frameworks/rs/tests/java_api/RSTestBackward19/
DAndroid.mk83 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/tests/java_api/RSTest_CompatLib19/
DAndroid.mk89 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/tests/java_api/RSTestForward/21.1.2/
DAndroid.mk98 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/tests/java_api/RSTestForward/22.0.1/
DAndroid.mk98 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/tests/java_api/RSTestForward/23.0.3/
DAndroid.mk108 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/tests/java_api/RSTestForward/24.0.3/
DAndroid.mk116 $(my_rs_unit_tests_path)/primitives.rscript\
/frameworks/rs/driver/
DrsdMeshObj.cpp191 switch (mRSMesh->mHal.state.primitives[i]) { in updateGLPrimitives()

12