Home
last modified time | relevance | path

Searched refs:ident (Results 1 – 25 of 105) sorted by relevance

12345

/frameworks/base/core/java/android/net/
DNetworkTemplate.java302 public boolean matches(NetworkIdentity ident) { in matches() argument
305 return matchesMobile(ident); in matches()
307 return matchesMobile3gLower(ident); in matches()
309 return matchesMobile4g(ident); in matches()
311 return matchesWifi(ident); in matches()
313 return matchesEthernet(ident); in matches()
315 return matchesMobileWildcard(ident); in matches()
317 return matchesWifiWildcard(ident); in matches()
319 return matchesBluetooth(ident); in matches()
321 return matchesProxy(ident); in matches()
[all …]
DNetworkIdentity.java81 final NetworkIdentity ident = (NetworkIdentity) obj; in equals() local
82 return mType == ident.mType && mSubType == ident.mSubType && mRoaming == ident.mRoaming in equals()
83 && Objects.equals(mSubscriberId, ident.mSubscriberId) in equals()
84 && Objects.equals(mNetworkId, ident.mNetworkId) in equals()
85 && mMetered == ident.mMetered; in equals()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java86 for (NetworkIdentity ident : this) { in writeToStream()
87 out.writeInt(ident.getType()); in writeToStream()
88 out.writeInt(ident.getSubType()); in writeToStream()
89 writeOptionalString(out, ident.getSubscriberId()); in writeToStream()
90 writeOptionalString(out, ident.getNetworkId()); in writeToStream()
91 out.writeBoolean(ident.getRoaming()); in writeToStream()
92 out.writeBoolean(ident.getMetered()); in writeToStream()
101 for (NetworkIdentity ident : this) { in isAnyMemberMetered()
102 if (ident.getMetered()) { in isAnyMemberMetered()
114 for (NetworkIdentity ident : this) { in isAnyMemberRoaming()
[all …]
DNetworkStatsCollection.java283 && templateMatches(template, key.ident)) { in getHistory()
357 if (templateMatches(template, key.ident) in getSummary()
367 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
368 entry.roaming = key.ident.isAnyMemberRoaming() ? ROAMING_YES : ROAMING_NO; in getSummary()
387 public void recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start, in recordData() argument
389 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag); in recordData()
422 NetworkIdentitySet ident, int uid, int set, int tag) { in findOrCreateHistory() argument
423 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory()
460 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in read() local
468 final Key key = new Key(ident, uid, set, tag); in read()
[all …]
DNetworkStatsService.java497 final long ident = Binder.clearCallingIdentity(); in openSessionInternal() local
501 Binder.restoreCallingIdentity(ident); in openSessionInternal()
1033 final NetworkIdentity ident = NetworkIdentity.buildNetworkIdentity(mContext, state); in updateIfacesLocked() local
1039 findOrCreateNetworkIdentitySet(mActiveIfaces, baseIface).add(ident); in updateIfacesLocked()
1040 findOrCreateNetworkIdentitySet(mActiveUidIfaces, baseIface).add(ident); in updateIfacesLocked()
1048 NetworkCapabilities.NET_CAPABILITY_IMS) && !ident.getMetered()) { in updateIfacesLocked()
1051 NetworkIdentity vtIdent = new NetworkIdentity(ident.getType(), in updateIfacesLocked()
1052 ident.getSubType(), ident.getSubscriberId(), ident.getNetworkId(), in updateIfacesLocked()
1053 ident.getRoaming(), true); in updateIfacesLocked()
1071 findOrCreateNetworkIdentitySet(mActiveUidIfaces, stackedIface).add(ident); in updateIfacesLocked()
[all …]
DNetworkStatsRecorder.java244 final NetworkIdentitySet ident = ifaceIdent.get(entry.iface); in recordSnapshotLocked() local
245 if (ident == null) { in recordSnapshotLocked()
256 mPending.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
261 … mSinceBoot.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
266 complete.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java485 final long ident = Binder.clearCallingIdentity(); in dump() local
489 Binder.restoreCallingIdentity(ident); in dump()
498 final long ident = Binder.clearCallingIdentity(); in getDreamComponents() local
502 Binder.restoreCallingIdentity(ident); in getDreamComponents()
511 final long ident = Binder.clearCallingIdentity(); in setDreamComponents() local
515 Binder.restoreCallingIdentity(ident); in setDreamComponents()
524 final long ident = Binder.clearCallingIdentity(); in getDefaultDreamComponent() local
528 Binder.restoreCallingIdentity(ident); in getDefaultDreamComponent()
536 final long ident = Binder.clearCallingIdentity(); in isDreaming() local
540 Binder.restoreCallingIdentity(ident); in isDreaming()
[all …]
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java79 long ident = Binder.clearCallingIdentity(); in hasRestrictionsProvider() local
83 Binder.restoreCallingIdentity(ident); in hasRestrictionsProvider()
100 long ident = Binder.clearCallingIdentity(); in requestPermission() local
121 Binder.restoreCallingIdentity(ident); in requestPermission()
133 long ident = Binder.clearCallingIdentity(); in createLocalApprovalIntent() local
153 Binder.restoreCallingIdentity(ident); in createLocalApprovalIntent()
166 long ident = Binder.clearCallingIdentity(); in notifyPermissionResponse() local
182 Binder.restoreCallingIdentity(ident); in notifyPermissionResponse()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java240 long ident = injectClearCallingIdentity(); in canAccessProfile() local
256 injectRestoreCallingIdentity(ident); in canAccessProfile()
288 long ident = injectClearCallingIdentity(); in isUserEnabled() local
293 injectRestoreCallingIdentity(ident); in isUserEnabled()
320 long ident = Binder.clearCallingIdentity(); in resolveActivity() local
329 Binder.restoreCallingIdentity(ident); in resolveActivity()
351 long ident = injectClearCallingIdentity(); in queryActivitiesForUser() local
361 injectRestoreCallingIdentity(ident); in queryActivitiesForUser()
400 long ident = Binder.clearCallingIdentity(); in isPackageEnabled() local
410 Binder.restoreCallingIdentity(ident); in isPackageEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java153 final long ident = Binder.clearCallingIdentity(); in runJob() local
169 Binder.restoreCallingIdentity(ident); in runJob()
200 final long ident = Binder.clearCallingIdentity(); in timeout() local
204 Binder.restoreCallingIdentity(ident); in timeout()
220 final long ident = Binder.clearCallingIdentity(); in monitorBattery() local
226 Binder.restoreCallingIdentity(ident); in monitorBattery()
288 final long ident = Binder.clearCallingIdentity(); in getJobState() local
294 Binder.restoreCallingIdentity(ident); in getJobState()
DJobServiceContext.java323 final long ident = Binder.clearCallingIdentity(); in doDequeueWork() local
341 Binder.restoreCallingIdentity(ident); in doDequeueWork()
346 final long ident = Binder.clearCallingIdentity(); in doCompleteWork() local
353 Binder.restoreCallingIdentity(ident); in doCompleteWork()
481 final long ident = Binder.clearCallingIdentity(); in doCallback() local
490 Binder.restoreCallingIdentity(ident); in doCallback()
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java135 long ident = Binder.clearCallingIdentity(); in Session() local
155 Binder.restoreCallingIdentity(ident); in Session()
296 long ident = Binder.clearCallingIdentity(); in performHapticFeedback() local
302 Binder.restoreCallingIdentity(ident); in performHapticFeedback()
404 long ident = Binder.clearCallingIdentity(); in startMovingTask() local
408 Binder.restoreCallingIdentity(ident); in startMovingTask()
420 long ident = Binder.clearCallingIdentity(); in reportDropResult() local
448 Binder.restoreCallingIdentity(ident); in reportDropResult()
460 long ident = Binder.clearCallingIdentity(); in cancelDragAndDrop() local
477 Binder.restoreCallingIdentity(ident); in cancelDragAndDrop()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java154 long ident = Binder.clearCallingIdentity(); in updateWifiLockWorkSource() local
161 Binder.restoreCallingIdentity(ident); in updateWifiLockWorkSource()
189 long ident = Binder.clearCallingIdentity(); in addLock() local
206 Binder.restoreCallingIdentity(ident); in addLock()
231 long ident = Binder.clearCallingIdentity(); in releaseLock() local
247 Binder.restoreCallingIdentity(ident); in releaseLock()
DWifiMulticastLockManager.java146 final long ident = Binder.clearCallingIdentity(); in acquireLock() local
151 Binder.restoreCallingIdentity(ident); in acquireLock()
180 final long ident = Binder.clearCallingIdentity(); in removeMulticasterLocked() local
185 Binder.restoreCallingIdentity(ident); in removeMulticasterLocked()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java168 public final int ident; field in DeviceAdminInfo.PolicyInfo
175 public PolicyInfo(int ident, String tag, int label, int description) { in PolicyInfo() argument
176 this(ident, tag, label, description, label, description); in PolicyInfo()
179 public PolicyInfo(int ident, String tag, int label, int description, in PolicyInfo() argument
181 this.ident = ident; in PolicyInfo()
235 sRevKnownPolicies.put(pi.ident, pi); in sRevKnownPolicies.put() argument
236 sKnownPolicies.put(pi.tag, pi.ident); in sKnownPolicies.put() argument
452 if (usesPolicy(pi.ident)) { in getUsedPolicies()
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java914 long ident = Binder.clearCallingIdentity(); in doBackup() local
933 Binder.restoreCallingIdentity(ident); in doBackup()
954 long ident = Binder.clearCallingIdentity(); in doRestore() local
975 Binder.restoreCallingIdentity(ident); in doRestore()
993 long ident = Binder.clearCallingIdentity(); in doFullBackup() local
1023 Binder.restoreCallingIdentity(ident); in doFullBackup()
1038 final long ident = Binder.clearCallingIdentity(); in doMeasureFullBackup() local
1051 Binder.restoreCallingIdentity(ident); in doMeasureFullBackup()
1064 long ident = Binder.clearCallingIdentity(); in doRestoreFile() local
1076 Binder.restoreCallingIdentity(ident); in doRestoreFile()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java225 long ident = clearCallingIdentity(); in isCallerInCurrentUserProfileGroupLocked() local
229 restoreCallingIdentity(ident); in isCallerInCurrentUserProfileGroupLocked()
430 final long ident = Binder.clearCallingIdentity(); in getPorts() local
434 Binder.restoreCallingIdentity(ident); in getPorts()
443 final long ident = Binder.clearCallingIdentity(); in getPortStatus() local
447 Binder.restoreCallingIdentity(ident); in getPortStatus()
457 final long ident = Binder.clearCallingIdentity(); in setPortRoles() local
463 Binder.restoreCallingIdentity(ident); in setPortRoles()
487 final long ident = Binder.clearCallingIdentity(); in dump() local
680 Binder.restoreCallingIdentity(ident); in dump()
/frameworks/base/tools/apilint/
Dapilint.py73 self.ident = self.raw.replace(" deprecated ", " ")
105 ident = self.raw
106 ident = ident.replace(" deprecated ", " ")
107 ident = ident.replace(" synchronized ", " ")
108 ident = re.sub("<.+?>", "", ident)
109 if " throws " in ident:
110 ident = ident[:ident.index(" throws ")]
111 self.ident = ident
1209 if m.ident == test.ident: return True
1221 if m.ident == test.ident: return True
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java124 final long ident = mContext.binder.clearCallingIdentity(); in testMigration() local
133 mContext.binder.restoreCallingIdentity(ident); in testMigration()
237 final long ident = mContext.binder.clearCallingIdentity(); in testMigration2_profileOwnerOnUser0() local
246 mContext.binder.restoreCallingIdentity(ident); in testMigration2_profileOwnerOnUser0()
303 final long ident = mContext.binder.clearCallingIdentity(); in testMigration3_managedProfileOwner() local
312 mContext.binder.restoreCallingIdentity(ident); in testMigration3_managedProfileOwner()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java4164 final long ident = Binder.clearCallingIdentity(); in acquireWakeLock() local
4168 Binder.restoreCallingIdentity(ident); in acquireWakeLock()
4180 final long ident = Binder.clearCallingIdentity(); in releaseWakeLock() local
4184 Binder.restoreCallingIdentity(ident); in releaseWakeLock()
4218 final long ident = Binder.clearCallingIdentity(); in updateWakeLockWorkSource() local
4222 Binder.restoreCallingIdentity(ident); in updateWakeLockWorkSource()
4228 final long ident = Binder.clearCallingIdentity(); in isWakeLockLevelSupported() local
4232 Binder.restoreCallingIdentity(ident); in isWakeLockLevelSupported()
4265 final long ident = Binder.clearCallingIdentity(); in userActivity() local
4269 Binder.restoreCallingIdentity(ident); in userActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java413 final long ident = Binder.clearCallingIdentity(); in setPrimaryClipInternal() local
433 Binder.restoreCallingIdentity(ident); in setPrimaryClipInternal()
453 long ident = Binder.clearCallingIdentity(); in checkUriOwnerLocked() local
461 Binder.restoreCallingIdentity(ident); in checkUriOwnerLocked()
483 long ident = Binder.clearCallingIdentity(); in grantUriLocked() local
491 Binder.restoreCallingIdentity(ident); in grantUriLocked()
536 long ident = Binder.clearCallingIdentity(); in revokeUriLocked() local
544 Binder.restoreCallingIdentity(ident); in revokeUriLocked()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java252 final int ident; field in SyncStorageEngine.AuthorityInfo
272 ident = toCopy.ident; in AuthorityInfo()
287 ident = id; in AuthorityInfo()
950 SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident); in markPending()
976 removing.put(auth.ident, auth); in doDatabaseCleanup()
987 int ident = removing.keyAt(i); in doDatabaseCleanup() local
992 mAuthorities.remove(ident); in doDatabaseCleanup()
996 if (mSyncStatus.keyAt(j) == ident) { in doDatabaseCleanup()
1003 if (mSyncHistory.get(j).authorityId == ident) { in doDatabaseCleanup()
1034 authorityInfo.ident, in addActiveSync()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerService.java525 final long ident = Binder.clearCallingIdentity();
531 Binder.restoreCallingIdentity(ident);
544 final long ident = Binder.clearCallingIdentity();
550 Binder.restoreCallingIdentity(ident);
563 final long ident = Binder.clearCallingIdentity();
569 Binder.restoreCallingIdentity(ident);
582 final long ident = Binder.clearCallingIdentity();
588 Binder.restoreCallingIdentity(ident);
601 final long ident = Binder.clearCallingIdentity();
607 Binder.restoreCallingIdentity(ident);
/frameworks/base/core/java/android/os/
DLooper.java139 final long ident = Binder.clearCallingIdentity(); in loop() local
187 if (ident != newIdent) { in loop()
189 + Long.toHexString(ident) + " to 0x" in loop()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java250 final long ident = Binder.clearCallingIdentity();
259 Binder.restoreCallingIdentity(ident);
269 final long ident = Binder.clearCallingIdentity();
278 Binder.restoreCallingIdentity(ident);
284 final long ident = Binder.clearCallingIdentity();
290 Binder.restoreCallingIdentity(ident);
312 final long ident = Binder.clearCallingIdentity();
323 Binder.restoreCallingIdentity(ident);

12345