Merge "Create a new Open supported links page"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b2fe109956
@@ -18,9 +18,11 @@ package com.android.settings.testutils.shadow;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.hardware.fingerprint.FingerprintManager;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.util.ArraySet;
|
||||
|
||||
import com.android.settings.Utils;
|
||||
|
||||
@@ -40,6 +42,7 @@ public class ShadowUtils {
|
||||
private static Map<String, String> sAppNameMap;
|
||||
private static boolean sIsSystemAlertWindowEnabled;
|
||||
private static boolean sIsVoiceCapable;
|
||||
private static ArraySet<String> sResultLinks = new ArraySet<>();
|
||||
|
||||
@Implementation
|
||||
protected static int enforceSameOwner(Context context, int userId) {
|
||||
@@ -60,6 +63,7 @@ public class ShadowUtils {
|
||||
sIsUserAMonkey = false;
|
||||
sIsDemoUser = false;
|
||||
sIsVoiceCapable = false;
|
||||
sResultLinks = new ArraySet<>();
|
||||
}
|
||||
|
||||
public static void setIsDemoUser(boolean isDemoUser) {
|
||||
@@ -134,4 +138,13 @@ public class ShadowUtils {
|
||||
public static void setIsVoiceCapable(boolean isVoiceCapable) {
|
||||
sIsVoiceCapable = isVoiceCapable;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected static ArraySet<String> getHandledDomains(PackageManager pm, String packageName) {
|
||||
return sResultLinks;
|
||||
}
|
||||
|
||||
public static void setHandledDomains(ArraySet<String> links) {
|
||||
sResultLinks = links;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user