/cts/apps/CtsVerifier/include/colorchecker/ |
D | colorcheckertest.h | 42 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 …]
|
D | autolocktest.h | 31 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;
|
D | meteringtest.h | 35 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;
|
D | whitebalancetest.h | 32 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;
|
D | exposurecompensationtest.h | 38 const std::vector<Vec3f>* checkerColors) { in addDataToList() 52 std::vector<std::vector<Vec3f> > mCheckerColors; 53 std::vector<Vec3i> mReferenceColors; 54 std::vector<float> mExposureValues;
|
D | testingimage.h | 53 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/ |
D | android_jni_cts_LinkerNamespacesTest.cpp | 41 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"; 51 static std::unordered_set<std::string> kSystemLibraries = { 65 static bool for_each_file(const std::string& dir, F functor, std::string* error_msg) { in for_each_file() 67 std::unique_ptr<DIR, decltype(dir_deleter)> dirp(opendir(dir.c_str()), dir_deleter); in for_each_file() 89 static bool should_be_accessible(const std::string& public_library_path, in should_be_accessible() 90 const std::unordered_set<std::string>& public_libraries, in should_be_accessible() 91 const std::string& path) { in should_be_accessible() [all …]
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 39 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/ |
D | Gate.h | 63 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;
|
D | audio-record-native.cpp | 34 template <typename T> using shared_pointer = std::shared_ptr<T>; 76 typedef std::lock_guard<std::recursive_mutex> auto_lock; 299 std::lock_guard<std::mutex> rl(mReadLock); in read() 305 std::shared_ptr<Blob> blob; in read() 329 blob = std::make_shared<Blob>(buffer, size); in read() 361 auto b = std::make_shared<Blob>(mBufferSize); in queueBuffers() 421 std::recursive_mutex mLock; // monitor lock - locks public API methods and callback. 423 std::mutex mReadLock; // read lock - for blocking mode, prevents multiple 427 std::shared_ptr<Blob> mReadBlob; 429 std::deque<std::shared_ptr<Blob>> mReadyQueue; // ready for read. [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSave.cpp | 54 UniquePtr<std::vector<android::String8> > list(StringUtil::split(fileValue, ',')); in handleFile() 55 std::vector<android::String8>* listp = list.get(); in handleFile() 78 UniquePtr<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 UniquePtr<std::vector<android::String8> > list(StringUtil::split(reportValue, ',')); in handleReport() 108 std::vector<android::String8>* listp = list.get(); in handleReport() 116 UniquePtr<std::list<TaskCase::ValuePair> > values( in handleReport() 118 std::list<TaskCase::ValuePair>* valuesp = values.get(); in handleReport() [all …]
|
D | TaskCase.cpp | 68 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 …]
|
D | TaskSequential.cpp | 56 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run() 57 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run() 94 std::list<TaskAsync*>::iterator it; in queueAsyncTask() 95 it = std::find(mAsyncTasks.begin(), mAsyncTasks.end(), task); in queueAsyncTask() 105 std::list<TaskAsync*>::iterator i = mAsyncTasks.begin(); in runAsyncTasksQueued() 106 std::list<TaskAsync*>::iterator end = mAsyncTasks.end(); in runAsyncTasksQueued()
|
D | TaskGeneric.cpp | 50 std::list<TaskGeneric*>::iterator i = mChildren.begin(); in forEachChild() 51 std::list<TaskGeneric*>::iterator end = mChildren.end(); in forEachChild() 127 std::set<android::String8, android::String8>::iterator it = mAllowedStringAttributes.find(key); in addStringAttribute() 137 std::map<android::String8, android::String8>::const_iterator it = mStringAttributes.find(key); in findStringAttribute()
|
/cts/suite/audio_quality/lib/include/ |
D | Report.h | 51 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/ |
D | Buffer.cpp | 91 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/suite/audio_quality/lib/include/task/ |
D | TaskCase.h | 48 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;
|
D | TaskGeneric.h | 103 inline std::list<TaskGeneric*>& getChildren() { in getChildren() 110 std::list<TaskGeneric*> mChildren; 112 std::set<android::String8> mAllowedStringAttributes; 113 std::map<android::String8, android::String8> mStringAttributes;
|
D | TaskProcess.h | 42 bool parseParams(std::vector<Param>& list, const char* str, bool isInput); 49 bool prepareParams(std::vector<TaskProcess::Param>& list, 86 std::vector<Param> mInput; 87 std::vector<Param> mOutput;
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | shadertoy_shader.cpp | 24 bool CompileShader10(GLuint shader, const std::string& shader_string) { in CompileShader10() 25 std::string prefix = "#version 100\n"; in CompileShader10() 26 std::string string_with_prefix = prefix + shader_string; in CompileShader10() 63 void ShadertoyShader::CreateShaderFromString(const std::string& shader_string) { in CreateShaderFromString() 84 void ShadertoyShader::CreateShader(const std::string fragment_string) { in CreateShader() 85 std::string vertex_string = SHADER0([]() { in CreateShader() 92 std::string shader_toy_fragment_header = SHADER0([]() { in CreateShader() 106 std::string shader_toy_fragment_footer = SHADER0([]() { in CreateShader() 115 …std::string complete_fragment_string = shader_toy_fragment_header + fragment_string + shader_toy_f… in CreateShader()
|
D | utils.cpp | 25 bool CompileShader(GLuint shader, const std::string& shader_string) { in CompileShader() 26 std::string prefix = "#version 300 es\n"; in CompileShader() 27 std::string string_with_prefix = prefix + shader_string; in CompileShader() 66 GLenum GLCheckErrorStr(std::string msg) { in GLCheckErrorStr() 68 std::string str; in GLCheckErrorStr()
|
D | utils.h | 52 std::string StripLambda(const char(&shader)[size]) { in StripLambda() 53 return std::string(shader + 6, shader + size - 2); in StripLambda() 58 bool CompileShader(GLuint shader, const std::string& shader_string); 65 GLenum GLCheckErrorStr(std::string str);
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 55 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable() 67 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable() 74 std::lock_guard<std::mutex> lock(mMutex); in resetCount() 81 std::lock_guard<std::mutex> lock(mMutex); in getAvailableCount() 86 std::lock_guard<std::mutex> lock(mMutex); in getUnavailableCount() 91 std::lock_guard<std::mutex> lock(mMutex); in isAvailable() 99 std::mutex mMutex; 102 std::map<std::string, bool> mAvailableMap; 113 std::lock_guard<std::mutex> lock(thiz->mMutex); in onDisconnected() 124 std::lock_guard<std::mutex> lock(thiz->mMutex); in onError() [all …]
|
/cts/tests/openglperf2/jni/reference/scene/ |
D | Scene.h | 43 std::vector<Mesh*> mMeshes; 44 std::vector<GLuint> mTextureIds; 45 std::vector<ProgramNode*> mSceneGraphs;
|
/cts/tests/aslr/src/ |
D | AslrMallocTest.cpp | 51 static const std::string argPrint = "--print-malloc-address"; 57 std::string self_; 97 std::string output; in GetAddress() 118 std::unordered_set<uintptr_t> addresses; in TestRandomization()
|