Home
last modified time | relevance | path

Searched refs:ProjectionStatus (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/telecom/
DProjectionCallHandlerTest.java32 import android.car.projection.ProjectionStatus;
115 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_INACTIVE) in projectionApp_inactive_doesNotSuppress()
124 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_READY_TO_PROJECT) in projectionApp_readyToProject_doesNotSuppress()
133 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in activeApp_noProjectingDevices_doesNotSuppress()
144 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in activeApp_withProjectingDevice_suppresses()
177 ProjectionStatus.PROJECTION_STATE_ACTIVE_BACKGROUND); in activeApp_withProjectingDevice_withBackgroundStateExtra_doesNotSuppress()
189 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND); in activeApp_withProjectingDevice_withForegroundStateExtra_suppresses()
285 private ProjectionStatus.Builder projectionStatusBuilder(int state) { in projectionStatusBuilder()
286 return ProjectionStatus.builder(mContext.getPackageName(), state); in projectionStatusBuilder()
289 private ProjectionStatus.MobileDevice.Builder mobileDeviceBuilder() { in mobileDeviceBuilder()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/projection/
DProjectionFragment.java20 import android.car.projection.ProjectionStatus;
48 ProjectionStatus.PROJECTION_STATE_INACTIVE, "Inactive",
49 ProjectionStatus.PROJECTION_STATE_READY_TO_PROJECT, "Ready to project",
50 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND, "Foreground",
51 ProjectionStatus.PROJECTION_STATE_ACTIVE_BACKGROUND, "Background");
54 ProjectionStatus.PROJECTION_TRANSPORT_NONE, "None",
55 ProjectionStatus.PROJECTION_TRANSPORT_USB, "USB",
56 ProjectionStatus.PROJECTION_TRANSPORT_WIFI, "WiFi");
63 List<ProjectionStatus> details) { in onProjectionStatusChanged()
67 for (ProjectionStatus detail : details) { in onProjectionStatusChanged()
[all …]
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DProjectionStateListener.java26 import android.car.projection.ProjectionStatus;
53 private int mProjectionState = ProjectionStatus.PROJECTION_STATE_INACTIVE;
54 private List<ProjectionStatus> mProjectionDetails = Collections.emptyList();
77 mProjectionState = ProjectionStatus.PROJECTION_STATE_INACTIVE; in destroy()
97 for (ProjectionStatus status : mProjectionDetails) { in isProjectionInActiveForeground()
104 for (ProjectionStatus.MobileDevice device : status.getConnectedMobileDevices()) { in isProjectionInActiveForeground()
113 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in isProjectionInActiveForeground()
114 != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in isProjectionInActiveForeground()
148 return mProjectionState == ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND; in isProjectionInActiveForeground()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DProjectionCallHandler.java21 import android.car.projection.ProjectionStatus;
55 private int mProjectionState = ProjectionStatus.PROJECTION_STATE_INACTIVE;
56 private List<ProjectionStatus> mProjectionDetails = Collections.emptyList();
94 int state, String packageName, List<ProjectionStatus> details) { in onProjectionStatusChanged()
102 if (mProjectionState != ProjectionStatus.PROJECTION_STATE_ACTIVE_BACKGROUND in onTelecomCallAdded()
103 && mProjectionState != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in onTelecomCallAdded()
150 for (ProjectionStatus status : mProjectionDetails) { in shouldSuppressCallUiForBluetoothDevice()
163 for (ProjectionStatus.MobileDevice device : status.getConnectedMobileDevices()) { in shouldSuppressCallUiForBluetoothDevice()
172 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in shouldSuppressCallUiForBluetoothDevice()
173 != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in shouldSuppressCallUiForBluetoothDevice()
/packages/services/Car/car-lib/src/android/car/projection/
DProjectionStatus.java42 public final class ProjectionStatus implements Parcelable { class
95 public static final Creator<ProjectionStatus> CREATOR = new Creator<ProjectionStatus>() {
97 public ProjectionStatus createFromParcel(Parcel source) {
98 return new ProjectionStatus(source);
102 public ProjectionStatus[] newArray(int size) {
103 return new ProjectionStatus[size];
107 private ProjectionStatus(Builder builder) { in ProjectionStatus() method in ProjectionStatus
115 private ProjectionStatus(Parcel source) { in ProjectionStatus() method in ProjectionStatus
239 public ProjectionStatus build() { in build()
240 return new ProjectionStatus(this); in build()
DProjectionStatus.aidl19 parcelable ProjectionStatus;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java19 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND;
20 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_INACTIVE;
21 import static android.car.projection.ProjectionStatus.PROJECTION_TRANSPORT_USB;
22 import static android.car.projection.ProjectionStatus.PROJECTION_TRANSPORT_WIFI;
39 import android.car.projection.ProjectionStatus;
40 import android.car.projection.ProjectionStatus.MobileDevice;
114 String activeProjectionPackageName, List<ProjectionStatus> details) { in updateProjectionStatus_defaultState()
128 final ProjectionStatus status = createProjectionStatus(); in updateProjectionStatus_subscribeAfterUpdate()
136 String activeProjectionPackageName, List<ProjectionStatus> details) { in updateProjectionStatus_subscribeAfterUpdate()
141 ProjectionStatus status = details.get(0); in updateProjectionStatus_subscribeAfterUpdate()
[all …]
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DProjectionContextualInfoLiveData.java4 import android.car.projection.ProjectionStatus;
45 int state, @Nullable String packageName, @NonNull List<ProjectionStatus> details) { in onProjectionStatusChanged()
49 if (state == ProjectionStatus.PROJECTION_STATE_INACTIVE || packageName == null) { in onProjectionStatusChanged()
75 String packageName, List<ProjectionStatus> details) { in getStatusMessage()
76 for (ProjectionStatus status : details) { in getStatusMessage()
86 private String getStatusMessage(ProjectionStatus status) { in getStatusMessage()
99 for (ProjectionStatus.MobileDevice device : status.getConnectedMobileDevices()) { in getStatusMessage()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java26 import android.car.projection.ProjectionStatus;
58 private Map<IBinder, ProjectionStatus> mProjectionStatusMap = new HashMap<>();
59 private ProjectionStatus mCurrentProjectionStatus = ProjectionStatus.builder(
60 "", ProjectionStatus.PROJECTION_STATE_INACTIVE).build();
150 public void updateProjectionStatus(ProjectionStatus status, IBinder token) in updateProjectionStatus()
158 private void notifyStatusListeners(ProjectionStatus status, in notifyStatusListeners()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java27 import android.car.projection.ProjectionStatus;
28 import android.car.projection.ProjectionStatus.ProjectionState;
239 @NonNull List<ProjectionStatus> details); in onProjectionStatusChanged()
612 public void updateProjectionStatus(@NonNull ProjectionStatus status) { in updateProjectionStatus()
682 String packageName, List<ProjectionStatus> details) { in handleProjectionStatusChanged()
855 private List<ProjectionStatus> mDetails = new ArrayList<>(0);
866 List<ProjectionStatus> details) { in onProjectionStatusChanged()
DICarProjectionStatusListener.aidl19 import android.car.projection.ProjectionStatus;
29 in List<ProjectionStatus> details) = 0; in onProjectionStatusChanged()
DICarProjection.aidl20 import android.car.projection.ProjectionStatus;
78 void updateProjectionStatus(in ProjectionStatus status, in IBinder token) = 8; in updateProjectionStatus()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java19 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_INACTIVE;
20 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_READY_TO_PROJECT;
39 import android.car.projection.ProjectionStatus;
40 import android.car.projection.ProjectionStatus.ProjectionState;
395 public void updateProjectionStatus(ProjectionStatus status, IBinder token) in updateProjectionStatus()
488 List<ProjectionStatus> statuses = new ArrayList<>(); in notifyProjectionStatusChanged()
1054 private ProjectionStatus mProjectionStatus;
/packages/services/Car/car-lib/api/
Dsystem-current.txt98 …R_PROJECTION) public void updateProjectionStatus(@NonNull android.car.projection.ProjectionStatus);
132 …usChanged(int, @Nullable String, @NonNull java.util.List<android.car.projection.ProjectionStatus>);
910 public final class ProjectionStatus implements android.os.Parcelable {
911 …method @NonNull public static android.car.projection.ProjectionStatus.Builder builder(String, int);
913 …method @NonNull public java.util.List<android.car.projection.ProjectionStatus.MobileDevice> getCon…
920 …field public static final android.os.Parcelable.Creator<android.car.projection.ProjectionStatus> C…
930 public static final class ProjectionStatus.Builder {
931 …nNull public android.car.projection.ProjectionStatus.Builder addMobileDevice(android.car.projectio…
932 method public android.car.projection.ProjectionStatus build();
933 …method @NonNull public android.car.projection.ProjectionStatus.Builder setExtras(android.os.Bundle…
[all …]
Dsystem-lint-baseline.txt436 MissingNullability: android.car.projection.ProjectionStatus#CREATOR:
437 Missing nullability on field `CREATOR` in class `class android.car.projection.ProjectionStatus`
438 MissingNullability: android.car.projection.ProjectionStatus#builder(String, int) parameter #0:
440 MissingNullability: android.car.projection.ProjectionStatus#writeToParcel(android.os.Parcel, int) p…
442 …Nullability: android.car.projection.ProjectionStatus.Builder#addMobileDevice(android.car.projectio…
444 MissingNullability: android.car.projection.ProjectionStatus.Builder#build():
446 MissingNullability: android.car.projection.ProjectionStatus.Builder#setExtras(android.os.Bundle) pa…
448 MissingNullability: android.car.projection.ProjectionStatus.MobileDevice#CREATOR:
449 …Missing nullability on field `CREATOR` in class `class android.car.projection.ProjectionStatus.Mob…
450 MissingNullability: android.car.projection.ProjectionStatus.MobileDevice#builder(int, String) param…
[all …]