Home
last modified time | relevance | path

Searched refs:creatorUid (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java480 openNetwork.shared, openNetwork.creatorUid, in getTestNetworksXmlBytes()
485 eapNetwork.shared, eapNetwork.creatorUid, in getTestNetworksXmlBytes()
492 saeNetwork.shared, saeNetwork.creatorUid, in getTestNetworksXmlBytes()
628 openNetwork.shared, openNetwork.creatorUid, openNetwork.getRandomizedMacAddress()) in parseNetworkWithUnknownTag()
649 openNetwork.shared, openNetwork.creatorUid, in parseNetworkWithMismatchConfigKey()
688 openNetwork.creatorUid = -1; in parseNetworkWithInvalidCreatorUidResetsToSystem()
690 when(mPackageManager.getNameForUid(eq(openNetwork.creatorUid))).thenReturn(null); in parseNetworkWithInvalidCreatorUidResetsToSystem()
695 openNetwork.shared, openNetwork.creatorUid, in parseNetworkWithInvalidCreatorUidResetsToSystem()
701 assertEquals(SYSTEM_UID, deserializedNetworks.get(0).creatorUid); in parseNetworkWithInvalidCreatorUidResetsToSystem()
715 openNetwork.creatorUid = 1324422; in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid()
[all …]
DWifiBackupRestoreTest.java716 wepNetwork.creatorUid = systemAppUid; in testMultipleNetworksSystemAppBackupRestore()
722 nonSystemAppWepNetwork.creatorUid = nonSystemAppUid; in testMultipleNetworksSystemAppBackupRestore()
726 pskNetwork.creatorUid = systemAppUid; in testMultipleNetworksSystemAppBackupRestore()
732 nonSystemAppPskNetwork.creatorUid = nonSystemAppUid; in testMultipleNetworksSystemAppBackupRestore()
961 nonSystemAppWepNetwork.creatorUid = Process.FIRST_APPLICATION_UID; in testMultipleNetworksSystemAppSupplicantBackupRestore()
970 nonSystemAppPskNetwork.creatorUid = Process.FIRST_APPLICATION_UID + 1; in testMultipleNetworksSystemAppSupplicantBackupRestore()
1236 Integer.toString(configuration.creatorUid)); in writeConfigurationToWpaSupplicantConf()
DWifiNetworkSuggestionsManagerTest.java744 config.creatorUid = TEST_UID_1; in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenNotInWcm()
818 configInWcm.creatorUid = TEST_UID_1; in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
1417 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionSuccessWithOneMatch()
1456 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionSuccessWithOneMatchFromCarrierPrivilegedApp()
1556 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionFailureWithOneMatchButCallbackOnBinderDied()
1600 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionFailureWithOneMatch()
1657 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionSuccessWithMultipleMatch()
1718 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1780 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch()
1833 connectNetwork.creatorUid = TEST_UID_1; in testOnNetworkConnectionWhenAppNotApproved()
[all …]
DWifiConfigurationTestUtil.java121 config.creatorUid = uid; in generateWifiConfig()
128 int uniqueId = config.FQDN.hashCode() + config.networkId + config.creatorUid; in generateWifiConfig()
775 assertEquals(expected.creatorUid, actual.creatorUid); in assertConfigurationEqualForConfigStore()
808 assertEquals(expected.creatorUid, actual.creatorUid); in assertConfigurationEqualForConfigManagerAddOrUpdate()
DWifiConfigManagerTest.java3070 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3073 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3158 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3161 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3198 when(mWifiPermissionsUtil.doesUidBelongToCurrentUser(user1Network.creatorUid)) in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3300 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchWithNoOldUserPrivateNetworks()
3347 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
3348 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(user1Network.creatorUid)) in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
3353 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
3354 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(user2Network.creatorUid)) in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
[all …]
DConfigurationMapTest.java174 final UserHandle creatorUser = UserHandle.getUserHandleForUid(config.creatorUid); in verifyGetters()
271 switchUser(UserHandle.getUserHandleForUid(config1.creatorUid).getIdentifier()); in testPutRemoveClear()
DWifiConfigStoreTest.java577 openNetwork.shared, openNetwork.creatorUid, openNetwork.creatorName, in testReadWifiConfigStoreData()
615 openNetwork.shared, openNetwork.creatorUid, openNetwork.creatorName, in testWriteWifiConfigStoreData()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSavedNetworkNominator.java216 } else if (isImsiProtectionApprovalNeeded(network.creatorUid, carrierId)) { in isSimBasedNetworkAbleToAutoJoin()
236 private boolean isImsiProtectionApprovalNeeded(int creatorUid, int carrierId) { in isImsiProtectionApprovalNeeded() argument
238 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(creatorUid) in isImsiProtectionApprovalNeeded()
239 || mWifiPermissionsUtil.checkNetworkSetupWizardPermission(creatorUid)) { in isImsiProtectionApprovalNeeded()
DWifiConfigManager.java666 && targetUid != configuration.creatorUid) { in createExternalWifiConfiguration()
973 final boolean isCreator = (config.creatorUid == uid); in canModifyNetwork()
977 mWifiPermissionsUtil.isDeviceOwner(config.creatorUid, config.creatorName); in canModifyNetwork()
1191 newInternalConfig.creatorUid = newInternalConfig.lastUpdateUid = uid; in createNewInternalWifiConfigurationFromExternal()
1316 && !(newInternalConfig.isPasspoint() && uid == newInternalConfig.creatorUid) in addOrUpdateNetworkInternal()
1388 + " uid=" + Integer.toString(newInternalConfig.creatorUid) in addOrUpdateNetworkInternal()
1426 existingConfig.networkId, existingConfig.creatorUid, config.creatorName); in addOrUpdateNetwork()
1649 if (app.uid != config.creatorUid in removeNetworksForApp()
1656 if (removeNetwork(config.networkId, config.creatorUid, config.creatorName)) { in removeNetworksForApp()
1676 if (userId != UserHandle.getUserHandleForUid(config.creatorUid).getIdentifier()) { in removeNetworksForUser()
[all …]
DNetworkListStoreData.java305 String creatorName = mContext.getPackageManager().getNameForUid(configuration.creatorUid); in parseNetwork()
308 + ", creatorUid=" + configuration.creatorUid); in parseNetwork()
309 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork()
314 + ", creatorUid=" + configuration.creatorUid in parseNetwork()
DWifiBackupRestore.java216 if (!mWifiPermissionsUtil.checkConfigOverridePermission(configuration.creatorUid)) { in writeNetworkConfigurationsToXml()
730 int creatorUid = in createWifiConfiguration() local
733 if (creatorUid >= Process.FIRST_APPLICATION_UID) { in createWifiConfiguration()
DConfigurationMap.java59 final UserHandle creatorUser = UserHandle.getUserHandleForUid(config.creatorUid); in put()
DWifiKeyStore.java283 mContext, UserHandle.getUserHandleForUid(config.creatorUid), keyChainAlias); in updateNetworkKeys()
DWifiNetworkSuggestionsManager.java310 this.wns.wifiConfiguration.creatorUid = perAppInfo.uid; in ExtendedWifiNetworkSuggestion()
861 if (configInWcm.creatorUid != uid in updateWifiConfigInWcmIfPresent()
1887 .stream().filter(ewns -> ewns.perAppInfo.uid == config.creatorUid) in isPasspointSuggestionSharedWithUser()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointConfigUserStoreData.java278 int creatorUid = Integer.MIN_VALUE; in deserializeProvider() local
301 creatorUid = (int) value; in deserializeProvider()
368 providerId, creatorUid, packageName, isFromSuggestion, caCertificateAliases, in deserializeProvider()
DPasspointObjectFactory.java68 int creatorUid, String packageName, boolean isFromSuggestion, Clock clock) { in makePasspointProvider() argument
70 creatorUid, packageName, isFromSuggestion, clock); in makePasspointProvider()
DPasspointProvider.java125 WifiCarrierInfoManager wifiCarrierInfoManager, long providerId, int creatorUid, in PasspointProvider() argument
127 this(config, keyStore, wifiCarrierInfoManager, providerId, creatorUid, packageName, in PasspointProvider()
132 WifiCarrierInfoManager wifiCarrierInfoManager, long providerId, int creatorUid, in PasspointProvider() argument
140 mCreatorUid = creatorUid; in PasspointProvider()
575 wifiConfig.creatorUid = mCreatorUid; in getWifiConfig()
DPasspointNetworkNominateHelper.java214 config, config.creatorUid, config.creatorName); in createWifiConfigForProvider()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiConfiguration.java1279 public int creatorUid; field in WifiConfiguration
2882 creatorUid = -1; in WifiConfiguration()
3140 if (creatorUid != 0) sbuf.append(" cuid=" + creatorUid); in toString()
3341 key += "-" + UserHandle.getUserHandleForUid(creatorUid).getIdentifier(); in getKey()
3361 key += "-" + UserHandle.getUserHandleForUid(creatorUid).getIdentifier(); in getNetworkKey()
3608 creatorUid = source.creatorUid; in WifiConfiguration()
3695 dest.writeInt(creatorUid); in writeToParcel()
3781 config.creatorUid = in.readInt();
3871 key += "-" + UserHandle.getUserHandleForUid(creatorUid).getIdentifier(); in getProfileKey()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java103 isConfigEligibleForLockdown = deviceOwnerUid == config.creatorUid; in isNetworkLockedDown()
114 isConfigEligibleForLockdown = profileOwnerUid == config.creatorUid; in isNetworkLockedDown()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java214 public final int creatorUid; field in NetworkAgentInfo
355 IDnsResolver dnsResolver, int factorySerialNumber, int creatorUid, in NetworkAgentInfo() argument
377 this.creatorUid = creatorUid; in NetworkAgentInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java270 isConfigEligibleForLockdown = deviceOwnerUid == config.creatorUid; in isNetworkLockedDown()
281 isConfigEligibleForLockdown = profileOwnerUid == config.creatorUid; in isNetworkLockedDown()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java821 public void restrictCapabilitesForTestNetwork(int creatorUid) { in restrictCapabilitesForTestNetwork() argument
852 if (originalOwnerUid == creatorUid) { in restrictCapabilitesForTestNetwork()
853 setOwnerUid(creatorUid); in restrictCapabilitesForTestNetwork()
855 if (CollectionUtils.contains(originalAdministratorUids, creatorUid)) { in restrictCapabilitesForTestNetwork()
856 setAdministratorUids(new int[] {creatorUid}); in restrictCapabilitesForTestNetwork()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java157 isConfigEligibleForLockdown = deviceOwnerUid == config.creatorUid; in isNetworkLockedDown()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java558 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, configuration.creatorUid); in writeToXmlForConfigStore()
787 configuration.creatorUid = (int) value; in parseFromXml()

12