Loading core/java/android/provider/TEST_MAPPING +11 −7 Original line number Diff line number Diff line Loading @@ -4,17 +4,21 @@ "name": "CtsProviderTestCases", "options": [ { "include-annotation": "android.platform.test.annotations.Presubmit" "exclude-filter": "android.provider.cts.SettingsPanelTest" } ] }, { "name": "SettingsProviderTest", "options": [ "name": "CalendarProviderTests" }, { "include-annotation": "android.platform.test.annotations.Presubmit" } ] "name": "ContactsProviderTests" }, { "name": "MediaProviderTests" }, { "name": "SettingsProviderTest" } ] } packages/SettingsProvider/test/src/com/android/providers/settings/SettingsBackupAgentTest.java +14 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.database.Cursor; import android.database.MatrixCursor; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.test.mock.MockContentProvider; import android.test.mock.MockContentResolver; Loading @@ -47,6 +48,7 @@ import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; Loading Loading @@ -270,5 +272,17 @@ public class SettingsBackupAgentTest extends BaseSettingsProviderTest { } return result; } @Override public Bundle call(String method, String request, Bundle args) { for (Object[] resultRow : RESULT_ROWS) { if (Objects.equals(request, resultRow[0])) { final Bundle res = new Bundle(); res.putString("value", String.valueOf(resultRow[1])); return res; } } return Bundle.EMPTY; } } } packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.UserHandle; import android.provider.Settings; import android.util.Log; import org.junit.Ignore; import org.junit.Test; import java.util.concurrent.atomic.AtomicBoolean; Loading Loading @@ -693,6 +694,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationModeChanges_viaFrontEndApi() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading Loading @@ -735,6 +737,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowed_disableProviders() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading Loading @@ -766,6 +769,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowed_enableAndDisable() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading @@ -788,6 +792,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowedLocked_invalidInput() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading Loading
core/java/android/provider/TEST_MAPPING +11 −7 Original line number Diff line number Diff line Loading @@ -4,17 +4,21 @@ "name": "CtsProviderTestCases", "options": [ { "include-annotation": "android.platform.test.annotations.Presubmit" "exclude-filter": "android.provider.cts.SettingsPanelTest" } ] }, { "name": "SettingsProviderTest", "options": [ "name": "CalendarProviderTests" }, { "include-annotation": "android.platform.test.annotations.Presubmit" } ] "name": "ContactsProviderTests" }, { "name": "MediaProviderTests" }, { "name": "SettingsProviderTest" } ] }
packages/SettingsProvider/test/src/com/android/providers/settings/SettingsBackupAgentTest.java +14 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.database.Cursor; import android.database.MatrixCursor; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.test.mock.MockContentProvider; import android.test.mock.MockContentResolver; Loading @@ -47,6 +48,7 @@ import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; Loading Loading @@ -270,5 +272,17 @@ public class SettingsBackupAgentTest extends BaseSettingsProviderTest { } return result; } @Override public Bundle call(String method, String request, Bundle args) { for (Object[] resultRow : RESULT_ROWS) { if (Objects.equals(request, resultRow[0])) { final Bundle res = new Bundle(); res.putString("value", String.valueOf(resultRow[1])); return res; } } return Bundle.EMPTY; } } }
packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.UserHandle; import android.provider.Settings; import android.util.Log; import org.junit.Ignore; import org.junit.Test; import java.util.concurrent.atomic.AtomicBoolean; Loading Loading @@ -693,6 +694,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationModeChanges_viaFrontEndApi() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading Loading @@ -735,6 +737,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowed_disableProviders() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading Loading @@ -766,6 +769,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowed_enableAndDisable() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading @@ -788,6 +792,7 @@ public class SettingsProviderTest extends BaseSettingsProviderTest { } @Test @Ignore("b/140250974") public void testLocationProvidersAllowedLocked_invalidInput() throws Exception { setStringViaFrontEndApiSetting( SETTING_TYPE_SECURE, Loading