Home
last modified time | relevance | path

Searched refs:ProcessObserverCallback (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java23 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
58 void registerProcessObserverCallback(ProcessObserverCallback callback); in registerProcessObserverCallback()
59 void unregisterProcessObserverCallback(ProcessObserverCallback callback); in unregisterProcessObserverCallback()
68 private final ProcessObserverCallback mProcessObserver = new ProcessObserver();
85 private final List<ProcessObserverCallback> mCustomProcessObservers = new ArrayList<>();
172 public void registerProcessObserverCallback(ProcessObserverCallback callback) { in registerProcessObserverCallback()
179 public void unregisterProcessObserverCallback(ProcessObserverCallback callback) { in unregisterProcessObserverCallback()
188 ProcessObserverCallback callback = mCustomProcessObservers.get(i); in handleForegroundActivitiesChanged()
207 ProcessObserverCallback callback = mCustomProcessObservers.get(i); in handleProcessDied()
314 private class ProcessObserver extends ProcessObserverCallback {
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemActivityMonitoringServiceUnitTest.java27 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
207 ProcessObserverCallback customCallback = mock(ProcessObserverCallback.class); in testRegisterProcessRunningStateCallback()
210 ProcessObserverCallback cb = verifyAndGetProcessObserverCallback(); in testRegisterProcessRunningStateCallback()
243 ProcessObserverCallback customCallback = mock(ProcessObserverCallback.class); in testUnregisterProcessRunningStateCallback()
247 ProcessObserverCallback cb = verifyAndGetProcessObserverCallback(); in testUnregisterProcessRunningStateCallback()
269 private ProcessObserverCallback verifyAndGetProcessObserverCallback() { in verifyAndGetProcessObserverCallback()
270 ArgumentCaptor<ProcessObserverCallback> cbCaptor = ArgumentCaptor.forClass( in verifyAndGetProcessObserverCallback()
271 ProcessObserverCallback.class); in verifyAndGetProcessObserverCallback()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DActivityManagerHelper.java237 public abstract static class ProcessObserverCallback { class in ActivityManagerHelper
248 ProcessObserverCallback.this.onForegroundActivitiesChanged(
266 ProcessObserverCallback.this.onProcessDied(pid, uid);
275 public static void registerProcessObserverCallback(ProcessObserverCallback callback) { in registerProcessObserverCallback()
288 public static void unregisterProcessObserverCallback(ProcessObserverCallback callback) { in unregisterProcessObserverCallback()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java61 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
500 ProcessObserverCallback[] processObserver = new ProcessObserverCallback[1]; in testAppStateChanged()
503 processObserver[0] = (ProcessObserverCallback) args[0]; in testAppStateChanged()
561 ProcessObserverCallback[] processObserver = new ProcessObserverCallback[1]; in testProcessObserverCallbackInvokedBeforeOccupantZoneCallback()
564 processObserver[0] = (ProcessObserverCallback) args[0]; in testProcessObserverCallbackInvokedBeforeOccupantZoneCallback()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_built_in_api_list.txt106 method TIRAMISU_0 void registerProcessObserverCallback(ProcessObserverCallback callback);
107 method TIRAMISU_0 void unregisterProcessObserverCallback(ProcessObserverCallback callback);
109 class ActivityManagerHelper.ProcessObserverCallback package android.car.builtin.app
114 ProcessObserverCallback.this.onForegroundActivitiesChanged(pid, uid, foregroundActivities);
124 ProcessObserverCallback.this.onProcessDied(pid, uid);
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java33 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
205 private final ProcessObserverCallback mProcessObserver = new ProcessObserverCallback() {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java505 any(ActivityManagerHelper.ProcessObserverCallback.class))); in testStopFixedActivityMode()
509 any(ActivityManagerHelper.ProcessObserverCallback.class))); in testStopFixedActivityMode()
516 any(ActivityManagerHelper.ProcessObserverCallback.class)), never()); in testStopFixedActivityMode_invalidDisplayId()
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java50 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
174 private final ProcessObserverCallback mProcessObserver = new ProcessObserver();
221 private final class ProcessObserver extends ProcessObserverCallback {
/packages/services/Car/car-builtin-lib/api/
Dmodule-lib-current.txt41 …sterProcessObserverCallback(android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback);
51 …sterProcessObserverCallback(android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback);
56 public abstract static class ActivityManagerHelper.ProcessObserverCallback {
57 ctor public ActivityManagerHelper.ProcessObserverCallback();