1 /* 2 * Copyright (C) 2017 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 package com.android.documentsui.testing; 17 18 import android.annotation.BoolRes; 19 20 import com.android.documentsui.base.Features; 21 22 public class TestFeatures implements Features { 23 24 public boolean archiveCreation = true; 25 public boolean commandProcessor = true; 26 public boolean contentPaging = true; 27 public boolean contentRefresh = true; 28 public boolean debugSupport = true; 29 public boolean foldersInSearchResults = true; 30 public boolean gestureScale = true; 31 public boolean launchToDocument = true; 32 public boolean notificationChannel = true; 33 public boolean remoteActions = true; 34 public boolean systemKeyboardNavigation = true; 35 public boolean virtualFilesSharing = true; 36 37 @Override isArchiveCreationEnabled()38 public boolean isArchiveCreationEnabled() { 39 return archiveCreation; 40 } 41 42 @Override isCommandInterceptorEnabled()43 public boolean isCommandInterceptorEnabled() { 44 return commandProcessor; 45 } 46 47 @Override isContentPagingEnabled()48 public boolean isContentPagingEnabled() { 49 return contentPaging; 50 } 51 52 @Override isContentRefreshEnabled()53 public boolean isContentRefreshEnabled() { 54 return contentRefresh; 55 } 56 57 @Override isDebugSupportEnabled()58 public boolean isDebugSupportEnabled() { 59 return debugSupport; 60 } 61 62 @Override isFoldersInSearchResultsEnabled()63 public boolean isFoldersInSearchResultsEnabled() { 64 return foldersInSearchResults; 65 } 66 67 @Override isGestureScaleEnabled()68 public boolean isGestureScaleEnabled() { 69 return gestureScale; 70 } 71 72 @Override isLaunchToDocumentEnabled()73 public boolean isLaunchToDocumentEnabled() { 74 return launchToDocument; 75 } 76 77 @Override isNotificationChannelEnabled()78 public boolean isNotificationChannelEnabled() { 79 return notificationChannel; 80 } 81 82 @Override isRemoteActionsEnabled()83 public boolean isRemoteActionsEnabled() { 84 return remoteActions; 85 } 86 87 @Override isSystemKeyboardNavigationEnabled()88 public boolean isSystemKeyboardNavigationEnabled() { 89 return systemKeyboardNavigation; 90 } 91 92 @Override isVirtualFilesSharingEnabled()93 public boolean isVirtualFilesSharingEnabled() { 94 return virtualFilesSharing; 95 } 96 97 @Override forceFeature(@oolRes int feature, boolean enabled)98 public void forceFeature(@BoolRes int feature, boolean enabled) { 99 throw new UnsupportedOperationException("Implement as needed."); 100 } 101 } 102