Home | History | Annotate | Download | only in quickstep
      1 /*
      2  * Copyright (C) 2018 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.quickstep;
     18 
     19 import android.content.Context;
     20 import android.graphics.Matrix;
     21 import android.view.View;
     22 
     23 import com.android.launcher3.R;
     24 import com.android.launcher3.Utilities;
     25 import com.android.launcher3.util.Preconditions;
     26 import com.android.systemui.shared.recents.model.Task;
     27 import com.android.systemui.shared.recents.model.ThumbnailData;
     28 
     29 /**
     30  * Factory class to create and add an overlays on the TaskView
     31  */
     32 public class TaskOverlayFactory {
     33 
     34     private static TaskOverlayFactory sInstance;
     35 
     36     public static TaskOverlayFactory get(Context context) {
     37         Preconditions.assertUIThread();
     38         if (sInstance == null) {
     39             sInstance = Utilities.getOverrideObject(TaskOverlayFactory.class,
     40                     context.getApplicationContext(), R.string.task_overlay_factory_class);
     41         }
     42         return sInstance;
     43     }
     44 
     45     public TaskOverlay createOverlay(View thumbnailView) {
     46         return new TaskOverlay();
     47     }
     48 
     49     public static class TaskOverlay {
     50 
     51         public void setTaskInfo(Task task, ThumbnailData thumbnail, Matrix matrix) { }
     52 
     53         public void reset() { }
     54 
     55     }
     56 }
     57