Home
last modified time | relevance | path

Searched refs:OverrideRequest (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DOverrideRequestControllerTest.java19 import static com.android.server.devicestate.OverrideRequest.OVERRIDE_REQUEST_TYPE_BASE_STATE;
20 import static com.android.server.devicestate.OverrideRequest.OVERRIDE_REQUEST_TYPE_EMULATED_STATE;
68 OverrideRequest request = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addRequest()
78 OverrideRequest firstRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addRequest_cancelExistingRequestThroughNewRequest()
85 OverrideRequest secondRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addRequest_cancelExistingRequestThroughNewRequest()
96 OverrideRequest firstRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addRequest_cancelActiveRequest()
110 OverrideRequest request = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addBaseStateRequest()
120 OverrideRequest firstRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addBaseStateRequest_cancelExistingBaseStateRequestThroughNewRequest()
127 OverrideRequest secondRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addBaseStateRequest_cancelExistingBaseStateRequestThroughNewRequest()
138 OverrideRequest firstRequest = new OverrideRequest(new Binder(), 0 /* pid */, 0 /* uid */, in addBaseStateRequest_cancelActiveBaseStateRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/devicestate/
DOverrideRequestController.java95 private OverrideRequest mRequest;
97 private OverrideRequest mBaseStateRequest;
124 void addRequest(@NonNull OverrideRequest request) { in addRequest()
125 OverrideRequest previousRequest = mRequest; in addRequest()
134 void addBaseStateRequest(@NonNull OverrideRequest request) { in addBaseStateRequest()
135 OverrideRequest previousRequest = mBaseStateRequest; in addBaseStateRequest()
148 void cancelRequest(@NonNull OverrideRequest request) { in cancelRequest()
189 @OverrideRequest.OverrideRequestType int requestType) { in hasRequest()
190 if (requestType == OverrideRequest.OVERRIDE_REQUEST_TYPE_BASE_STATE) { in hasRequest()
267 OverrideRequest overrideRequest = mRequest; in dumpInternal()
[all …]
DOverrideRequest.java33 final class OverrideRequest { class
75 OverrideRequest(IBinder token, int pid, int uid, in OverrideRequest() method in OverrideRequest
DDeviceStateManagerService.java28 import static com.android.server.devicestate.OverrideRequest.OVERRIDE_REQUEST_TYPE_BASE_STATE;
29 import static com.android.server.devicestate.OverrideRequest.OVERRIDE_REQUEST_TYPE_EMULATED_STATE;
163 private Optional<OverrideRequest> mActiveOverride = Optional.empty();
169 private Optional<OverrideRequest> mActiveBaseStateOverride = Optional.empty();
186 private OverrideRequest mRearDisplayPendingOverrideRequest;
204 OverrideRequest request = mActiveOverride.get();
644 OverrideRequest activeRequest = mActiveOverride.orElse(null); in commitPendingState()
690 private void onOverrideRequestStatusChangedLocked(@NonNull OverrideRequest request, in onOverrideRequestStatusChangedLocked()
769 private void enableBaseStateRequestLocked(OverrideRequest request) { in enableBaseStateRequestLocked()
811 OverrideRequest request = mActiveOverride.get(); in handleProcessDied()
[all …]