Home
last modified time | relevance | path

Searched refs:int64_t (Results 1 – 25 of 64) sorted by relevance

123

/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DPseudoRandom.h25 PseudoRandom(int64_t seed = 99887766)
43 int64_t prod; in nextRandomInteger()
45 __builtin_mul_overflow(mSeed, (int64_t)6364136223846793005, &prod); in nextRandomInteger()
46 __builtin_add_overflow(prod, (int64_t)1442695040888963407, &mSeed); in nextRandomInteger()
48 mSeed = (mSeed * (int64_t)6364136223846793005) + (int64_t)1442695040888963407; in nextRandomInteger()
54 int64_t mSeed;
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.cpp38 static const int64_t MAX_LATENCY_RANGE = 200 * NANOS_PER_MILLISECOND;
39 static const int64_t MAX_LATENCY = 800 * NANOS_PER_MILLISECOND;
84 int64_t timestampFrames = 0; in checkCallsAfterRelease()
85 int64_t timestampNanos = 0; in checkCallsAfterRelease()
136 int64_t getLatency(const int64_t presentationTime, const int64_t presentationPosition) const { in getLatency()
137 const int64_t frameIndex = isOutput() ? AAudioStream_getFramesWritten(stream()) in getLatency()
139 const int64_t nowNs = getNanoseconds(); in getLatency()
140 const int64_t frameIndexDelta = frameIndex - presentationPosition; in getLatency()
141 const int64_t frameTimeDelta = (frameIndexDelta * NANOS_PER_SECOND) / actual().sampleRate; in getLatency()
142 const int64_t framePresentationTime = presentationTime + frameTimeDelta; in getLatency()
[all …]
Dtest_aaudio_callback.cpp34 int64_t presentationTime = 0; in measureLatency()
35 int64_t presentationPosition = 0; in measureLatency()
36 int64_t now = getNanoseconds(); in measureLatency()
38 int64_t framesWritten = AAudioStream_getFramesWritten(stream); in measureLatency()
47 int64_t deltaFrames = framesWritten - presentationPosition; in measureLatency()
53 int64_t calculatedDeltaNanos = deltaFrames * NANOS_PER_SECOND / sampleRate; in measureLatency()
54 int64_t calculatedTimeNanos = presentationTime + calculatedDeltaNanos; in measureLatency()
55 int64_t latencyNanos = calculatedTimeNanos - now; in measureLatency()
Dtest_aaudio.h20 #define NANOS_PER_MICROSECOND ((int64_t)1000)
Dutils.h27 int64_t getNanoseconds(clockid_t clockId = CLOCK_MONOTONIC);
94 static const std::map<aaudio_performance_mode_t, int64_t> sMaxFramesPerBurstMs;
/cts/suite/audio_quality/test/
DSignalProcessingInterfaceTest.cpp64 TaskCase::Value in3((int64_t)100); in TEST_F()
78 TaskCase::Value out3((int64_t)1000); in TEST_F()
97 TaskCase::Value in0((int64_t)10); in TEST_F()
98 TaskCase::Value in1((int64_t)100); in TEST_F()
101 TaskCase::Value out0((int64_t)0); in TEST_F()
122 TaskCase::Value in0((int64_t)10); in TEST_F()
123 TaskCase::Value in1((int64_t)100); in TEST_F()
126 TaskCase::Value out0((int64_t)0); in TEST_F()
169 TaskCase::Value in4((int64_t)100); in TEST_F()
170 TaskCase::Value in5((int64_t)100); in TEST_F()
[all …]
DTaskCaseTest.cpp73 TaskCase::Value val3((int64_t)1); in TEST_F()
74 TaskCase::Value val4((int64_t)2); in TEST_F()
94 TaskCase::Value val4_2((int64_t)3); in TEST_F()
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h65 inline explicit Value(int64_t val): mType(ETypeI64) { in Value()
83 inline void setInt64(int64_t val) { in setInt64()
84 int64_t* data = reinterpret_cast<int64_t*>(mValue); in setInt64()
89 inline int64_t getInt64() { in getInt64()
90 int64_t* data = reinterpret_cast<int64_t*>(mValue); in getInt64()
/cts/suite/audio_quality/lib/src/
DBuiltinProcessing.cpp52 int64_t passMin = (reinterpret_cast<TaskCase::Value*>(inputs[1]))->getInt64(); in rms_mva()
53 int64_t passMax = (reinterpret_cast<TaskCase::Value*>(inputs[2]))->getInt64(); in rms_mva()
55 int64_t rms = 0; in rms_mva()
62 rms = (int64_t)sqrt(energy/samples); in rms_mva()
/cts/tests/media/jni/
DNativeCodecTestBase.h90 std::vector<int64_t> inpPtsArray;
91 std::vector<int64_t> outPtsArray;
96 void saveInPTS(int64_t pts) { in saveInPTS()
102 void saveOutPTS(int64_t pts) { outPtsArray.push_back(pts); } in saveOutPTS()
103 bool isPtsStrictlyIncreasing(int64_t lastPts);
136 int64_t mPrevOutputPts;
DNativeMediaCommon.cpp93 template void flattenField<int64_t>(uint8_t* buffer, int* pos, int64_t value);
97 int64_t refKeyDuration, testKeyDuration; in isFormatSimilar()
DNativeMuxerTest.cpp85 bool writeAFewSamplesDataFromTime(AMediaMuxer* muxer, int64_t *fromTime,
92 bool appendMediaFromTime(AMediaMuxer *muxer, int64_t *appendFromTime,
99 void offsetTimeStamp(int64_t tsAudioOffsetUs, int64_t tsVideoOffsetUs, int sampleOffset);
284 bool MuxerNativeTestHelper::writeAFewSamplesDataFromTime(AMediaMuxer* muxer, int64_t *fromTime, in writeAFewSamplesDataFromTime()
362 bool MuxerNativeTestHelper::appendMediaFromTime(AMediaMuxer *muxer, int64_t *appendFromTime, in appendMediaFromTime()
496 void MuxerNativeTestHelper::offsetTimeStamp(int64_t tsAudioOffsetUs, int64_t tsVideoOffsetUs, in offsetTimeStamp()
501 int64_t tsOffsetUs = 0; in offsetTimeStamp()
791 static const int64_t OFFSET_TS_AUDIO_US[4] = {-23220LL, 0LL, 200000LL, 400000LL}; in nativeTestOffsetPts()
792 static const int64_t OFFSET_TS_VIDEO_US[3] = {0LL, 200000LL, 400000LL}; in nativeTestOffsetPts()
799 for (int64_t audioOffsetUs : OFFSET_TS_AUDIO_US) { in nativeTestOffsetPts()
[all …]
DNativeExtractorUnitTest.cpp323 int64_t video_sample_offsets[] = {6522, 95521, 118719, 126219, 137578}; in nativeTestVideoSampleFileOffsetByGetSampleFormat()
331 for(int i = 0; i < sizeof(video_sample_offsets)/sizeof(int64_t); ++i) { in nativeTestVideoSampleFileOffsetByGetSampleFormat()
334 int64_t offset = 0; in nativeTestVideoSampleFileOffsetByGetSampleFormat()
361 int64_t audio_sample_offsets[] = {186125, 186682, 187286, 187944, 188551}; in nativeTestAudioSampleFileOffsetByGetSampleFormat()
369 for(int i = 0; i < sizeof(audio_sample_offsets)/sizeof(int64_t); ++i) { in nativeTestAudioSampleFileOffsetByGetSampleFormat()
372 int64_t offset = 0; in nativeTestAudioSampleFileOffsetByGetSampleFormat()
/cts/tests/tests/rscpp/librscpptest/
Dshared.rsh4 static int64_t g_time;
11 int64_t t = rsUptimeMillis() - g_time;
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dshared.rsh4 static int64_t g_time;
11 int64_t t = rsUptimeMillis() - g_time;
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dshared.rsh4 static int64_t g_time;
11 int64_t t = rsUptimeMillis() - g_time;
Dsmall_structs.rscript201 int64_t initial_value_int64_t;
212 MAKE_SCALAR_EQUALS(int64_t)
224 TWO_ELEMENT_STRUCT_TEST(LHS_TAG##_i64, LHS_TYPE, int64_t) \
232 MAKE_TWO_ELEMENT_STRUCT_TEST(i64, int64_t)
/cts/tests/tests/nativemedia/mediametrics/src/
DMediaMetricsTest.cpp62 int64_t value; in TEST_F()
84 int64_t count; in TEST_F()
85 int64_t duration; in TEST_F()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp57 static std::set<int64_t> gSupportedRefreshPeriods;
82 static void frameCallback64(int64_t frameTimeNanos, void* data) { in frameCallback64()
90 frameCallback64((int64_t) frameTimeNanos, data); in frameCallback()
93 static void refreshRateCallback(int64_t vsyncPeriodNanos, void* data) { in refreshRateCallback()
100 static void refreshRateCallbackWithDisplayManager(int64_t vsyncPeriodNanos, void* data) { in refreshRateCallbackWithDisplayManager()
245 const auto delayToTest = sizeof(long) == sizeof(int64_t) ? delay : ZERO; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
256 if (sizeof(long) == sizeof(int64_t)) { in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
273 if (sizeof(long) != sizeof(int64_t)) { in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
290 sizeof(long) == sizeof(int64_t) ? DELAY_PERIOD + NOMINAL_VSYNC_PERIOD * 3 : ZERO; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
310 if (sizeof(long) == sizeof(int64_t)) { in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback()
[all …]
/cts/tests/tests/renderscript/libcoremathtestcpp/
DCoreMathTestJni.cpp437 return (jlong)(int64_t)(int8_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertCharToLong()
478 return (jlong)(int64_t)(uint8_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertUcharToLong()
519 return (jlong)(int64_t)(int16_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertShortToLong()
560 return (jlong)(int64_t)(uint16_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertUshortToLong()
601 return (jlong)(int64_t)(int32_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertIntToLong()
642 return (jlong)(int64_t)(uint32_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertUintToLong()
659 return (jbyte)(int8_t)(int64_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertLongToChar()
663 return (jbyte)(uint8_t)(int64_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertLongToUchar()
667 return (jshort)(int16_t)(int64_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertLongToShort()
671 return (jshort)(uint16_t)(int64_t)x; in Java_android_renderscript_cts_CoreMathVerifier_convertLongToUshort()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/
Dpoc.cpp41 status_t setDataSource(int fd, int64_t offset, int64_t length) { return OK; } in setDataSource()
88 status_t notifyAt(int64_t mediaTimeUs) { return OK; } in notifyAt()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp322 const ACaptureRequest* /*request*/, int64_t /*timestamp*/) { in onCaptureStart() argument
475 int sequenceId, int64_t frameNumber) { in onCaptureSequenceCompleted()
493 ACaptureRequest* /*request*/, ANativeWindow* /*window*/, int64_t frameNumber) { in onCaptureBufferLost()
504 int64_t getCaptureSequenceLastFrameNumber(int64_t sequenceId, uint32_t timeoutSec) { in getCaptureSequenceLastFrameNumber()
505 int64_t ret = -1; in getCaptureSequenceLastFrameNumber()
523 bool waitForFrameNumber(int64_t frameNumber, uint32_t timeoutSec) { in waitForFrameNumber()
566 bool checkForFailureOrLoss(int64_t frameNumber) { in checkForFailureOrLoss()
585 int64_t mLastSequenceFrameNumber = -1;
586 std::set<int64_t> mCompletedFrameNumbers;
587 std::set<int64_t> mFailedFrameNumbers, mBufferLostFrameNumbers;
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
DIPCThreadState.h51 int64_t clearCallingIdentity();
52 void restoreCallingIdentity(int64_t token);
/cts/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.cpp118 int64_t inputFramesWritten = AAudioStream_getFramesWritten(mInputStream); in dataCallbackProc()
119 int64_t inputFramesRead = AAudioStream_getFramesRead(mInputStream); in dataCallbackProc()
120 int64_t framesAvailable = inputFramesWritten - inputFramesRead; in dataCallbackProc()
/cts/tests/tests/neuralnetworks/java_test/jni/
Dandroid_neuralnetworks_cts_ModelAssetTest.cpp80 int64_t getDeviceFeatureLevel(JNIEnv* env, const ANeuralNetworksDevice* device) { in getDeviceFeatureLevel()
81 int64_t featureLevel; in getDeviceFeatureLevel()
270 const int64_t featureLevel = getDeviceFeatureLevel(env, device); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile()

123