/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | thread.cc | 36 Thread::Thread(const std::string& name, const Priority priority) in Thread() function in bluetooth::os::Thread 37 : name_(name), reactor_(), running_thread_(&Thread::run, this, priority) {} in Thread() 39 void Thread::run(Priority priority) { in run() 52 Thread::~Thread() { in ~Thread() 56 bool Thread::Stop() { in Stop() 70 bool Thread::IsSameThread() const { in IsSameThread() 74 Reactor* Thread::GetReactor() const { in GetReactor() 78 std::string Thread::GetThreadName() const { in GetThreadName() 82 std::string Thread::ToString() const { in ToString()
|
D | thread_unittest.cc | 33 …explicit SampleReactable(Thread* thread) : thread_(thread), fd_(eventfd(0, 0)), is_same_thread_che… in SampleReactable() 52 Thread* thread_; 60 thread = new Thread("test", Thread::Priority::NORMAL); in SetUp() 66 Thread* thread = nullptr;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | Profile.java | 42 Thread thread; 77 public synchronized void addWatchEntry(Thread thread, int cycleTime) { in addWatchEntry() 87 public synchronized void removeWatchEntry(Thread thread) { in removeWatchEntry() 112 Thread thread = entry.thread; in processList() 126 Thread thread = entry.thread; in sampleStack() 139 private WatchEntry findEntry(Thread thread) { in findEntry() 155 public synchronized void hold(Thread t) { in hold() 166 public synchronized void commit(Thread t) { in commit() 177 public synchronized void drop(Thread t) { in drop() 188 Thread t = Thread.currentThread(); in enable() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | BitmapManager.java | 60 private final WeakHashMap<Thread, ThreadStatus> mThreadStatus = 61 new WeakHashMap<Thread, ThreadStatus>(); 71 private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) { in getOrCreateThreadStatus() 84 private synchronized void setDecodingOptions(Thread t, in setDecodingOptions() 89 synchronized void removeDecodingOptions(Thread t) { in removeDecodingOptions() 98 public synchronized boolean canThreadDecoding(Thread t) { in canThreadDecoding() 109 public synchronized void allowThreadDecoding(Thread t) { in allowThreadDecoding() 113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { in cancelThreadDecoding() 140 Thread t = Thread.currentThread(); in getThumbnail() 183 Thread thread = Thread.currentThread(); in decodeFileDescriptor()
|
/packages/modules/Bluetooth/system/gd/os/ |
D | thread.h | 32 class Thread { 44 Thread(const std::string& name, Priority priority); 46 Thread(const Thread&) = delete; 47 Thread& operator=(const Thread&) = delete; 50 ~Thread();
|
D | handler_unittest.cc | 34 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp() 43 Thread* thread_; 123 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in ThreadSetUp() 145 Thread* thread_;
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | hfp.py | 97 threading.Thread(target=enable_slc).start() 121 threading.Thread(target=connect).start() 152 threading.Thread(target=disable_slc).start() 189 threading.Thread(target=enable_call).start() 214 threading.Thread(target=disable_call_external).start() 242 threading.Thread(target=disable_audio).start() 268 threading.Thread(target=enable_audio).start() 284 threading.Thread(target=disable_slc).start() 314 threading.Thread(target=enable_second_call).start() 413 threading.Thread(target=disable_slc).start() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DialerExecutorModule.java | 61 public Thread newThread(Runnable runnable) { in provideNonUiThreadPool() 63 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority"); in provideNonUiThreadPool() 78 public Thread newThread(Runnable runnable) { 80 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority-Serial"); 101 public Thread newThread(Runnable runnable) { 103 Thread thread = new Thread(runnable, "DialerExecutors-HighPriority-Serial");
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/ |
D | ImageAndVideoCapture.java | 69 Thread.sleep(WAIT_FOR_STABLE_STATE); in testLaunchCamera() 82 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image() 85 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image() 87 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Image() 105 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos() 108 Thread.sleep(WAIT_FOR_VIDEO_CAPTURE_TO_BE_TAKEN); in testCapture5Videos() 110 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos() 112 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Videos()
|
/packages/modules/Connectivity/thread/ |
D | README.md | 1 # Thread chapter 3 Bring the [Thread](https://www.threadgroup.org/) networking protocol to Android. 5 ## Try Thread with Cuttlefish 17 Open `https://localhost:8443/` in your web browser, you can find the Thread 18 demoapp (with the Thread logo) in the cuttlefish instance. Open it and have fun with Thread!
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | ConcurrencyHelperTest.java | 48 Thread t = in testRunASync() 54 executionInfo.thread = Thread.currentThread(); in testRunASync() 82 ArrayBlockingQueue<Thread> holder = new ArrayBlockingQueue<>(1); in testStartNewThread() 84 Thread t = mHelper.startNewThread(() -> holder.offer(Thread.currentThread())); in testStartNewThread() 87 Thread executionThread = holder.poll(SLEEP_TIMEOUT_MS + 100, MILLISECONDS); in testStartNewThread() 95 public Thread thread;
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | ConcurrencyHelper.java | 40 public Thread runAsync(long timeoutMs, Runnable r) { in runAsync() 44 String threadName = Thread.currentThread().getName(); in runAsync() 47 Thread.sleep(timeoutMs); in runAsync() 61 public Thread startNewThread(Runnable r) { in startNewThread() 64 Thread thread = new Thread(r, threadName); in startNewThread()
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/ |
D | AbstractProcessLifeguardRule.java | 23 import java.lang.Thread.UncaughtExceptionHandler; 63 Thread thread, in ignoreUncaughtBackgroundException() 77 Thread thread, in newUncaughtBackgroundException() 99 Thread thread, in newUncaughtBackgroundException() 131 sRealHandler = Thread.getDefaultUncaughtExceptionHandler(); in evaluate() 146 Thread.setDefaultUncaughtExceptionHandler(sMyHandler); in evaluate() 162 Thread thread = sMyHandler.thread; in evaluate() 220 public @Nullable Thread thread; 224 public void uncaughtException(Thread t, Throwable e) { in uncaughtException()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | LocationSettingsTests.java | 81 Thread.sleep(TIMEOUT); in testLoadingLocationSettings() 103 Thread.sleep(TIMEOUT); in testLocationDeviceOnlyMode() 111 Thread.sleep(TIMEOUT); in testLocationBatterySavingMode() 119 Thread.sleep(TIMEOUT); in testLocationHighAccuracyMode() 129 Thread.sleep(TIMEOUT); in testLocationSettingsElements() 166 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 171 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 174 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 206 Thread.sleep(TIMEOUT); in verifyLocationSettingsOnOrOff() 234 Thread.sleep(TIMEOUT); in dismissAlertDialogs() [all …]
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/privatespace/ |
D | PrivateSpaceAuthenticationActivityTest.kt | 57 Thread.sleep(1000) in showAuthenticationScreen() 60 Thread.sleep(1000) in showAuthenticationScreen() 66 Thread.sleep(1000) in onCancelLockExitSetup() 69 Thread.sleep(1000) in onCancelLockExitSetup() 77 Thread.sleep(1000) in onSetupSetLock() 80 Thread.sleep(1000) in onSetupSetLock() 83 Thread.sleep(1000) in onSetupSetLock()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsTaskSchedulerTest.java | 70 Thread.sleep(10 * 1000); in testAutoShutdown() 76 Thread.sleep(1 * 1000); in testAutoShutdown() 79 Thread.sleep(1 * 1000); in testAutoShutdown() 82 Thread.sleep(1 * 1000); in testAutoShutdown() 85 Thread.sleep(1 * 1000); in testAutoShutdown() 90 Thread.sleep(10 * 1000); in testAutoShutdown()
|
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | LibStatsPullTests.java | 107 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackRegistration() 110 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackRegistration() 140 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackFailure() 143 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackFailure() 165 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackTimeout() 168 Thread.sleep(sPullLatencyMillis * 2); in testPullAtomCallbackTimeout() 189 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackCache() 193 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackCache() 227 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackStress() 230 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackStress() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/src/com/android/adservices/tests/cts/topics/appupdate/ |
D | AppUpdateTest.java | 162 Thread.sleep(3 * TEST_EPOCH_JOB_PERIOD_MS); in setup() 189 Thread.sleep(TEST_EPOCH_JOB_PERIOD_MS); in testAppUpdate() 193 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate() 197 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate() 204 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate() 210 Thread.sleep(3 * TEST_EPOCH_JOB_PERIOD_MS); in testAppUpdate() 214 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate() 219 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate() 224 Thread.sleep(EXECUTION_WAITING_TIME); in testAppUpdate()
|
/packages/modules/Bluetooth/system/gd/common/ |
D | bidi_queue_unittest.cc | 27 using ::bluetooth::os::Thread; 36 up_thread_ = new Thread("up_thread", Thread::Priority::NORMAL); in SetUp() 38 down_thread_ = new Thread("down_thread", Thread::Priority::NORMAL); in SetUp() 49 Thread* up_thread_; 51 Thread* down_thread_;
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ConcurrentUtils.java | 65 public Thread newThread(final Runnable r) { in newFixedThreadPool() 66 return new Thread(poolName + mThreadNum.incrementAndGet()) { in newFixedThreadPool() 93 Thread.currentThread().interrupt(); 119 Thread.currentThread().interrupt(); 129 if (Thread.holdsLock(lock)) { 139 if (!Thread.holdsLock(lock)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ExecutorUtils.java | 23 import java.lang.Thread.UncaughtExceptionHandler; 54 public Thread newThread(final Runnable runnable) { in newThread() 55 Thread thread = new Thread(runnable, TAG); in newThread() 58 public void uncaughtException(Thread thread, Throwable ex) { in newThread() 145 if (Thread.interrupted()) { in run()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/app/ |
D | PumpApplication.java | 29 public class PumpApplication extends GlobalsApplication implements Thread.UncaughtExceptionHandler { 32 private final Thread.UncaughtExceptionHandler mSystemUncaughtExceptionHandler = 33 Thread.getDefaultUncaughtExceptionHandler(); 36 Thread.setDefaultUncaughtExceptionHandler(this); in PumpApplication() 60 public void uncaughtException(@NonNull Thread t, @NonNull Throwable e) { in uncaughtException()
|
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/ |
D | RebootReadinessUnitTest.java | 234 Thread.sleep(STATE_CHANGE_DELAY); in testCorrectIntentsSent() 240 Thread.sleep(DEVICE_CONFIG_DELAY); in testCorrectIntentsSent() 242 Thread.sleep(STATE_CHANGE_DELAY); in testCorrectIntentsSent() 273 Thread.sleep(STATE_CHANGE_DELAY); in testSecondClientReceivesBroadcastImmediately() 293 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 302 Thread.sleep(DEVICE_CONFIG_DELAY); in testWritingAfterRebootReadyBroadcast() 304 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 307 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 325 Thread.sleep(1000); in testInteractivityChecks() 363 Thread.sleep(DEVICE_CONFIG_DELAY); in testAlarmClockBlocksReboot() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsSocketClientTests.java | 231 Thread multicastReceiverThread = mdnsClient.multicastReceiveThread; in testSendPackets_useSeparateSocketForUnicast() 232 Thread unicastReceiverThread = mdnsClient.unicastReceiveThread; in testSendPackets_useSeparateSocketForUnicast() 233 Thread sendThread = mdnsClient.sendThread; in testSendPackets_useSeparateSocketForUnicast() 258 Thread testThread = in testSendPackets_useSeparateSocketForUnicast() 259 new Thread( in testSendPackets_useSeparateSocketForUnicast() 284 Thread multicastReceiverThread = mdnsClient.multicastReceiveThread; in testSendPackets_useSameSocketForMulticastAndUnicast() 285 Thread unicastReceiverThread = mdnsClient.unicastReceiveThread; in testSendPackets_useSameSocketForMulticastAndUnicast() 286 Thread sendThread = mdnsClient.sendThread; in testSendPackets_useSameSocketForMulticastAndUnicast() 311 Thread testThread = in testSendPackets_useSameSocketForMulticastAndUnicast() 312 new Thread( in testSendPackets_useSameSocketForMulticastAndUnicast() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ThreadHelper.java | 33 if (Looper.getMainLooper().getThread() == Thread.currentThread()) { in assertNotOnMainThread() 40 if (Looper.getMainLooper().getThread() != Thread.currentThread()) { in assertOnMainThread() 54 Thread.UncaughtExceptionHandler uiThreadExceptionHandler = in crashMainThread() 56 uiThreadExceptionHandler.uncaughtException(Thread.currentThread(), t); in crashMainThread()
|