Lines Matching defs:thread
33 * decoding if another thread wants to cancel it, it calls the function
34 * cancelThreadDecoding() specifying the Thread which is in decoding.
55 s = "thread state = " + s + ", options = " + mOptions;
60 private final WeakHashMap<Thread, ThreadStatus> mThreadStatus =
61 new WeakHashMap<Thread, ThreadStatus>();
69 * Get thread status and create one if specified.
71 private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) {
84 private synchronized void setDecodingOptions(Thread t,
89 synchronized void removeDecodingOptions(Thread t) {
95 * The following three methods are used to keep track of which thread
98 public synchronized boolean canThreadDecoding(Thread t) {
109 public synchronized void allowThreadDecoding(Thread t) {
113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) {
140 Thread t = Thread.currentThread();
144 Log.d(TAG, "Thread " + t + " is not allowed to decode.");
183 Thread thread = Thread.currentThread();
184 if (!canThreadDecoding(thread)) {
185 Log.d(TAG, "Thread " + thread + " is not allowed to decode.");
189 setDecodingOptions(thread, options);
192 removeDecodingOptions(thread);