Searched refs:WorkSourceHelper (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WorkSourceHelperTest.java | 73 WorkSourceHelper wsHelper = new WorkSourceHelper( in testGetRequestorWsPriority() 75 assertEquals(wsHelper.getRequestorWsPriority(), WorkSourceHelper.PRIORITY_INTERNAL); in testGetRequestorWsPriority() 82 assertEquals(WorkSourceHelper.PRIORITY_BG, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority() 87 assertEquals(WorkSourceHelper.PRIORITY_FG_SERVICE, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority() 92 assertEquals(WorkSourceHelper.PRIORITY_FG_APP, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority() 100 assertEquals(WorkSourceHelper.PRIORITY_FG_APP, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority() 106 assertEquals(WorkSourceHelper.PRIORITY_SYSTEM, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority() 110 assertEquals(WorkSourceHelper.PRIORITY_PRIVILEGED, wsHelper.getRequestorWsPriority()); in testGetRequestorWsPriority()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 86 import com.android.server.wifi.util.WorkSourceHelper; 137 @Mock private WorkSourceHelper mWorkSourceHelper0; 138 @Mock private WorkSourceHelper mWorkSourceHelper1; 139 @Mock private WorkSourceHelper mWorkSourceHelper2; 184 .thenReturn(WorkSourceHelper.PRIORITY_PRIVILEGED); in before() 186 .thenReturn(WorkSourceHelper.PRIORITY_PRIVILEGED); in before() 188 .thenReturn(WorkSourceHelper.PRIORITY_PRIVILEGED); in before() 704 .thenReturn(WorkSourceHelper.PRIORITY_SYSTEM); in testReplaceRequestorWs() 715 .thenReturn(WorkSourceHelper.PRIORITY_FG_APP); in testReplaceRequestorWs() 720 .thenReturn(WorkSourceHelper.PRIORITY_SYSTEM); in testReplaceRequestorWs() [all …]
|
D | InterfaceConflictManagerTest.java | 56 import com.android.server.wifi.util.WorkSourceHelper; 88 @Mock WorkSourceHelper mWsHelper; 89 @Mock WorkSourceHelper mExistingWsHelper; 127 .thenReturn(WorkSourceHelper.PRIORITY_FG_APP); in setup() 129 .thenReturn(WorkSourceHelper.PRIORITY_FG_APP); in setup() 712 .thenReturn(WorkSourceHelper.PRIORITY_PRIVILEGED); in testCanDeleteWithUserApproval() 719 .thenReturn(WorkSourceHelper.PRIORITY_INTERNAL); in testCanDeleteWithUserApproval()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | HalDeviceManager.java | 56 import com.android.server.wifi.util.WorkSourceHelper; 979 == WorkSourceHelper.PRIORITY_PRIVILEGED && !isDisconnectedP2p(iface)) { in creatingIfaceWillDeletePrivilegedIface() 1025 public WorkSourceHelper requestorWsHelper; 1042 public WorkSourceHelper requestorWsHelper; 2036 @NonNull WorkSourceHelper newRequestorWs, @NonNull WifiIfaceInfo existingIfaceInfo) { in allowedToDelete() 2038 WorkSourceHelper existingRequestorWs = existingIfaceInfo.requestorWsHelper; in allowedToDelete() 2039 @WorkSourceHelper.RequestorWsPriority int newRequestorWsPriority = in allowedToDelete() 2041 @WorkSourceHelper.RequestorWsPriority int existingRequestorWsPriority = in allowedToDelete() 2049 && newRequestorWsPriority > WorkSourceHelper.PRIORITY_BG) { in allowedToDelete() 2063 if (newRequestorWsPriority > WorkSourceHelper.PRIORITY_BG in allowedToDelete() [all …]
|
D | InterfaceConflictManager.java | 24 import static com.android.server.wifi.util.WorkSourceHelper.PRIORITY_INTERNAL; 49 import com.android.server.wifi.util.WorkSourceHelper; 149 int requestedCreateType, @NonNull WorkSourceHelper newRequestorWsHelper, in needsUserApprovalToDelete() 150 int existingCreateType, @NonNull WorkSourceHelper existingRequestorWsHelper) { in needsUserApprovalToDelete() 170 if (newRequestorWsHelper.getRequestorWsPriority() <= WorkSourceHelper.PRIORITY_BG in needsUserApprovalToDelete()
|
D | WifiInjector.java | 76 import com.android.server.wifi.util.WorkSourceHelper; 1161 public WorkSourceHelper makeWsHelper(@NonNull WorkSource ws) { in makeWsHelper() 1162 return new WorkSourceHelper(ws, mWifiPermissionsUtil, in makeWsHelper()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WorkSourceHelper.java | 45 public class WorkSourceHelper { class 116 public WorkSourceHelper( in WorkSourceHelper() method in WorkSourceHelper
|
/packages/modules/Wifi/service/tests/wifitests/ |
D | Android.bp | 1289 "com.android.server.wifi.util.WorkSourceHelper", 1290 "com.android.server.wifi.util.WorkSourceHelper$*", 1291 "com.android.server.wifi.util.WorkSourceHelper.**",
|