If the ramping ringer adaptive volume is enabled then do not show
this setting. It will be injected from settings intelligence with additional user options Test: Build locally and validated Change-Id: I6f79eea460e86d643d92c04e8ea126b99b9bed8b
This commit is contained in:
committed by
Yiwen Chen
parent
2a736c6ed3
commit
eb1aa063ed
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (C) 2018 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.testutils.shadow;
|
||||
|
||||
import org.robolectric.annotation.Config;
|
||||
import org.robolectric.annotation.Implementation;
|
||||
import org.robolectric.annotation.Implements;
|
||||
|
||||
@Implements(android.provider.DeviceConfig.class)
|
||||
public class ShadowDeviceConfig {
|
||||
|
||||
private static String configValue;
|
||||
|
||||
@Implementation
|
||||
protected static boolean setProperty(
|
||||
String namespace, String name, String value, boolean makeDefault) {
|
||||
configValue = value;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected static String getProperty(String ns, String key) { return configValue; }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user