blob: 00e2404e931fcc0c4750f5824210c2498a1d8e38 [file] [log] [blame]
Jason Monk9abca5e2016-11-11 16:18:14 -05001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
5 * except in compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11 * KIND, either express or implied. See the License for the specific language governing
12 * permissions and limitations under the License.
13 */
14
15package com.android.systemui.utils.leaks;
16
17import com.android.systemui.statusbar.policy.RotationLockController;
18import com.android.systemui.statusbar.policy.RotationLockController.RotationLockControllerCallback;
19
20public class FakeRotationLockController extends BaseLeakChecker<RotationLockControllerCallback>
21 implements RotationLockController {
22 public FakeRotationLockController(LeakCheckedTest test) {
23 super(test, "rotation");
24 }
25
26 @Override
27 public void setListening(boolean listening) {
28
29 }
30
31 @Override
32 public int getRotationLockOrientation() {
33 return 0;
34 }
35
36 @Override
37 public boolean isRotationLockAffordanceVisible() {
38 return false;
39 }
40
41 @Override
42 public boolean isRotationLocked() {
43 return false;
44 }
45
46 @Override
47 public void setRotationLocked(boolean locked) {
48
49 }
50}