Home | History | Annotate | Download | only in hardware
      1 /*
      2  * Copyright (C) 2016 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.internal.hardware;
     18 
     19 import android.content.Context;
     20 
     21 /**
     22  * Fake controller to make robolectric test compile. Should be removed when Robolectric supports
     23  * API 25.
     24  */
     25 public class AmbientDisplayConfiguration {
     26 
     27     public AmbientDisplayConfiguration(Context context) {}
     28 
     29     public boolean pulseOnPickupAvailable() {
     30         return false;
     31     }
     32 
     33     public boolean pulseOnPickupEnabled(int user) {
     34         return true;
     35     }
     36 
     37     public boolean pulseOnPickupCanBeModified(int user) {
     38         return true;
     39     }
     40 
     41     public boolean pulseOnDoubleTapAvailable() {
     42         return true;
     43     }
     44 
     45     public boolean pulseOnDoubleTapEnabled(int user) {
     46         return true;
     47     }
     48 
     49     public boolean pulseOnNotificationEnabled(int user) {
     50         return true;
     51     }
     52 
     53     public boolean pulseOnNotificationAvailable() {
     54         return true;
     55     }
     56 
     57     public boolean alwaysOnEnabled(int user) {
     58         return true;
     59     }
     60 
     61     public boolean alwaysOnAvailable() {
     62         return true;
     63     }
     64 
     65     public boolean alwaysOnAvailableForUser(int user) {
     66         return true;
     67     }
     68 
     69     public boolean available() {
     70         return true;
     71     }
     72 
     73     public boolean enabled(int user) {
     74         return true;
     75     }
     76 }
     77