Home
last modified time | relevance | path

Searched refs:getThreadPriority (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/os/
DCarPerformanceManagerTest.java159 when(mCarWatchdogDaemonHelper.getThreadPriority( in testGetThreadPriority()
162 ThreadPolicyWithPriority result = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriority()
171 when(mCarWatchdogDaemonHelper.getThreadPriority( in testGetThreadPriorityDefaultPolicy()
174 ThreadPolicyWithPriority result = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriorityDefaultPolicy()
183 when(mCarWatchdogDaemonHelper.getThreadPriority( in testGetThreadPriorityInvalidPolicy()
186 assertThrows(IllegalStateException.class, () -> mCarPerformanceManager.getThreadPriority()); in testGetThreadPriorityInvalidPolicy()
192 when(mCarWatchdogDaemonHelper.getThreadPriority( in testGetThreadPriorityInvalidPriority()
195 assertThrows(IllegalStateException.class, () -> mCarPerformanceManager.getThreadPriority()); in testGetThreadPriorityInvalidPriority()
200 when(mCarWatchdogDaemonHelper.getThreadPriority(anyInt(), anyInt(), anyInt())).thenThrow( in testGetThreadPriorityRemoteException()
203 ThreadPolicyWithPriority result = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriorityRemoteException()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/os/
DCarPerformanceManagerUnitTest.java100 when(mService.getThreadPriority(anyInt())).thenReturn(expected); in testGetThreadPriority()
102 ThreadPolicyWithPriority got = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriority()
110 when(mService.getThreadPriority(anyInt())).thenThrow(new RemoteException("")); in testGetThreadPriorityRemoteExceptionFromService()
112 ThreadPolicyWithPriority got = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriorityRemoteExceptionFromService()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationExecutorsTests.java39 assertEquals(Process.getThreadPriority(Process.myTid()), in testBackgroundExecutorSettings()
50 assertEquals(Process.getThreadPriority(Process.myTid()), in testLightweightExecutorSettings()
61 assertEquals(Process.getThreadPriority(Process.myTid()), in testBlockingExecutorSettings()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/common/
DFederatedComputeExecutorsTest.java43 Process.getThreadPriority(Process.myTid()), in testBackgroundExecutorSettings()
57 Process.getThreadPriority(Process.myTid()), in testLightweightExecutorSettings()
70 Process.getThreadPriority(Process.myTid()), in testBlockingExecutorSettings()
/packages/services/Car/cpp/watchdog/server/tests/
DThreadPriorityControllerTest.cpp152 auto result = mController->getThreadPriority(TEST_PID, TEST_TID, TEST_UID, &actual); in TEST_F()
161 auto result = mController->getThreadPriority(TEST_PID + 1, TEST_TID, TEST_UID, &actual); in TEST_F()
171 auto result = mController->getThreadPriority(TEST_PID, TEST_TID, TEST_UID, &actual); in TEST_F()
182 auto result = mController->getThreadPriority(TEST_PID, TEST_TID, TEST_UID, &actual); in TEST_F()
DMockWatchdogInternalHandler.h79 MOCK_METHOD(ndk::ScopedAStatus, getThreadPriority,
DWatchdogInternalHandlerTest.cpp114 MOCK_METHOD(Result<void>, getThreadPriority,
703 EXPECT_CALL(*mThreadPriorityController, getThreadPriority(testPid, testTid, testUid, _)) in TEST_F()
712 auto status = mWatchdogInternalHandler->getThreadPriority(testPid, testTid, testUid, &actual); in TEST_F()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/os/
DCarPerformanceTestFragment.java71 b.setOnClickListener(this::getThreadPriority); in onCreateView()
96 private void getThreadPriority(View v) { in getThreadPriority() method in CarPerformanceTestFragment
104 ThreadPolicyWithPriority p = mCarPerformanceManager.getThreadPriority(); in getThreadPriority()
/packages/services/Car/car-lib/src/android/car/os/
DCarPerformanceManager.java196 public @NonNull ThreadPolicyWithPriority getThreadPriority() { in getThreadPriority() method in CarPerformanceManager
199 return mService.getThreadPriority(tid); in getThreadPriority()
DICarPerformanceService.aidl43 ThreadPolicyWithPriority getThreadPriority(int tid); in getThreadPriority() method
/packages/services/Car/cpp/watchdog/server/src/
DThreadPriorityController.h34 virtual android::base::Result<void> getThreadPriority(
60 android::base::Result<void> getThreadPriority(
DThreadPriorityController.cpp84 Result<void> ThreadPriorityController::getThreadPriority(int pid, int tid, int uid, in getThreadPriority() function in android::automotive::watchdog::ThreadPriorityController
DWatchdogInternalHandler.cpp436 ScopedAStatus WatchdogInternalHandler::getThreadPriority( in getThreadPriority() function in android::automotive::watchdog::WatchdogInternalHandler
441 if (auto result = mThreadPriorityController->getThreadPriority(pid, tid, uid, in getThreadPriority()
DWatchdogInternalHandler.h117 ndk::ScopedAStatus getThreadPriority(
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/os/
DCarPerformanceServiceUnitTest.java88 when(mMockCarWatchdogService.getThreadPriority(Binder.getCallingPid(), in testGetThreadPriority()
92 mCarPerformanceService.getThreadPriority(/* tid= */234000); in testGetThreadPriority()
/packages/services/Car/service/src/com/android/car/os/
DCarPerformanceService.java114 public ThreadPolicyWithPriority getThreadPriority(int tid) throws RemoteException { in getThreadPriority() method in CarPerformanceService
120 int[] result = mCarWatchdogService.getThreadPriority(pid, tid, uid); in getThreadPriority()
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java292 when(mFakeCarWatchdog.getThreadPriority(testPid, testTid, testUid)) in testGetThreadPriority()
295 int[] result = mCarWatchdogDaemonHelper.getThreadPriority(testPid, testTid, testUid); in testGetThreadPriority()
309 () -> mCarWatchdogDaemonHelper.getThreadPriority(testPid, testTid, testUid)); in testGetThreadPriority_DaemonVersionTooLow()
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java316 public int[] getThreadPriority(int pid, int tid, int uid) in getThreadPriority() method in CarWatchdogDaemonHelper
322 ThreadPolicyWithPriority t = daemon.getThreadPriority(pid, tid, uid); in getThreadPriority()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPriorityThreadFactoryTest.java62 mPriority = new Integer(android.os.Process.getThreadPriority(tid)); in run()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DICarWatchdog.aidl176 ThreadPolicyWithPriority getThreadPriority(int pid, int tid, int uid); in getThreadPriority() method
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DICarWatchdog.aidl47 …android.automotive.watchdog.internal.ThreadPolicyWithPriority getThreadPriority(int pid, int tid, … in getThreadPriority() method
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DICarWatchdog.aidl47 …android.automotive.watchdog.internal.ThreadPolicyWithPriority getThreadPriority(int pid, int tid, … in getThreadPriority() method
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DICarWatchdog.aidl47 …android.automotive.watchdog.internal.ThreadPolicyWithPriority getThreadPriority(int pid, int tid, … in getThreadPriority() method
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/concurrency/
DAdServicesExecutorTest.java96 Process.getThreadPriority(Process.myTid()), in runTaskAndAssertResult()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java589 public int[] getThreadPriority(int pid, int tid, int uid) throws RemoteException { in getThreadPriority() method in CarWatchdogService
591 return mCarWatchdogDaemonHelper.getThreadPriority(pid, tid, uid); in getThreadPriority()

12