/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/telecom/ |
D | ProjectionCallHandlerTest.java | 33 import android.car.projection.ProjectionStatus; 113 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_INACTIVE) in projectionApp_inactive_doesNotSuppress() 122 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_READY_TO_PROJECT) in projectionApp_readyToProject_doesNotSuppress() 131 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in activeApp_noProjectingDevices_doesNotSuppress() 142 projectionStatusBuilder(ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in activeApp_withProjectingDevice_suppresses() 175 ProjectionStatus.PROJECTION_STATE_ACTIVE_BACKGROUND); in activeApp_withProjectingDevice_withBackgroundStateExtra_doesNotSuppress() 187 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND); in activeApp_withProjectingDevice_withForegroundStateExtra_suppresses() 283 private ProjectionStatus.Builder projectionStatusBuilder(int state) { in projectionStatusBuilder() 284 return ProjectionStatus.builder(mContext.getPackageName(), state); in projectionStatusBuilder() 287 private ProjectionStatus.MobileDevice.Builder mobileDeviceBuilder() { in mobileDeviceBuilder() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/projection/ |
D | ProjectionFragment.java | 20 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/ |
D | ProjectionStateListener.java | 26 import android.car.projection.ProjectionStatus; 47 private int mProjectionState = ProjectionStatus.PROJECTION_STATE_INACTIVE; 48 private List<ProjectionStatus> mProjectionDetails = Collections.emptyList(); 68 List<ProjectionStatus> details) { in onProjectionStatusChanged() 90 for (ProjectionStatus status : mProjectionDetails) { in isProjectionInActiveForeground() 97 for (ProjectionStatus.MobileDevice device : status.getConnectedMobileDevices()) { in isProjectionInActiveForeground() 106 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in isProjectionInActiveForeground() 107 != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in isProjectionInActiveForeground() 141 return mProjectionState == ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND; in isProjectionInActiveForeground()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | ProjectionCallHandler.java | 22 import android.car.projection.ProjectionStatus; 51 private int mProjectionState = ProjectionStatus.PROJECTION_STATE_INACTIVE; 52 private List<ProjectionStatus> mProjectionDetails = Collections.emptyList(); 76 int state, String packageName, List<ProjectionStatus> details) { in onProjectionStatusChanged() 84 if (mProjectionState != ProjectionStatus.PROJECTION_STATE_ACTIVE_BACKGROUND in onTelecomCallAdded() 85 && mProjectionState != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in onTelecomCallAdded() 132 for (ProjectionStatus status : mProjectionDetails) { in shouldSuppressCallUiForBluetoothDevice() 145 for (ProjectionStatus.MobileDevice device : status.getConnectedMobileDevices()) { in shouldSuppressCallUiForBluetoothDevice() 154 ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) in shouldSuppressCallUiForBluetoothDevice() 155 != ProjectionStatus.PROJECTION_STATE_ACTIVE_FOREGROUND) { in shouldSuppressCallUiForBluetoothDevice()
|
/packages/services/Car/car-lib/src/android/car/projection/ |
D | ProjectionStatus.java | 42 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()
|
D | ProjectionStatus.aidl | 19 parcelable ProjectionStatus;
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarProjectionServiceTest.java | 19 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; 120 String activeProjectionPackageName, List<ProjectionStatus> details) { in updateProjectionStatus_defaultState() 134 final ProjectionStatus status = createProjectionStatus(); in updateProjectionStatus_subscribeAfterUpdate() 142 String activeProjectionPackageName, List<ProjectionStatus> details) { in updateProjectionStatus_subscribeAfterUpdate() 147 ProjectionStatus status = details.get(0); in updateProjectionStatus_subscribeAfterUpdate() [all …]
|
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/ |
D | ProjectionContextualInfoLiveData.java | 4 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/ |
D | FakeCarProjectionService.java | 26 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/ |
D | CarProjectionManager.java | 27 import android.car.projection.ProjectionStatus; 28 import android.car.projection.ProjectionStatus.ProjectionState; 237 @NonNull List<ProjectionStatus> details); in onProjectionStatusChanged() 610 public void updateProjectionStatus(@NonNull ProjectionStatus status) { in updateProjectionStatus() 680 String packageName, List<ProjectionStatus> details) { in handleProjectionStatusChanged() 828 private List<ProjectionStatus> mDetails = new ArrayList<>(0); 839 List<ProjectionStatus> details) { in onProjectionStatusChanged()
|
D | ICarProjectionStatusListener.aidl | 19 import android.car.projection.ProjectionStatus; 29 in List<ProjectionStatus> details) = 0; in onProjectionStatusChanged()
|
D | ICarProjection.aidl | 20 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/ |
D | CarProjectionService.java | 19 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_INACTIVE; 20 import static android.car.projection.ProjectionStatus.PROJECTION_STATE_READY_TO_PROJECT; 41 import android.car.projection.ProjectionStatus; 42 import android.car.projection.ProjectionStatus.ProjectionState; 396 public void updateProjectionStatus(ProjectionStatus status, IBinder token) in updateProjectionStatus() 489 List<ProjectionStatus> statuses = new ArrayList<>(); in notifyProjectionStatusChanged() 1054 private ProjectionStatus mProjectionStatus;
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 72 …R_PROJECTION) public void updateProjectionStatus(@NonNull android.car.projection.ProjectionStatus); 105 …usChanged(int, @Nullable String, @NonNull java.util.List<android.car.projection.ProjectionStatus>); 820 public final class ProjectionStatus implements android.os.Parcelable { 821 …method @NonNull public static android.car.projection.ProjectionStatus.Builder builder(String, int); 823 …method @NonNull public java.util.List<android.car.projection.ProjectionStatus.MobileDevice> getCon… 830 …field public static final android.os.Parcelable.Creator<android.car.projection.ProjectionStatus> C… 840 public static final class ProjectionStatus.Builder { 841 …nNull public android.car.projection.ProjectionStatus.Builder addMobileDevice(android.car.projectio… 842 method public android.car.projection.ProjectionStatus build(); 843 …method @NonNull public android.car.projection.ProjectionStatus.Builder setExtras(android.os.Bundle… [all …]
|