summaryrefslogtreecommitdiff
path: root/src/android/jpeg/thumbnailer.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-06-30 14:29:11 +0200
committerJacopo Mondi <jacopo@jmondi.org>2021-07-27 12:57:34 +0200
commit18d61deb3c0aebcf99c9b085f7031cd2f12b4d66 (patch)
treec647b657d59b59bedeca42a9f28dd122b5003a8f /src/android/jpeg/thumbnailer.cpp
parente1d43481b9fee7675b117952e331e20c7bfbf248 (diff)
android: capabilties: Rationalize get[YUV|Raw]Resolution names
The getYUVResolutions() and getRawResolutions() functions are called from the initializeStreamConfigurations() function, which is called by initialize(). Rationalize the function naming scheme by renaming the two functions to initializeYUVResolutions() and initializeRawResolution(). Cosmetic change only. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/jpeg/thumbnailer.cpp')
0 files changed, 0 insertions, 0 deletions
ons) { } protected: void run() { for (unsigned int i = 0; i < iterations_; ++i) { this_thread::sleep_for(chrono::milliseconds(50)); } } private: unsigned int iterations_; }; class ThreadTest : public Test { protected: int init() { return 0; } int run() { /* Test Thread() retrieval for the main thread. */ Thread *thread = Thread::current(); if (!thread) { cout << "Thread::current() failed to main thread" << endl; return TestFail; } if (!thread->isRunning()) { cout << "Main thread is not running" << endl; return TestFail; } /* Test starting the main thread, the test shall not crash. */ thread->start(); /* Test the running state of a custom thread. */ thread = new Thread(); thread->start(); if (!thread->isRunning()) { cout << "Thread is not running after being started" << endl; return TestFail; } thread->exit(0); thread->wait(); if (thread->isRunning()) { cout << "Thread is still running after finishing" << endl; return TestFail; } delete thread; return TestPass; } void cleanup() { } }; TEST_REGISTER(ThreadTest)