Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 115) sorted by relevance

12345

/cts/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.h120 int32_t mOutputSampleRate = 0;
127 int32_t numFrames);
131 int32_t readFormattedData(int32_t numFrames);
138 int32_t mInputFramesMaximum = 0;
139 int32_t mActualInputChannelCount = 0;
140 int32_t mActualOutputChannelCount = 0;
141 int32_t mNumCallbacksToDrain = kNumCallbacksToDrain;
142 int32_t mNumCallbacksToNotRead = kNumCallbacksToNotRead;
143 int32_t mNumCallbacksToDiscard = kNumCallbacksToDiscard;
144 int32_t mMinNumFrames = INT32_MAX;
[all …]
DNativeAudioAnalyzer.cpp21 int32_t numSamples) { in convertPcm16ToFloat()
29 int32_t NativeAudioAnalyzer::readFormattedData(int32_t numFrames) { in readFormattedData()
30 int32_t framesRead = AAUDIO_ERROR_INVALID_FORMAT; in readFormattedData()
65 int32_t numFrames in dataCallbackProc()
71 int32_t actualFramesRead; in dataCallbackProc()
94 int32_t numBytes = numFrames * mActualOutputChannelCount * sizeof(float); in dataCallbackProc()
99 int32_t totalFramesRead = 0; in dataCallbackProc()
127 int32_t numInputBytes = numFrames * mActualInputChannelCount * sizeof(float); in dataCallbackProc()
140 if(actualFramesRead < (int32_t) framesAvailable) { in dataCallbackProc()
157 int32_t numSamples = actualFramesRead * mActualInputChannelCount; in dataCallbackProc()
[all …]
/cts/apps/CtsVerifier/jni/megaaudio/common/
DStreamBase.h50 static const int32_t ROUTING_DEVICE_NONE = -1;
52 static const int32_t SHARING_MODE_INVALID = -1;
54 int32_t getNumBufferFrames() const { return mBufferSizeInFrames; } in getNumBufferFrames()
88 int32_t mChannelCount;
89 int32_t mChannelMask;
90 int32_t mNumExchangeChannels; // this may be mChannelCount or the number of channels
92 int32_t mSampleRate;
93 int32_t mRouteDeviceId;
94 int32_t mBufferSizeInFrames;
97 static const int32_t SUB_TYPE_OBOE_AAUDIO = 0x0001;
[all …]
DOboeStream.h41 int32_t getRoutedDeviceId();
43 int32_t getSharingMode();
44 int32_t getChannelCount();
49 OboeStream(int32_t subtype) : mSubtype(subtype), mStreamStarted(false) {} in OboeStream()
53 int32_t mSubtype;
DOboeStream.cpp134 int32_t OboeStream::getRoutedDeviceId() { in getRoutedDeviceId()
135 return (int32_t) (mAudioStream != nullptr in getRoutedDeviceId()
136 ? (int32_t) mAudioStream->getDeviceId() in getRoutedDeviceId()
140 int32_t OboeStream::getSharingMode() { in getSharingMode()
141 return (int32_t) (mAudioStream != nullptr in getSharingMode()
142 ? (int32_t) mAudioStream->getSharingMode() in getSharingMode()
146 int32_t OboeStream::getChannelCount() { in getChannelCount()
147 return (int32_t) (mAudioStream != nullptr in getChannelCount()
148 ? (int32_t) mAudioStream->getChannelCount() in getChannelCount()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
DIPCThreadState.h45 void setStrictModePolicy(int32_t policy);
46 int32_t getStrictModePolicy() const;
48 void setLastTransactionBinderFlags(int32_t flags);
49 int32_t getLastTransactionBinderFlags() const;
63 status_t transact(int32_t handle,
67 void incStrongHandle(int32_t handle, BpBinder *proxy);
68 void decStrongHandle(int32_t handle);
69 void incWeakHandle(int32_t handle, BpBinder *proxy);
70 void decWeakHandle(int32_t handle);
71 status_t attemptIncStrongHandle(int32_t handle);
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DLatencyAnalyzer.h51 static constexpr int32_t kDefaultSampleRate = 48000;
52 static constexpr int32_t kMillisPerSecond = 1000; // by definition
53 static constexpr int32_t kMaxLatencyMillis = 1000; // arbitrary and generous
56 int32_t latencyInFrames = 0.0;
92 static double calculateRootMeanSquare(float *data, int32_t numSamples) { in calculateRootMeanSquare()
94 for (int32_t i = 0; i < numSamples; i++) { in calculateRootMeanSquare()
116 int32_t write(const int16_t *inputData, int32_t inputChannelCount, int32_t numFrames) { in write()
128 int32_t write(const float *inputData, int32_t inputChannelCount, int32_t numFrames) { in write()
140 int32_t write(float sample) { in write()
153 int32_t size() const { in size()
[all …]
DPseudoRandom.h35 return nextRandomInteger() * (0.5 / (((int32_t)1) << 30)); in nextRandomDouble()
41 int32_t nextRandomInteger() { in nextRandomInteger()
50 return (int32_t) (mSeed >> 32); // The higher bits have a longer sequence. in nextRandomInteger()
DGlitchAnalyzer.h37 int32_t getState() const { in getState()
59 int32_t getGlitchCount() const { in getGlitchCount()
63 int32_t getStateFrameCount(int state) const { in getStateFrameCount()
409 int32_t mStateFrameCounters[NUM_STATES];
415 int32_t mFramesAccumulated = 0;
419 int32_t mGlitchCount = 0;
420 int32_t mNonGlitchCount = 0;
421 int32_t mGlitchLength = 0;
425 int32_t mFrameCounter = 0;
428 int32_t mForceGlitchDuration = 0; // if > 0 then force a glitch for debugging
[all …]
/cts/apps/CtsVerifier/jni/megaaudio/player/
DOboePlayer.h33 int32_t numFrames) override;
37 Result setupStream(int32_t channelCount, int32_t channelMask, int32_t sampleRate,
38 int32_t performanceMode, int32_t sharingMode, int32_t routeDeviceId);
45 static oboe::ChannelMask javaChannelMaskToOboeChannelMask(int32_t javaMask);
46 static int32_t javaChannelMaskToChannelCount(int32_t javaMask);
DOboePlayer.cpp28 constexpr int32_t kBufferSizeInBursts = 2; // Use 2 bursts as the buffer size (double buffer)
30 ChannelMask OboePlayer::javaChannelMaskToOboeChannelMask(int32_t javaMask) { in javaChannelMaskToOboeChannelMask()
34 int32_t OboePlayer::javaChannelMaskToChannelCount(int32_t javaMask) { in javaChannelMaskToChannelCount()
51 int32_t numFrames) { in onAudioReady()
74 StreamBase::Result OboePlayer::setupStream(int32_t channelCount, int32_t channelMask, in setupStream()
75 int32_t sampleRate, int32_t performanceMode, int32_t sharingMode, in setupStream()
76 int32_t routeDeviceId) { in setupStream()
132 int32_t desiredSize = mAudioStream->getFramesPerBurst() * kBufferSizeInBursts; in setupStream()
/cts/apps/CtsVerifier/jni/megaaudio/recorder/
DOboeRecorder.h28 OboeRecorder(AudioSink* sink, int32_t recorderSubtype);
42 Result setupStream(int32_t channelCount, int32_t sampleRate, int32_t performanceMode,
43 int32_t sharingMode, int32_t routeDeviceId, int32_t inputPreset);
53 int32_t mInputPreset;
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.h46 int32_t sampleRate;
47 int32_t channelCount;
89 int32_t framesPerBurst() const { return mFramesPerBurst; } in framesPerBurst()
92 StreamBuilderHelper(aaudio_direction_t direction, int32_t sampleRate,
93 int32_t channelCount, aaudio_format_t dataFormat,
106 int32_t mFramesPerBurst;
111 const int32_t kMinValidSampleRate = 8000; // 8 kHz
112 const int32_t kMaxValidSampleRate = 2000000; // 2 MHz
113 const int32_t kMinValidChannelCount = 1;
114 const int32_t kMaxValidChannelCount = FCC_LIMIT;
[all …]
Dtest_aaudio_callback.cpp34 static int32_t measureLatency(AAudioStream *stream) { in measureLatency()
38 int32_t sampleRate = AAudioStream_getSampleRate(stream); in measureLatency()
57 int32_t latencyMillis = (int32_t) ((latencyNanos + NANOS_PER_MILLISECOND - 1) in measureLatency()
62 using CbTestParams = std::tuple<aaudio_sharing_mode_t, int32_t,
63 aaudio_performance_mode_t, int32_t, aaudio_format_t, int32_t>;
113 int32_t expectedFramesPerCallback;
114 int32_t actualFramesPerCallback;
115 int32_t minLatency;
116 int32_t maxLatency;
118 std::atomic<int32_t> callbackCount;
[all …]
Dtest_aaudio.cpp54 int32_t framesPerBurst() const { return mHelper->framesPerBurst(); } in framesPerBurst()
122 void allocateDataBuffer(int32_t numFrames) { in allocateDataBuffer()
149 const int32_t frames = actual().sampleRate; in testTimestamp()
190 virtual void processData(const int32_t frames, const int64_t timeoutNanos) = 0;
204 void processData(const int32_t frames, const int64_t timeoutNanos) override;
206 int32_t mFramesPerRead;
222 const int32_t framesPerMsec = actual().sampleRate / MILLIS_PER_SECOND; in SetUp()
231 void AAudioInputStreamTest::processData(const int32_t frames, const int64_t timeoutNanos) { in processData()
235 for (int32_t framesLeft = frames; framesLeft > 0; ) { in processData()
246 const int32_t framesToRecord = actual().sampleRate; // 1 second in TEST_P()
[all …]
/cts/tests/tests/graphics/jni/
DImageReaderTestHelpers.h34 ImageReaderHelper(int32_t width, int32_t height, int32_t format,
35 uint64_t usage, int32_t maxImages);
44 int32_t mWidth;
45 int32_t mHeight;
46 int32_t mFormat;
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp38 bool fuzzyMatch(uint32_t value1, uint32_t value2, int32_t tolerance) { in fuzzyMatch()
43 int32_t value1Masked = static_cast<int32_t>((value1 & mask) >> shift); in fuzzyMatch()
44 int32_t value2Masked = static_cast<int32_t>((value2 & mask) >> shift); in fuzzyMatch()
138 static const int32_t kTolerance = 0x30; in loadMediaAndVerifyFrameImport()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_convolve5x5.rscript20 int32_t gWidth;
21 int32_t gHeight;
27 uint32_t x0 = max((int32_t)x-2, 0);
28 uint32_t x1 = max((int32_t)x-1, 0);
30 uint32_t x3 = min((int32_t)x+1, gWidth-1);
31 uint32_t x4 = min((int32_t)x+2, gWidth-1);
33 uint32_t y0 = max((int32_t)y-2, 0);
34 uint32_t y1 = max((int32_t)y-1, 0);
36 uint32_t y3 = min((int32_t)y+1, gHeight-1);
37 uint32_t y4 = min((int32_t)y+2, gHeight-1);
[all …]
Dintrinsic_convolve3x3.rscript19 int32_t gWidth;
20 int32_t gHeight;
26 uint32_t x1 = min((int32_t)x+1, gWidth-1);
27 uint32_t x2 = max((int32_t)x-1, 0);
28 uint32_t y1 = min((int32_t)y+1, gHeight-1);
29 uint32_t y2 = max((int32_t)y-1, 0);
67 uint32_t x1 = min((int32_t)x+1, gWidth-1);
68 uint32_t x2 = max((int32_t)x-1, 0);
69 uint32_t y1 = min((int32_t)y+1, gHeight-1);
70 uint32_t y2 = max((int32_t)y-1, 0);
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_persistable_bundle.cpp80 const int32_t kIntVal = 11111;
84 const int32_t kNumBools = 3;
86 const std::vector<int32_t> kIntVVal = {1111, -2222, 3333};
111 static char* stringAllocator(int32_t bufferSizeBytes, void*) { in stringAllocator()
134 int32_t outInt = 0; in TEST_F()
139 int32_t* outIntV = nullptr; in TEST_F()
156 int32_t sizeBytes = APersistableBundle_getBooleanVector(bundle, "boolv", outBoolV, 0); in TEST_F()
160 for (int32_t i = 0; i < kNumBools; i++) { in TEST_F()
167 outIntV = (int32_t*)malloc(sizeBytes); in TEST_F()
169 for (int32_t i = 0; i < kIntVVal.size(); i++) { in TEST_F()
[all …]
/cts/tests/tests/opengl/libopengltest/
Dtypes.h19 int32_t mShaderError;
20 int32_t mShaderCount;
21 int32_t mProgramError;
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-20357/
Dpoc.cpp27 constexpr int32_t val = 0; in main()
28 constexpr int32_t width = 100; in main()
29 constexpr int32_t height = 100; in main()
31 constexpr int32_t createFlags = in main()
/cts/hostsidetests/securitybulletin/utils/mali_gpu_utils/src/
Dmali_gpu_utils.c20 const int32_t kMaxVersionLength = 64;
22 int32_t initialize_mali_gpu(const int32_t mali_fd, mali_gpu_info* gpu_info) { in initialize_mali_gpu()
23 int32_t ret = 0; in initialize_mali_gpu()
24 int32_t version_len = 0; in initialize_mali_gpu()
/cts/tests/tests/media/misc/jni/
DAImageReaderCts.cpp262 ImageReaderTestCase(int32_t width, in ImageReaderTestCase()
263 int32_t height, in ImageReaderTestCase()
264 int32_t format, in ImageReaderTestCase()
266 int32_t maxImages, in ImageReaderTestCase()
373 int32_t imageWidth = 0; in HandleImageAvailable()
374 int32_t imageHeight = 0; in HandleImageAvailable()
375 int32_t bufferWidth = static_cast<int32_t>(outDesc.width); in HandleImageAvailable()
376 int32_t bufferHeight = static_cast<int32_t>(outDesc.height); in HandleImageAvailable()
426 int32_t format = -1; in HandleImageAvailable()
449 int32_t mWidth;
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/
Dpoc.cpp24 constexpr int32_t kMaxDimension = 5000;
56 int32_t width = AImageDecoderHeaderInfo_getWidth(info); in main()
57 int32_t height = AImageDecoderHeaderInfo_getHeight(info); in main()
64 int32_t result = AImageDecoder_decodeImage(decoder.get(), pixels.data(), stride, pixelSize); in main()

12345