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 inspector = true; 32 public boolean jobProgressDialog = false; 33 public boolean launchToDocument = true; 34 public boolean notificationChannel = true; 35 public boolean overwriteConfirmation = true; 36 public boolean remoteActions = true; 37 public boolean systemKeyboardNavigation = true; 38 public boolean virtualFilesSharing = true; 39 40 @Override 41 public boolean isArchiveCreationEnabled() { 42 return archiveCreation; 43 } 44 45 @Override 46 public boolean isCommandInterceptorEnabled() { 47 return commandProcessor; 48 } 49 50 @Override 51 public boolean isContentPagingEnabled() { 52 return contentPaging; 53 } 54 55 @Override 56 public boolean isContentRefreshEnabled() { 57 return contentRefresh; 58 } 59 60 @Override 61 public boolean isDebugSupportEnabled() { 62 return debugSupport; 63 } 64 65 @Override 66 public boolean isFoldersInSearchResultsEnabled() { 67 return foldersInSearchResults; 68 } 69 70 @Override 71 public boolean isJobProgressDialogEnabled() { 72 return jobProgressDialog; 73 } 74 75 @Override 76 public boolean isGestureScaleEnabled() { 77 return gestureScale; 78 } 79 80 @Override 81 public boolean isInspectorEnabled() { 82 return inspector; 83 } 84 85 @Override 86 public boolean isLaunchToDocumentEnabled() { 87 return launchToDocument; 88 } 89 90 @Override 91 public boolean isNotificationChannelEnabled() { 92 return notificationChannel; 93 } 94 95 @Override 96 public boolean isOverwriteConfirmationEnabled() { 97 return overwriteConfirmation; 98 } 99 100 @Override 101 public boolean isRemoteActionsEnabled() { 102 return remoteActions; 103 } 104 105 @Override 106 public boolean isSystemKeyboardNavigationEnabled() { 107 return systemKeyboardNavigation; 108 } 109 110 @Override 111 public boolean isVirtualFilesSharingEnabled() { 112 return virtualFilesSharing; 113 } 114 115 @Override 116 public void forceFeature(@BoolRes int feature, boolean enabled) { 117 throw new UnsupportedOperationException("Implement as needed."); 118 } 119 } 120