Home
last modified time | relevance | path

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

/aosp14/frameworks/base/libs/protoutil/tests/
H A DProtoOutputStream_test.cpp71 PrimitiveProto primitives; in TEST() local
73 EXPECT_EQ(primitives.val_int32(), 123); in TEST()
74 EXPECT_EQ(primitives.val_int64(), -1); in TEST()
78 EXPECT_EQ(primitives.val_uint64(), 57); in TEST()
81 EXPECT_EQ(primitives.val_bool(), true); in TEST()
113 PrimitiveProto primitives; in TEST() local
117 EXPECT_EQ(primitives.val_int32(), 123); in TEST()
118 EXPECT_EQ(primitives.val_int64(), -1); in TEST()
122 EXPECT_EQ(primitives.val_uint64(), 57); in TEST()
157 PrimitiveProto primitives; in TEST() local
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DFakeVibratorControllerProvider.java132 public long compose(PrimitiveSegment[] primitives, long vibrationId) { in compose() argument
136 for (PrimitiveSegment primitive : primitives) { in compose()
142 for (PrimitiveSegment primitive : primitives) { in compose()
152 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument
154 for (RampSegment primitive : primitives) { in composePwle()
280 public void setSupportedPrimitives(int... primitives) { in setSupportedPrimitives() argument
281 if (primitives != null) { in setSupportedPrimitives()
282 primitives = Arrays.copyOf(primitives, primitives.length); in setSupportedPrimitives()
283 Arrays.sort(primitives); in setSupportedPrimitives()
285 mSupportedPrimitives = primitives; in setSupportedPrimitives()
H A DVibratorControllerTest.java221 PrimitiveSegment[] primitives = new PrimitiveSegment[]{ in on_withComposed_performsEffect() local
224 assertEquals(15L, controller.on(primitives, 12)); in on_withComposed_performsEffect()
227 verify(mNativeWrapperMock).compose(eq(primitives), eq(12L)); in on_withComposed_performsEffect()
236 RampSegment[] primitives = new RampSegment[]{ in on_withComposedPwle_performsEffect() local
240 assertEquals(15L, controller.on(primitives, 12)); in on_withComposedPwle_performsEffect()
243 verify(mNativeWrapperMock).composePwle(eq(primitives), eq(Braking.NONE), eq(12L)); in on_withComposedPwle_performsEffect()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DComposePrimitivesVibratorStep.java57 List<PrimitiveSegment> primitives = unrollPrimitiveSegments(effect, segmentIndex, in play() local
60 if (primitives.isEmpty()) { in play()
68 Slog.d(VibrationThread.TAG, "Compose " + primitives + " primitives on vibrator " in play()
73 primitives.toArray(new PrimitiveSegment[primitives.size()]); in play()
79 return nextSteps(/* segmentsPlayed= */ primitives.size()); in play()
H A DVibratorController.java286 public long on(PrimitiveSegment[] primitives, long vibrationId) { in on() argument
291 long duration = mNativeWrapper.compose(primitives, vibrationId); in on()
308 public long on(RampSegment[] primitives, long vibrationId) { in on() argument
314 long duration = mNativeWrapper.composePwle(primitives, braking, vibrationId); in on()
461 public long compose(PrimitiveSegment[] primitives, long vibrationId) { in compose() argument
462 return performComposedEffect(mNativePtr, primitives, vibrationId); in compose()
466 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument
467 return performPwleEffect(mNativePtr, primitives, braking, vibrationId); in composePwle()
H A DVibrationStats.java231 void reportComposePrimitives(long halResult, PrimitiveSegment[] primitives) { in reportComposePrimitives() argument
233 mVibrationCompositionTotalSize += primitives.length; in reportComposePrimitives()
238 for (PrimitiveSegment primitive : primitives) { in reportComposePrimitives()
247 for (PrimitiveSegment primitive : primitives) { in reportComposePrimitives()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DMesh.java165 int[] primitives = new int[idxCount]; in updateFromNative() local
168 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() local
186 mPrimitives[i] = Primitive.values()[primitives[i]]; in updateFromNative()
365 Primitive[] primitives = new Primitive[mIndexTypes.size()]; in create() local
395 primitives[ct] = entry.prim; in create()
405 newMesh.mPrimitives = primitives; in create()
531 Primitive[] primitives = new Primitive[mIndexTypes.size()]; in create() local
544 primitives[ct] = entry.prim; in create()
554 newMesh.mPrimitives = primitives; in create()
H A DRenderScript.java967 … native void rsnMeshGetIndices(long con, long id, long[] idxIds, int[] primitives, int vtxIdCount); in rsnMeshGetIndices() argument
968 synchronized void nMeshGetIndices(long id, long[] idxIds, int[] primitives, int vtxIdCount) { in nMeshGetIndices() argument
970 rsnMeshGetIndices(mContext, id, idxIds, primitives, vtxIdCount); in nMeshGetIndices()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DVibratorPerfTest.java95 int[] primitives = new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in testArePrimitivesSupported() local
98 mVibrator.arePrimitivesSupported(primitives); in testArePrimitivesSupported()
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_vibrator_VibratorController.cpp314 std::vector<aidl::PrimitivePwle> primitives; in vibratorPerformPwleEffect() local
320 primitives.push_back(brakingPwle(braking, activePwle.duration)); in vibratorPerformPwleEffect()
322 primitives.push_back(activePwle); in vibratorPerformPwleEffect()
327 primitives.push_back(brakingPwle(braking, 0 /* duration */)); in vibratorPerformPwleEffect()
332 auto performPwleEffectFn = [&primitives, &callback](vibrator::HalWrapper* hal) { in vibratorPerformPwleEffect()
333 return hal->performPwleEffect(primitives, callback); in vibratorPerformPwleEffect()
/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
H A DAudioManagerTest.java41 import com.google.common.primitives.Ints;
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DBLASTSync.md2 There are two BLAST sync primitives on the server side, BLASTSyncEngine and applyWithNextDraw.
11 To talk about exactly what the primitives guarantee, we need to clarify what we mean by server side…
/aosp14/frameworks/base/core/api/
H A Dtest-lint-baseline.txt21 Must avoid boxed primitives (`java.lang.Long`)
841 …Should avoid odd sized primitives; use `int` instead of `short` in method android.media.audiofx.Au…
843 …Should avoid odd sized primitives; use `int` instead of `short` in parameter value in android.medi…
845 …Should avoid odd sized primitives; use `int` instead of `short` in parameter value in android.medi…
847 …Should avoid odd sized primitives; use `int` instead of `byte` in method android.util.proto.Encode…
849 …Should avoid odd sized primitives; use `int` instead of `byte` in parameter val in android.util.pr…