So that EncryptionInterstitial is shown as part of the flow Test: cd tests/robotests && mma Bug: 65192141 Change-Id: I13e8b9059aae39cef2a8509f9f0eee1cd0808220
30 lines
965 B
Java
30 lines
965 B
Java
/*
|
|
* Copyright (C) 2017 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.android.settings.password;
|
|
|
|
import android.os.storage.StorageManager;
|
|
|
|
/**
|
|
* Wrapper class to allow Robolectric to shadow methods introduced in newer API
|
|
*/
|
|
public class StorageManagerWrapper {
|
|
|
|
public static boolean isFileEncryptedNativeOrEmulated() {
|
|
return StorageManager.isFileEncryptedNativeOrEmulated();
|
|
}
|
|
}
|