Home
last modified time | relevance | path

Searched refs:DeviceStateRequest (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateRequest.java51 public final class DeviceStateRequest { class
106 public DeviceStateRequest build() { in build()
107 return new DeviceStateRequest(mRequestedState, mFlags); in build()
121 default void onRequestActivated(@NonNull DeviceStateRequest request) {} in onRequestActivated()
129 default void onRequestSuspended(@NonNull DeviceStateRequest request) {} in onRequestSuspended()
142 default void onRequestCanceled(@NonNull DeviceStateRequest request) {} in onRequestCanceled()
149 private DeviceStateRequest(int requestedState, @RequestFlags int flags) { in DeviceStateRequest() method in DeviceStateRequest
DDeviceStateManagerGlobal.java127 public void requestState(@NonNull DeviceStateRequest request, in requestState()
128 @Nullable Executor executor, @Nullable DeviceStateRequest.Callback callback) { in requestState()
177 public void requestBaseStateOverride(@NonNull DeviceStateRequest request, in requestBaseStateOverride()
178 @Nullable Executor executor, @Nullable DeviceStateRequest.Callback callback) { in requestBaseStateOverride()
301 private IBinder findRequestTokenLocked(@NonNull DeviceStateRequest request) { in findRequestTokenLocked()
419 private final DeviceStateRequest mRequest;
421 private final DeviceStateRequest.Callback mCallback;
425 DeviceStateRequestWrapper(@NonNull DeviceStateRequest request, in DeviceStateRequestWrapper()
426 @Nullable DeviceStateRequest.Callback callback, @Nullable Executor executor) { in DeviceStateRequestWrapper()
451 @Nullable DeviceStateRequest.Callback callback, @Nullable Executor executor) { in validateRequestWrapperParameters()
DDeviceStateManager.java130 public void requestState(@NonNull DeviceStateRequest request, in requestState()
132 @Nullable DeviceStateRequest.Callback callback) { in requestState()
180 public void requestBaseStateOverride(@NonNull DeviceStateRequest request, in requestBaseStateOverride()
182 @Nullable DeviceStateRequest.Callback callback) { in requestBaseStateOverride()
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateManagerGlobalTest.java108 DeviceStateRequest request = DeviceStateRequest.newBuilder( in registerCallback()
144 DeviceStateRequest request = DeviceStateRequest.newBuilder( in submitRequest()
165 DeviceStateRequest request = DeviceStateRequest.newBuilder( in submitBaseStateOverrideRequest()
187 DeviceStateRequest request = DeviceStateRequest.newBuilder( in submitBaseAndEmulatedStateOverride()
196 DeviceStateRequest secondRequest = DeviceStateRequest.newBuilder( in submitBaseAndEmulatedStateOverride()
217 DeviceStateRequest.Callback callback = mock(TestDeviceStateRequestCallback.class); in verifyDeviceStateRequestCallbacksCalled()
219 DeviceStateRequest request = DeviceStateRequest.newBuilder( in verifyDeviceStateRequestCallbacksCalled()
233 public static class TestDeviceStateRequestCallback implements DeviceStateRequest.Callback {
235 public void onRequestActivated(DeviceStateRequest request) { } in onRequestActivated()
238 public void onRequestCanceled(DeviceStateRequest request) { } in onRequestCanceled()
[all …]
/frameworks/base/services/core/java/com/android/server/devicestate/
DOverrideRequest.java22 import android.hardware.devicestate.DeviceStateRequest;
39 @DeviceStateRequest.RequestFlags
76 @NonNull DeviceState requestedState, @DeviceStateRequest.RequestFlags int flags, in OverrideRequest()
107 @DeviceStateRequest.RequestFlags
DDeviceStateManagerShellCommand.java23 import android.hardware.devicestate.DeviceStateRequest;
39 private static DeviceStateRequest sLastRequest;
41 private static DeviceStateRequest sLastBaseStateRequest;
103 DeviceStateRequest request = DeviceStateRequest.newBuilder(requestedState).build(); in runState()
144 DeviceStateRequest request = DeviceStateRequest.newBuilder(requestedState).build(); in runBaseState()
DOverrideRequestController.java22 import android.hardware.devicestate.DeviceStateRequest;
237 & DeviceStateRequest.FLAG_CANCEL_WHEN_BASE_CHANGES) != 0) { in handleBaseStateChanged()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DRearDisplayPresentationRequestCallback.java20 import android.hardware.devicestate.DeviceStateRequest;
31 public class RearDisplayPresentationRequestCallback implements DeviceStateRequest.Callback {
54 public void onRequestActivated(@NonNull DeviceStateRequest request) { in onRequestActivated()
66 public void onRequestCanceled(@NonNull DeviceStateRequest request) { in onRequestCanceled()
DWindowAreaComponentImpl.java25 import android.hardware.devicestate.DeviceStateRequest;
89 private DeviceStateRequest mRearDisplayStateRequest;
199 mRearDisplayStateRequest = DeviceStateRequest.newBuilder(mRearDisplayState).build(); in startRearDisplaySession()
399 DeviceStateRequest concurrentDisplayStateRequest = DeviceStateRequest.newBuilder( in startRearDisplayPresentationSession()
605 private class RearDisplayStateRequestCallbackAdapter implements DeviceStateRequest.Callback {
614 public void onRequestActivated(@NonNull DeviceStateRequest request) { in onRequestActivated()
624 public void onRequestCanceled(DeviceStateRequest request) { in onRequestCanceled()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DOverrideRequestControllerTest.java29 import android.hardware.devicestate.DeviceStateRequest;
154 DeviceStateRequest.FLAG_CANCEL_WHEN_BASE_CHANGES /* flags */, in handleBaseStateChanged()
DDeviceStateManagerServiceTest.java36 import android.hardware.devicestate.DeviceStateRequest;
522 DeviceStateRequest.FLAG_CANCEL_WHEN_BASE_CHANGES); in requestState_flagCancelWhenBaseChanges()
/frameworks/base/core/api/
Dtest-current.txt1673 …ware.devicestate.DeviceStateRequest, @Nullable java.util.concurrent.Executor, @Nullable android.ha…
1674 …ware.devicestate.DeviceStateRequest, @Nullable java.util.concurrent.Executor, @Nullable android.ha…
1680 public final class DeviceStateRequest {
1683 …method @NonNull public static android.hardware.devicestate.DeviceStateRequest.Builder newBuilder(i…
1687 public static final class DeviceStateRequest.Builder {
1688 method @NonNull public android.hardware.devicestate.DeviceStateRequest build();
1689 method @NonNull public android.hardware.devicestate.DeviceStateRequest.Builder setFlags(int);
1692 public static interface DeviceStateRequest.Callback {
1693 …d public default void onRequestActivated(@NonNull android.hardware.devicestate.DeviceStateRequest);
1694 …od public default void onRequestCanceled(@NonNull android.hardware.devicestate.DeviceStateRequest);
[all …]
Dtest-lint-baseline.txt970 …droid.hardware.devicestate.DeviceStateRequest, java.util.concurrent.Executor, android.hardware.dev…
972 …droid.hardware.devicestate.DeviceStateRequest, java.util.concurrent.Executor, android.hardware.dev…