Home | History | Annotate | Download | only in app

Lines Matching refs:BackgroundManager

53  * <p>An Activity should instantiate a BackgroundManager and {@link #attach}
61 * <p>When an Activity is resumed, if the BackgroundManager has not been
62 * released, the continuity service is updated from the BackgroundManager state.
63 * If the BackgroundManager was released, the BackgroundManager inherits the
76 * <p>BackgroundManager holds references to potentially large bitmap Drawables.
83 public final class BackgroundManager {
85 static final String TAG = "BackgroundManager";
92 private static final String FRAGMENT_TAG = BackgroundManager.class.getCanonicalName();
250 WeakReference<BackgroundManager> mManagerWeakReference;
252 TranslucentLayerDrawable(BackgroundManager manager, Drawable[] drawables) {
267 BackgroundManager manager = mManagerWeakReference.get();
454 private static final boolean DEBUG = BackgroundManager.DEBUG;
542 * Returns the BackgroundManager associated with the given Activity.
544 * The BackgroundManager will be created on-demand for each individual
545 * Activity. Subsequent calls will return the same BackgroundManager created
548 public static BackgroundManager getInstance(Activity activity) {
552 BackgroundManager manager = fragment.getBackgroundManager();
557 // fall through to create a BackgroundManager attach to it.
559 return new BackgroundManager(activity);
562 private BackgroundManager(Activity activity) {
584 if (DEBUG) Log.v(TAG, "BackgroundManager no window background resource!");
600 throw new IllegalStateException("Created duplicated BackgroundManager for same "
697 * Release references to Drawables and put the BackgroundManager into the
856 * BackgroundManager will show a solid color set by {@link #setColor(int)} or theme drawable