Merge "Add DisplayGroupListener interface" into sc-dev am: 85a4c88d38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13419647 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic063594f6f6bcdffd78f7cd08c24394db10c2294
This commit is contained in:
@@ -465,4 +465,46 @@ public abstract class DisplayManagerInternal {
|
|||||||
public interface DisplayTransactionListener {
|
public interface DisplayTransactionListener {
|
||||||
void onDisplayTransaction(Transaction t);
|
void onDisplayTransaction(Transaction t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when there are changes to {@link com.android.server.display.DisplayGroup
|
||||||
|
* DisplayGroups}.
|
||||||
|
*/
|
||||||
|
public interface DisplayGroupListener {
|
||||||
|
/**
|
||||||
|
* A new display group with the provided {@code groupId} was added.
|
||||||
|
*
|
||||||
|
* <ol>
|
||||||
|
* <li>The {@code groupId} is applied to all appropriate {@link Display displays}.
|
||||||
|
* <li>This method is called.
|
||||||
|
* <li>{@link android.hardware.display.DisplayManager.DisplayListener DisplayListeners}
|
||||||
|
* are informed of any corresponding changes.
|
||||||
|
* </ol>
|
||||||
|
*/
|
||||||
|
void onDisplayGroupAdded(int groupId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The display group with the provided {@code groupId} was removed.
|
||||||
|
*
|
||||||
|
* <ol>
|
||||||
|
* <li>All affected {@link Display displays} have their group IDs updated appropriately.
|
||||||
|
* <li>{@link android.hardware.display.DisplayManager.DisplayListener DisplayListeners}
|
||||||
|
* are informed of any corresponding changes.
|
||||||
|
* <li>This method is called.
|
||||||
|
* </ol>
|
||||||
|
*/
|
||||||
|
void onDisplayGroupRemoved(int groupId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The display group with the provided {@code groupId} has changed.
|
||||||
|
*
|
||||||
|
* <ol>
|
||||||
|
* <li>All affected {@link Display displays} have their group IDs updated appropriately.
|
||||||
|
* <li>{@link android.hardware.display.DisplayManager.DisplayListener DisplayListeners}
|
||||||
|
* are informed of any corresponding changes.
|
||||||
|
* <li>This method is called.
|
||||||
|
* </ol>
|
||||||
|
*/
|
||||||
|
void onDisplayGroupChanged(int groupId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user