/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 106 private int mUid; field in WifiPermissionsUtilTest 138 mUid = MANAGED_PROFILE_UID; // do not really care about this value in testCheckConfigOverridePermissionApproved() 144 assertTrue(codeUnderTest.checkConfigOverridePermission(mUid)); in testCheckConfigOverridePermissionApproved() 152 mUid = OTHER_USER_UID; // do not really care about this value in testCheckConfigOverridePermissionDenied() 158 assertFalse(codeUnderTest.checkConfigOverridePermission(mUid)); in testCheckConfigOverridePermissionDenied() 166 mUid = OTHER_USER_UID; // do not really care about this value in testCheckConfigOverridePermissionWithException() 170 doThrow(new RemoteException("Failed to check permissions for " + mUid)) in testCheckConfigOverridePermissionWithException() 171 .when(mMockPermissionsWrapper).getOverrideWifiConfigPermission(mUid); in testCheckConfigOverridePermissionWithException() 172 assertFalse(codeUnderTest.checkConfigOverridePermission(mUid)); in testCheckConfigOverridePermissionWithException() 187 mUid = MANAGED_PROFILE_UID; in testCanReadPeersMacAddressCurrentUserAndAllPermissions() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LocationPermissionCheckerTest.java | 79 private int mUid; field in LocationPermissionCheckerTest 101 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WIFI_SCAN, mUid, TEST_PKG_NAME)) in setupMocks() 103 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_COARSE_LOCATION), eq(mUid), in setupMocks() 106 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_FINE_LOCATION), eq(mUid), in setupMocks() 111 + " to application bound to user " + mUid)) in setupMocks() 112 .when(mMockAppOps).checkPackage(mUid, TEST_PKG_NAME); in setupMocks() 131 mUid = OTHER_USER_UID; in initTestVars() 143 Binder.restoreCallingIdentity((((long) mUid) << 32) | Binder.getCallingPid()); in setupMockInterface() 149 when(mMockContext.checkPermission(mManifestStringCoarse, -1, mUid)) in setupMockInterface() 151 when(mMockContext.checkPermission(mManifestStringFine, -1, mUid)) in setupMockInterface() [all …]
|
/frameworks/base/cmds/statsd/src/config/ |
D | ConfigKey.h | 41 return mUid; in GetUid() 48 if (mUid < that.mUid) { 51 if (mUid > that.mUid) { 58 return mUid == that.mUid && mId == that.mId; 65 int mUid; variable
|
D | ConfigKey.cpp | 26 ConfigKey::ConfigKey(const ConfigKey& that) : mId(that.mId), mUid(that.mUid) { in ConfigKey() 29 ConfigKey::ConfigKey(int uid, const int64_t& id) : mId(id), mUid(uid) { in ConfigKey() 37 s += "(" + std::to_string(mUid) + " " + std::to_string(mId) + ")"; in ToString()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | AttributionKey.java | 25 private final int mUid; field in AttributionKey 30 mUid = -1; in AttributionKey() 36 mUid = uid; in AttributionKey() 62 return mUid; in getUid() 67 hash = (31 * hash) + (mUid); in hashCode() 85 return (this.mUid == that.mUid) in equals() 93 if (mUid >= 0) { in toString() 95 str.append(mUid); in toString()
|
/frameworks/base/core/java/android/app/usage/ |
D | CacheQuotaHint.java | 39 private final int mUid; field in CacheQuotaHint 49 this.mUid = builder.mUid; in CacheQuotaHint() 59 return mUid; in getUid() 73 dest.writeInt(mUid); in writeToParcel() 89 && mUid == other.mUid && mQuota == other.mQuota; in equals() 97 return Objects.hash(this.mUuid, this.mUid, this.mUsageStats, this.mQuota); in hashCode() 102 private int mUid; field in CacheQuotaHint.Builder 123 mUid = uid; in setUid()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputBinding.java | 43 final int mUid; field in InputBinding 62 mUid = uid; in InputBinding() 76 mUid = binding.getUid(); in InputBinding() 83 mUid = source.readInt(); in InputBinding() 107 return mUid; in getUid() 120 + " / uid " + mUid + " / pid " + mPid + "}"; in toString() 131 dest.writeInt(mUid); in writeToParcel()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreKey.java | 28 private final int mUid; field in AndroidKeyStoreKey 33 mUid = uid; in AndroidKeyStoreKey() 42 return mUid; in getUid() 68 result = prime * result + mUid; in hashCode() 98 if (mUid != other.mUid) { in equals()
|
D | AndroidKeyStoreSpi.java | 92 private int mUid = KeyStore.UID_SELF; field in AndroidKeyStoreSpi 99 if (!mKeyStore.contains(userKeyAlias, mUid)) { in engineGetKey() 102 if (!mKeyStore.contains(userKeyAlias, mUid)) return null; in engineGetKey() 107 mUid); in engineGetKey() 133 mUid, in engineGetCertificateChain() 160 byte[] encodedCert = mKeyStore.get(Credentials.USER_CERTIFICATE + alias, mUid); in engineGetCertificate() 165 encodedCert = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid); in engineGetCertificate() 202 if (mKeyStore.contains(privateKeyAlias, mUid)) { in getCertificateForPrivateKeyEntry() 208 return wrapIntoKeyStoreCertificate(privateKeyAlias, mUid, cert); in getCertificateForPrivateKeyEntry() 254 final long epochMillis = mKeyStore.getmtime(alias, mUid); in getModificationDate() [all …]
|
D | AndroidKeyStoreLoadStoreParameter.java | 24 private final int mUid; field in AndroidKeyStoreLoadStoreParameter 27 mUid = uid; in AndroidKeyStoreLoadStoreParameter() 36 return mUid; in getUid()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BadgeExtractorTest.java | 55 private int mUid = 1000; field in BadgeExtractorTest 67 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 76 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, in getNotificationRecord() 92 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo() 106 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes() 120 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYes() 134 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelNo() 148 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYesUserNo() 162 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testDndOverridesYes() 178 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testDndOConsidersInterception() [all …]
|
D | BubbleExtractorTest.java | 53 private int mUid = 1000; field in BubbleExtractorTest 65 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 74 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, in getNotificationRecord() 90 when(mConfig.areBubblesAllowed(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo() 104 when(mConfig.areBubblesAllowed(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes() 118 when(mConfig.areBubblesAllowed(mPkg, mUid)).thenReturn(true); in testAppYesChannelYes() 132 when(mConfig.areBubblesAllowed(mPkg, mUid)).thenReturn(false); in testAppNoChannelNo() 146 when(mConfig.areBubblesAllowed(mPkg, mUid)).thenReturn(true); in testAppYesChannelYesUserNo()
|
D | NotificationManagerServiceTest.java | 185 private final int mUid = Binder.getCallingUid(); field in NotificationManagerServiceTest 348 applicationInfo.uid = mUid; in setUp() 353 when(mPackageManagerClient.getPackageUidAsUser(any(), anyInt())).thenReturn(mUid); in setUp() 359 when(mPackageManager.getPackagesForUid(mUid)).thenReturn(new String[]{PKG}); in setUp() 374 null, new ComponentName(PKG, "test_class"), mUid, true, null, 0); in setUp() 460 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, in generateNotificationRecord() 461 nb.build(), new UserHandle(mUid), null, 0); in generateNotificationRecord() 488 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, in generateNotificationRecord() 489 nb.build(), new UserHandle(mUid), null, 0); in generateNotificationRecord() 684 mBinderService.updateNotificationChannelForPackage(PKG, mUid, updatedChannel); in testCreateNotificationChannels_CannotDowngradeImportanceIfAlreadyUpdated() [all …]
|
/frameworks/base/media/apex/java/android/media/ |
D | Session2Token.java | 85 private final int mUid; field in Session2Token 118 mUid = uid; in Session2Token() 126 mUid = uid; in Session2Token() 136 mUid = in.readInt(); in Session2Token() 156 dest.writeInt(mUid); in writeToParcel() 172 return Objects.hash(mType, mUid, mPackageName, mServiceName, mSessionLink); in hashCode() 181 return mUid == other.mUid in equals() 198 return mUid; in getUid()
|
/frameworks/base/core/java/android/os/ |
D | ExternalVibration.java | 33 private int mUid; field in ExternalVibration 47 mUid = uid; in ExternalVibration() 55 mUid = in.readInt(); in ExternalVibration() 76 return mUid; in getUid() 147 + "uid=" + mUid + ", " in toString() 157 out.writeInt(mUid); in writeToParcel()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 59 private int mUid; field in BandwidthTest 76 mUid = Process.myUid(); in setUp() 119 NetworkStats pre_test_stats = fetchDataFromProc(mUid); in downloadFile() 130 NetworkStats post_test_stats = fetchDataFromProc(mUid); in downloadFile() 139 addStatsToResults(PROF_LABEL, prof_stats, results, mUid); in downloadFile() 140 addStatsToResults(PROC_LABEL, proc_stats, results, mUid); in downloadFile() 179 NetworkStats pre_test_stats = fetchDataFromProc(mUid); in uploadFile() 184 NetworkStats post_test_stats = fetchDataFromProc(mUid); in uploadFile() 193 addStatsToResults(PROF_LABEL, prof_stats, results, mUid); in uploadFile() 194 addStatsToResults(PROC_LABEL, proc_stats, results, mUid); in uploadFile() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpItem.java | 25 private int mUid; field in AppOpItem 32 this.mUid = uid; in AppOpItem() 49 return mUid; in getUid()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 144 int mUid = Os.getuid(); field in IpSecServiceParameterizedTest 215 eq(mUid), in testReleaseSecurityParameterIndex() 224 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseSecurityParameterIndex() 243 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testSecurityParameterIndexBinderDeath() 251 eq(mUid), in testSecurityParameterIndexBinderDeath() 311 eq(mUid), in verifyTransformNetdCalledForCreatingSA() 447 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseOwnedSpi() 452 eq(mUid), in testReleaseOwnedSpi() 475 eq(mUid), in testDeleteTransform() 484 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testDeleteTransform() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMulticastLockManager.java | 62 int mUid; field in WifiMulticastLockManager.Multicaster 67 mUid = Binder.getCallingUid(); in Multicaster() 82 removeMulticasterLocked(i, mUid, mTag); in binderDied() 92 return mUid; in getUid() 100 return "Multicaster{" + mTag + " uid=" + mUid + "}"; in toString()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPatch.h | 40 uid_t getUid() const { return mUid; } in getUid() 42 void setUid(uid_t uid) { mUid = uid; } in setUid() 50 uid_t mUid; variable
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteProviderProxy.java | 51 private final int mUid; field in TvRemoteProviderProxy 75 mUid = uid; in TvRemoteProviderProxy() 328 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in openInputBridge() 354 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in closeInputBridge() 379 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in clearInputBridge() 404 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendTimestamp() 426 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendKeyDown() 452 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendKeyUp() 477 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendPointerDown() 503 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendPointerUp() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbPermissionActivity.java | 57 private int mUid; field in UsbPermissionActivity 69 mUid = intent.getIntExtra(Intent.EXTRA_UID, -1); in onCreate() 134 service.grantDevicePermission(mDevice, mUid); in onDestroy() 136 final int userId = UserHandle.getUserId(mUid); in onDestroy() 144 service.grantAccessoryPermission(mAccessory, mUid); in onDestroy() 146 final int userId = UserHandle.getUserId(mUid); in onDestroy()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarTrustAgentUnlockDialogHelper.java | 59 private int mUid; field in CarTrustAgentUnlockDialogHelper 155 mUid = uid; in setUid() 157 userName.setText(mUserManager.getUserInfo(mUid).name); in setUid() 159 avatar.setImageBitmap(mUserManager.getUserIcon(mUid)); in setUid() 193 if (uid == mUid) { in onReceive() 209 int passwordQuality = lockPatternUtils.getActivePasswordQuality(mUid); in setButtonText()
|
/frameworks/base/core/java/android/accounts/ |
D | GrantCredentialsPermissionActivity.java | 44 private int mUid; field in GrantCredentialsPermissionActivity 66 mUid = extras.getInt(EXTRAS_REQUESTING_UID); in onCreate() 68 final String[] packages = pm.getPackagesForUid(mUid); in onCreate() 162 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, true); in onClick() 170 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, false); in onClick()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 58 private final int mUid; field in WifiAwareClientState 76 mUid = uid; in WifiAwareClientState() 109 return mUid; in getUid() 226 mCallingPackage, mUid, /* coarseForTargetSdkLessThanQ */ true); in onInterfaceAddressChange() 261 mCallingPackage, mUid, /* coarseForTargetSdkLessThanQ */ true); in onClusterChange()
|