Lines Matching refs:handler

35  * custom handler to ensure that property changes happen on the UI thread.</p>
542 * This custom, static handler handles the timing pulse that is shared by
548 * The handler uses the Choreographer for executing periodic callbacks.
630 // tells the handler whether it should now be ended
953 AnimationHandler handler = getOrCreateAnimationHandler();
955 || handler.mPendingAnimations.contains(this)
956 || handler.mDelayedAnims.contains(this)) {
969 endAnimation(handler);
975 AnimationHandler handler = getOrCreateAnimationHandler();
976 if (!handler.mAnimations.contains(this) && !handler.mPendingAnimations.contains(this)) {
979 startAnimation(handler);
985 endAnimation(handler);
1041 private void endAnimation(AnimationHandler handler) {
1042 handler.mAnimations.remove(this);
1043 handler.mPendingAnimations.remove(this);
1044 handler.mDelayedAnims.remove(this);
1073 private void startAnimation(AnimationHandler handler) {
1079 handler.mAnimations.add(this);
1136 * currentTime parameter is the timing pulse sent by the handler, used to calculate the
1142 * @param currentTime The current time, as tracked by the static timing handler
1312 AnimationHandler handler = sAnimationHandler.get();
1313 return handler != null ? handler.mAnimations.size() : 0;
1323 AnimationHandler handler = sAnimationHandler.get();
1324 if (handler != null) {
1325 handler.mAnimations.clear();
1326 handler.mPendingAnimations.clear();
1327 handler.mDelayedAnims.clear();
1332 AnimationHandler handler = sAnimationHandler.get();
1333 if (handler == null) {
1334 handler = new AnimationHandler();
1335 sAnimationHandler.set(handler);
1337 return handler;