Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 82) sorted by relevance

1234

/cts/apps/CtsVerifier/include/colorchecker/
Dcolorcheckertest.h42 const std::vector<std::vector<Vec2f> >* getCheckerCenterAdd() const { in getCheckerCenterAdd()
43 std::vector<std::vector<Vec2f> >* returnPositions = in getCheckerCenterAdd()
44 new std::vector<std::vector<Vec2f> >( in getCheckerCenterAdd()
45 4, std::vector<Vec2f>(6, Vec2f(0.f, 0.f))); in getCheckerCenterAdd()
55 const std::vector<std::vector<float> >* getCheckerRadiusAdd() const { in getCheckerRadiusAdd()
56 std::vector<std::vector<float> >* returnRadius= in getCheckerRadiusAdd()
57 new std::vector<std::vector<float> >( in getCheckerRadiusAdd()
58 4, std::vector<float>(6, 0.f)); in getCheckerRadiusAdd()
80 void findCheckerBoards(std::vector<std::vector<int> > linesDir1,
81 std::vector<std::vector<int> > linesDir2);
[all …]
Dautolocktest.h31 void addDataToList(const std::vector<Vec3f>* checkerColors) { in addDataToList()
40 const std::vector<bool>* getComparisonResults() const { in getComparisonResults()
45 bool IsBrighterThan(const std::vector<Vec3f>* colorCheckers1,
46 const std::vector<Vec3f>* colorCheckers2) const;
47 bool IsEquivalentTo(const std::vector<Vec3f>* colorCheckers1,
48 const std::vector<Vec3f>* colorCheckers2) const;
50 std::vector<std::vector<Vec3f> > mCheckerColors;
51 std::vector<bool> mComparisonResults;
Dmeteringtest.h35 void addDataToList(const std::vector<Vec3f>* checkerColors) { in addDataToList()
44 const std::vector<bool>* getComparisonResults() const { in getComparisonResults()
49 bool isDarkerThan(const std::vector<Vec3f>* checkerColors1,
50 const std::vector<Vec3f>* checkerColors2) const;
51 bool isEquivalentTo(const std::vector<Vec3f>* checkerColors1,
52 const std::vector<Vec3f>* checkerColors2) const;
54 std::vector<std::vector<Vec3f> > mCheckerColors;
55 std::vector<bool> mComparisonResults;
Dwhitebalancetest.h32 void addDataToList(const std::string &mode, in addDataToList()
33 const std::vector<Vec3f>* checkerColors) { in addDataToList()
52 std::string mMode;
53 std::vector<Vec3f> mCheckerColors;
54 std::vector<Vec3f> mCheckerXyzColors;
55 std::vector<Vec3f> mXyzColorsDaylight;
Dexposurecompensationtest.h38 const std::vector<Vec3f>* checkerColors) { in addDataToList()
52 std::vector<std::vector<Vec3f> > mCheckerColors;
53 std::vector<Vec3i> mReferenceColors;
54 std::vector<float> mExposureValues;
Dtestingimage.h53 const std::vector<Vec3f>* getColorChecker(
55 const std::vector<std::vector< Vec2f > >* centerAddress,
56 const std::vector<std::vector< float > >* radiusAddress) const;
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp41 static const std::string kSystemLibraryPath = "/system/lib64";
42 static const std::string kVendorLibraryPath = "/vendor/lib64";
44 static const std::string kSystemLibraryPath = "/system/lib";
45 static const std::string kVendorLibraryPath = "/vendor/lib";
52 static std::vector<std::string> kSystemLibraries = {
69 static bool is_directory(const std::string& path) { in is_directory()
78 static bool not_accessible(const std::string& library, const std::string& err) { in not_accessible()
80 … err.find("is not accessible for the namespace \"classloader-namespace\"") != std::string::npos; in not_accessible()
83 static bool not_found(const std::string& library, const std::string& err) { in not_found()
87 static bool wrong_arch(const std::string& library, const std::string& err) { in wrong_arch()
[all …]
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp39 using namespace std::chrono_literals;
41 static constexpr std::chrono::nanoseconds NOMINAL_VSYNC_PERIOD{16ms};
42 static constexpr std::chrono::nanoseconds DELAY_PERIOD{NOMINAL_VSYNC_PERIOD * 5};
44 static std::mutex gLock;
47 std::chrono::nanoseconds frameTime{0};
51 std::lock_guard<std::mutex> _l(gLock); in frameCallback()
54 cb->frameTime = std::chrono::nanoseconds{frameTimeNanos}; in frameCallback()
57 static std::chrono::nanoseconds now() { in now()
58 return std::chrono::steady_clock::now().time_since_epoch(); in now()
77 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_getChoreographer()
[all …]
/cts/tests/tests/media/libaudiojni/
DGate.h63 std::unique_lock<std::mutex> l(mLock); in wait()
76 std::lock_guard<std::mutex> l(mLock); in closeGate()
84 std::lock_guard<std::mutex> l(mLock); in openGate()
97 std::lock_guard<std::mutex> l(mLock); in terminate()
106 std::lock_guard<std::mutex> l(mLock); in isOpen()
112 std::lock_guard<std::mutex> l(mLock); in waiters()
121 std::condition_variable mCondition;
122 std::mutex mLock;
/cts/tests/tests/nativemedia/aaudio/src/
Dtest_aaudio_callback.cpp58 using CbTestParams = std::tuple<aaudio_sharing_mode_t, int32_t, aaudio_performance_mode_t>;
65 static std::string getTestName(const ::testing::TestParamInfo<CbTestParams>& info) { in getTestName()
66 return std::string() + sharingModeToString(std::get<PARAM_SHARING_MODE>(info.param)) + in getTestName()
67 "__" + std::to_string(std::get<PARAM_FRAMES_PER_CB>(info.param)) + in getTestName()
68 "__" + performanceModeToString(std::get<PARAM_PERF_MODE>(info.param)); in getTestName()
79 std::atomic<aaudio_result_t> callbackError;
80 std::atomic<int32_t> callbackCount;
104 minLatency = std::min(minLatency, latency); in updateLatency()
105 maxLatency = std::max(maxLatency, latency); in updateLatency()
115 std::unique_ptr<T> mHelper;
[all …]
Dtest_aaudio.cpp32 using StreamTestParams = std::tuple<aaudio_sharing_mode_t, aaudio_performance_mode_t>;
38 static std::string getTestName(const ::testing::TestParamInfo<StreamTestParams>& info) { in getTestName()
39 return std::string() + sharingModeToString(std::get<PARAM_SHARING_MODE>(info.param)) + in getTestName()
40 "__" + performanceModeToString(std::get<PARAM_PERF_MODE>(info.param)); in getTestName()
51 std::unique_ptr<T> mHelper;
53 std::unique_ptr<int16_t[]> mData;
66 std::get<PARAM_SHARING_MODE>(GetParam()), in SetUp()
67 std::get<PARAM_PERF_MODE>(GetParam()))); in SetUp()
95 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
116 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
[all …]
Dtest_aaudio_stream_builder.cpp103 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName()
104 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
130 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName()
131 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
157 static std::string getTestName(const ::testing::TestParamInfo<aaudio_format_t>& info) { in getTestName()
158 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
190 static std::string getTestName(const ::testing::TestParamInfo<aaudio_sharing_mode_t>& info) { in getTestName()
191 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
217 static std::string getTestName(const ::testing::TestParamInfo<aaudio_direction_t>& info) { in getTestName()
218 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative_media_encoder_jni.cpp50 NativeEncoder(const std::string&);
53 static std::shared_ptr<ANativeWindow> getPersistentSurface();
54 std::shared_ptr<ANativeWindow> getSurface() const;
56 Status prepare(std::unique_ptr<RunConfig> config, std::shared_ptr<ANativeWindow> anw = nullptr);
67 std::shared_ptr<AMediaCodec> mEnc;
68 std::shared_ptr<ANativeWindow> mLocalSurface; // the one created by createInputSurface()
69 std::string mOutFileName;
73 std::unique_ptr<RunConfig> mRunConfig;
77 NativeEncoder::NativeEncoder(const std::string& outFileName) in NativeEncoder()
92 std::shared_ptr<ANativeWindow> NativeEncoder::getPersistentSurface() { in getPersistentSurface()
[all …]
Dnative_media_utils.h103 static std::shared_ptr<DynamicParam> newBitRate(int atFrame, int32_t bitrate) { in newBitRate()
106 return std::shared_ptr<DynamicParam>(d); in newBitRate()
108 static std::shared_ptr<DynamicParam> newRequestSync(int atFrame) { in newRequestSync()
111 return std::shared_ptr<DynamicParam>(d); in newRequestSync()
124 mParam = std::shared_ptr<AMediaFormat>(AMediaFormat_new(), deleter_AMediaFormat); in DynamicParam()
128 std::shared_ptr<AMediaFormat> mParam;
131 using DParamRef = std::shared_ptr<DynamicParam>;
138 RunConfig(int32_t numFramesToEncode, std::shared_ptr<AMediaFormat> staticParams) in RunConfig()
149 const std::vector<DParamRef>& dynamicParams() const { in dynamicParams()
156 const char *key, std::vector<DParamRef>& ) const;
[all …]
Dnative_media_decoder_source.cpp33 Status prepare(std::shared_ptr<Listener> l, std::shared_ptr<ANativeWindow> n) override;
49 std::shared_ptr<AMediaExtractor> mEx;
50 std::shared_ptr<AMediaCodec> mDec;
51 std::shared_ptr<AMediaFormat> mFormat;
52 std::string mMime;
59 std::shared_ptr<Source> createDecoderSource( in createDecoderSource()
65 std::shared_ptr<Source> src(d); in createDecoderSource()
86 mEx = std::shared_ptr<AMediaExtractor>(AMediaExtractor_new(), deleter_AMediExtractor); in setDataSourceFd()
107 mFormat = std::shared_ptr<AMediaFormat>(format, deleter_AMediaFormat); in setDataSourceFd()
188 mFormat = std::shared_ptr<AMediaFormat>( in run()
[all …]
/cts/hostsidetests/jvmti/base/jni/
Dredefine.cpp69 void PushRedefinition(std::string name, std::vector<unsigned char> data) { in PushRedefinition()
71 std::stack<std::vector<unsigned char>> stack; in PushRedefinition()
72 redefinitions_[name] = std::move(stack); in PushRedefinition()
74 redefinitions_[name].push(std::move(data)); in PushRedefinition()
77 bool RetrieveRedefinition(std::string name, /*out*/std::vector<unsigned char>* data) { in RetrieveRedefinition()
87 void PopRedefinition(std::string name) { in PopRedefinition()
99 std::unordered_map<std::string, std::stack<std::vector<unsigned char>>> redefinitions_;
116 std::string name_str(name); in CommonClassFileLoadHookRetransformable()
117 std::vector<unsigned char> dex_data; in CommonClassFileLoadHookRetransformable()
165 std::string name_str(name_chrs); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_pushTransformationResult()
[all …]
Dtracking.cpp31 static std::string GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName()
40 static std::mutex gLock;
41 static std::string gCollection;
49 std::string object_klass_descriptor = GetClassName(jni_env, object_klass); in ObjectAllocated()
51 std::string object_klass_descriptor2 = GetClassName(jni_env, object_klass2.get()); in ObjectAllocated()
52 std::string result = android::base::StringPrintf("ObjectAllocated type %s/%s size %zu", in ObjectAllocated()
56 std::unique_lock<std::mutex> mu(gLock); in ObjectAllocated()
83 std::string result; in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
85 std::unique_lock<std::mutex> mu(gLock); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
/cts/suite/audio_quality/lib/src/task/
DTaskSave.cpp54 std::unique_ptr<std::vector<android::String8> > list(StringUtil::split(fileValue, ',')); in handleFile()
55 std::vector<android::String8>* listp = list.get(); in handleFile()
78 std::unique_ptr<std::list<TaskCase::BufferPair> > buffers( in handleFile()
80 std::list<TaskCase::BufferPair>* buffersp = buffers.get(); in handleFile()
85 std::list<TaskCase::BufferPair>::iterator it = buffersp->begin(); in handleFile()
86 std::list<TaskCase::BufferPair>::iterator end = buffersp->end(); in handleFile()
107 std::unique_ptr<std::vector<android::String8> > list(StringUtil::split(reportValue, ',')); in handleReport()
108 std::vector<android::String8>* listp = list.get(); in handleReport()
116 std::unique_ptr<std::list<TaskCase::ValuePair> > values( in handleReport()
118 std::list<TaskCase::ValuePair>* valuesp = values.get(); in handleReport()
[all …]
DTaskProcess.cpp54 bool TaskProcess::prepareParams(std::vector<TaskProcess::Param>& list, in prepareParams()
56 std::unique_ptr<void_ptr[]>& ptrs, in prepareParams()
57 std::unique_ptr<UniqueValue[]>& values, in prepareParams()
58 std::unique_ptr<UniqueBuffer[]>& buffers, in prepareParams()
96 std::unique_ptr<android::sp<Buffer> > buffer(new android::sp<Buffer>()); in prepareParams()
170 std::unique_ptr<void_ptr[]> inputs; in doRun()
172 std::unique_ptr<UniqueValue[]> inputValues; in doRun()
174 std::unique_ptr<UniqueBuffer[]> inputBuffers; in doRun()
176 std::unique_ptr<void_ptr[]> outputs; in doRun()
178 std::unique_ptr<UniqueValue[]> outputValues; in doRun()
[all …]
DTaskCase.cpp68 typename std::map<android::String8, T>& map, in registerGeneric()
71 typename std::map<android::String8, T>::iterator it; in registerGeneric()
82 template <typename T> bool findGeneric(typename std::map<android::String8, T>& map, in findGeneric()
86 typename std::map<android::String8, T>::iterator it; in findGeneric()
95 template <typename T> bool updateGeneric(typename std::map<android::String8, T>& map, in updateGeneric()
99 typename std::map<android::String8, T>::iterator it; in updateGeneric()
110 template <typename T> typename std::list<std::pair<android::String8, T> >* findAllGeneric( in findAllGeneric()
111 typename std::map<android::String8, T>& map, const char* re) in findAllGeneric()
118 typename std::map<android::String8, T>::iterator it; in findAllGeneric()
119 typename std::list<std::pair<android::String8, T> >* list = NULL; in findAllGeneric()
[all …]
/cts/suite/audio_quality/lib/include/task/
DTaskProcess.h42 bool parseParams(std::vector<Param>& list, const char* str, bool isInput);
45 typedef std::unique_ptr<TaskCase::Value> UniqueValue;
46 typedef std::unique_ptr<android::sp<Buffer> > UniqueBuffer;
49 bool prepareParams(std::vector<TaskProcess::Param>& list,
51 std::unique_ptr<void_ptr[]>& ptrs,
52 std::unique_ptr<UniqueValue[]>& values,
53 std::unique_ptr<UniqueBuffer[]>& buffers,
86 std::vector<Param> mInput;
87 std::vector<Param> mOutput;
89 std::unique_ptr<SignalProcessingInterface> mSp;
DTaskCase.h48 typedef std::pair<android::String8, android::sp<Buffer> > BufferPair;
50 std::list<BufferPair>* findAllBuffers(const android::String8& re);
109 typedef std::pair<android::String8, Value> ValuePair;
111 std::list<ValuePair>* findAllValues(const android::String8& re);
116 typedef std::pair<android::String8, int> IndexPair;
118 std::list<IndexPair>* findAllIndices(const android::String8& re);
132 std::map<android::String8, android::sp<Buffer> > mBufferList;
133 std::map<android::String8, int> mIndexList;
134 std::map<android::String8, Value> mValueList;
/cts/suite/audio_quality/lib/include/
DReport.h51 typedef std::pair<android::String8, android::String8> StringPair;
52 void writeResult(std::list<StringPair>::const_iterator begin,
53 std::list<StringPair>::const_iterator end, bool passed);
57 std::list<StringPair> mPassedCases;
58 std::list<StringPair> mFailedCases;
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp91 std::ifstream file(filename.string(), std::ios::in | std::ios::binary | in loadFromFile()
92 std::ios::ate); in loadFromFile()
102 file.seekg(0, std::ios::beg); in loadFromFile()
116 std::ofstream file(filenameWithExtension.string(), std::ios::out | std::ios::binary | in saveToFile()
117 std::ios::trunc); in saveToFile()
125 if (file.rdstate() != std::ios_base::goodbit) { in saveToFile()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp39 static std::string BuildHexFailureMessage(uint64_t expected, in BuildHexFailureMessage()
41 std::ostringstream ss; in BuildHexFailureMessage()
42 ss << type << " 0x" << std::hex << actual in BuildHexFailureMessage()
43 << " does not match expected " << type << " 0x" << std::hex in BuildHexFailureMessage()
48 static std::string BuildFailureMessage(uint32_t expected, in BuildFailureMessage()
50 std::ostringstream ss; in BuildFailureMessage()
55 static std::string CheckAHardwareBufferMatchesDesc( in CheckAHardwareBufferMatchesDesc()
69 return std::string(); in CheckAHardwareBufferMatchesDesc()
107 ASSERT_EQ(std::string(), CheckAHardwareBufferMatchesDesc(buffer, desc)); in testAHardwareBuffer_allocate_BlobFormatRequiresHeight1()
124 ASSERT_EQ(std::string(), CheckAHardwareBufferMatchesDesc(buffer, desc)); in testAHardwareBuffer_allocate_Succeeds()
[all …]

1234