Skip to content

Commit 879392f

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Unhide new animation runnable API on View."
2 parents f57eb43 + 4d6a82d commit 879392f

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

api/current.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23534,6 +23534,10 @@ package android.view {
2353423534
method public void postInvalidate(int, int, int, int);
2353523535
method public void postInvalidateDelayed(long);
2353623536
method public void postInvalidateDelayed(long, int, int, int, int);
23537+
method public void postInvalidateOnAnimation();
23538+
method public void postInvalidateOnAnimation(int, int, int, int);
23539+
method public void postOnAnimation(java.lang.Runnable);
23540+
method public void postOnAnimationDelayed(java.lang.Runnable, long);
2353723541
method public void refreshDrawableState();
2353823542
method public boolean removeCallbacks(java.lang.Runnable);
2353923543
method public void removeOnAttachStateChangeListener(android.view.View.OnAttachStateChangeListener);

core/java/android/view/View.java

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9212,6 +9212,9 @@ public ViewRootImpl getViewRootImpl() {
92129212
* @return Returns true if the Runnable was successfully placed in to the
92139213
* message queue. Returns false on failure, usually because the
92149214
* looper processing the message queue is exiting.
9215+
*
9216+
* @see #postDelayed
9217+
* @see #removeCallbacks
92159218
*/
92169219
public boolean post(Runnable action) {
92179220
final AttachInfo attachInfo = mAttachInfo;
@@ -9241,6 +9244,9 @@ public boolean post(Runnable action) {
92419244
* result of true does not mean the Runnable will be processed --
92429245
* if the looper is quit before the delivery time of the message
92439246
* occurs then the message will be dropped.
9247+
*
9248+
* @see #post
9249+
* @see #removeCallbacks
92449250
*/
92459251
public boolean postDelayed(Runnable action, long delayMillis) {
92469252
final AttachInfo attachInfo = mAttachInfo;
@@ -9261,7 +9267,8 @@ public boolean postDelayed(Runnable action, long delayMillis) {
92619267
*
92629268
* @param action The Runnable that will be executed.
92639269
*
9264-
* @hide
9270+
* @see #postOnAnimationDelayed
9271+
* @see #removeCallbacks
92659272
*/
92669273
public void postOnAnimation(Runnable action) {
92679274
final AttachInfo attachInfo = mAttachInfo;
@@ -9286,7 +9293,8 @@ public void postOnAnimation(Runnable action) {
92869293
* @param delayMillis The delay (in milliseconds) until the Runnable
92879294
* will be executed.
92889295
*
9289-
* @hide
9296+
* @see #postOnAnimation
9297+
* @see #removeCallbacks
92909298
*/
92919299
public void postOnAnimationDelayed(Runnable action, long delayMillis) {
92929300
final AttachInfo attachInfo = mAttachInfo;
@@ -9311,6 +9319,11 @@ public void postOnAnimationDelayed(Runnable action, long delayMillis) {
93119319
* false otherwise. When the returned value is true, the Runnable
93129320
* may or may not have been actually removed from the message queue
93139321
* (for instance, if the Runnable was not in the queue already.)
9322+
*
9323+
* @see #post
9324+
* @see #postDelayed
9325+
* @see #postOnAnimation
9326+
* @see #postOnAnimationDelayed
93149327
*/
93159328
public boolean removeCallbacks(Runnable action) {
93169329
if (action != null) {
@@ -9335,6 +9348,7 @@ public boolean removeCallbacks(Runnable action) {
93359348
* only when this View is attached to a window.</p>
93369349
*
93379350
* @see #invalidate()
9351+
* @see #postInvalidateDelayed(long)
93389352
*/
93399353
public void postInvalidate() {
93409354
postInvalidateDelayed(0);
@@ -9354,6 +9368,7 @@ public void postInvalidate() {
93549368
*
93559369
* @see #invalidate(int, int, int, int)
93569370
* @see #invalidate(Rect)
9371+
* @see #postInvalidateDelayed(long, int, int, int, int)
93579372
*/
93589373
public void postInvalidate(int left, int top, int right, int bottom) {
93599374
postInvalidateDelayed(0, left, top, right, bottom);
@@ -9368,6 +9383,9 @@ public void postInvalidate(int left, int top, int right, int bottom) {
93689383
*
93699384
* @param delayMilliseconds the duration in milliseconds to delay the
93709385
* invalidation by
9386+
*
9387+
* @see #invalidate()
9388+
* @see #postInvalidate()
93719389
*/
93729390
public void postInvalidateDelayed(long delayMilliseconds) {
93739391
// We try only with the AttachInfo because there's no point in invalidating
@@ -9391,6 +9409,10 @@ public void postInvalidateDelayed(long delayMilliseconds) {
93919409
* @param top The top coordinate of the rectangle to invalidate.
93929410
* @param right The right coordinate of the rectangle to invalidate.
93939411
* @param bottom The bottom coordinate of the rectangle to invalidate.
9412+
*
9413+
* @see #invalidate(int, int, int, int)
9414+
* @see #invalidate(Rect)
9415+
* @see #postInvalidate(int, int, int, int)
93949416
*/
93959417
public void postInvalidateDelayed(long delayMilliseconds, int left, int top,
93969418
int right, int bottom) {
@@ -9417,7 +9439,7 @@ public void postInvalidateDelayed(long delayMilliseconds, int left, int top,
94179439
* <p>This method can be invoked from outside of the UI thread
94189440
* only when this View is attached to a window.</p>
94199441
*
9420-
* @hide
9442+
* @see #invalidate()
94219443
*/
94229444
public void postInvalidateOnAnimation() {
94239445
// We try only with the AttachInfo because there's no point in invalidating
@@ -9440,7 +9462,8 @@ public void postInvalidateOnAnimation() {
94409462
* @param right The right coordinate of the rectangle to invalidate.
94419463
* @param bottom The bottom coordinate of the rectangle to invalidate.
94429464
*
9443-
* @hide
9465+
* @see #invalidate(int, int, int, int)
9466+
* @see #invalidate(Rect)
94449467
*/
94459468
public void postInvalidateOnAnimation(int left, int top, int right, int bottom) {
94469469
// We try only with the AttachInfo because there's no point in invalidating

0 commit comments

Comments
 (0)