Home
last modified time | relevance | path

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

12345

/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java95 for (NetworkIdentity ident : this) { in writeToStream()
96 out.writeInt(ident.getType()); in writeToStream()
97 out.writeInt(ident.getSubType()); in writeToStream()
98 writeOptionalString(out, ident.getSubscriberId()); in writeToStream()
99 writeOptionalString(out, ident.getNetworkId()); in writeToStream()
100 out.writeBoolean(ident.getRoaming()); in writeToStream()
101 out.writeBoolean(ident.getMetered()); in writeToStream()
102 out.writeBoolean(ident.getDefaultNetwork()); in writeToStream()
111 for (NetworkIdentity ident : this) { in isAnyMemberMetered()
112 if (ident.getMetered()) { in isAnyMemberMetered()
[all …]
DNetworkStatsCollection.java267 && templateMatches(template, key.ident)) { in getHistory()
345 if (templateMatches(template, key.ident) in getSummary()
355 entry.defaultNetwork = key.ident.areAllMembersOnDefaultNetwork() ? in getSummary()
357 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
358 entry.roaming = key.ident.isAnyMemberRoaming() ? ROAMING_YES : ROAMING_NO; in getSummary()
377 public void recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start, in recordData() argument
379 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag); in recordData()
412 NetworkIdentitySet ident, int uid, int set, int tag) { in findOrCreateHistory() argument
413 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory()
450 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in read() local
[all …]
/frameworks/base/core/java/android/net/
DNetworkTemplate.java378 public boolean matches(NetworkIdentity ident) { in matches() argument
379 if (!matchesMetered(ident)) return false; in matches()
380 if (!matchesRoaming(ident)) return false; in matches()
381 if (!matchesDefaultNetwork(ident)) return false; in matches()
385 return matchesMobile(ident); in matches()
387 return matchesWifi(ident); in matches()
389 return matchesEthernet(ident); in matches()
391 return matchesMobileWildcard(ident); in matches()
393 return matchesWifiWildcard(ident); in matches()
395 return matchesBluetooth(ident); in matches()
[all …]
DNetworkIdentity.java74 final NetworkIdentity ident = (NetworkIdentity) obj; in equals() local
75 return mType == ident.mType && mSubType == ident.mSubType && mRoaming == ident.mRoaming in equals()
76 && Objects.equals(mSubscriberId, ident.mSubscriberId) in equals()
77 && Objects.equals(mNetworkId, ident.mNetworkId) in equals()
78 && mMetered == ident.mMetered in equals()
79 && mDefaultNetwork == ident.mDefaultNetwork; in equals()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCallbackProxies.java51 final long ident = Binder.clearCallingIdentity(); in onConfigured() local
55 Binder.restoreCallingIdentity(ident); in onConfigured()
62 final long ident = Binder.clearCallingIdentity(); in onConfigureFailed() local
66 Binder.restoreCallingIdentity(ident); in onConfigureFailed()
72 final long ident = Binder.clearCallingIdentity(); in onReady() local
76 Binder.restoreCallingIdentity(ident); in onReady()
82 final long ident = Binder.clearCallingIdentity(); in onActive() local
86 Binder.restoreCallingIdentity(ident); in onActive()
92 final long ident = Binder.clearCallingIdentity(); in onCaptureQueueEmpty() local
96 Binder.restoreCallingIdentity(ident); in onCaptureQueueEmpty()
[all …]
DCameraCaptureSessionImpl.java595 final long ident = Binder.clearCallingIdentity(); in createCaptureCallbackProxyWithExecutor()
601 Binder.restoreCallingIdentity(ident); in createCaptureCallbackProxyWithExecutor()
610 final long ident = Binder.clearCallingIdentity(); in createCaptureCallbackProxyWithExecutor() local
615 Binder.restoreCallingIdentity(ident); in createCaptureCallbackProxyWithExecutor()
624 final long ident = Binder.clearCallingIdentity(); in createCaptureCallbackProxyWithExecutor() local
629 Binder.restoreCallingIdentity(ident); in createCaptureCallbackProxyWithExecutor()
638 final long ident = Binder.clearCallingIdentity(); in createCaptureCallbackProxyWithExecutor() local
643 Binder.restoreCallingIdentity(ident); in createCaptureCallbackProxyWithExecutor()
652 final long ident = Binder.clearCallingIdentity(); in createCaptureCallbackProxyWithExecutor() local
657 Binder.restoreCallingIdentity(ident); in createCaptureCallbackProxyWithExecutor()
[all …]
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java90 final long ident = Binder.clearCallingIdentity(); in authorizeReport() local
95 Binder.restoreCallingIdentity(ident); in authorizeReport()
112 final long ident = Binder.clearCallingIdentity(); in cancelAuthorization() local
116 Binder.restoreCallingIdentity(ident); in cancelAuthorization()
127 final long ident = Binder.clearCallingIdentity(); in sendReportReadyBroadcast() local
148 Binder.restoreCallingIdentity(ident); in sendReportReadyBroadcast()
169 final long ident = Binder.clearCallingIdentity(); in approveReport() local
173 Binder.restoreCallingIdentity(ident); in approveReport()
184 final long ident = Binder.clearCallingIdentity(); in denyReport() local
188 Binder.restoreCallingIdentity(ident); in denyReport()
[all …]
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java494 final long ident = Binder.clearCallingIdentity(); in dump() local
498 Binder.restoreCallingIdentity(ident); in dump()
507 final long ident = Binder.clearCallingIdentity(); in getDreamComponents() local
511 Binder.restoreCallingIdentity(ident); in getDreamComponents()
520 final long ident = Binder.clearCallingIdentity(); in setDreamComponents() local
524 Binder.restoreCallingIdentity(ident); in setDreamComponents()
533 final long ident = Binder.clearCallingIdentity(); in getDefaultDreamComponent() local
537 Binder.restoreCallingIdentity(ident); in getDefaultDreamComponent()
545 final long ident = Binder.clearCallingIdentity(); in isDreaming() local
549 Binder.restoreCallingIdentity(ident); in isDreaming()
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java159 final long ident = Binder.clearCallingIdentity(); in runJob() local
175 Binder.restoreCallingIdentity(ident); in runJob()
206 final long ident = Binder.clearCallingIdentity(); in timeout() local
210 Binder.restoreCallingIdentity(ident); in timeout()
242 final long ident = Binder.clearCallingIdentity(); in cancelJob() local
246 Binder.restoreCallingIdentity(ident); in cancelJob()
262 final long ident = Binder.clearCallingIdentity(); in monitorBattery() local
268 Binder.restoreCallingIdentity(ident); in monitorBattery()
330 final long ident = Binder.clearCallingIdentity(); in getJobState() local
336 Binder.restoreCallingIdentity(ident); in getJobState()
[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/wm/
DSession.java250 long ident = Binder.clearCallingIdentity(); in performHapticFeedback() local
255 Binder.restoreCallingIdentity(ident); in performHapticFeedback()
266 final long ident = Binder.clearCallingIdentity(); in performDrag() local
271 Binder.restoreCallingIdentity(ident); in performDrag()
277 final long ident = Binder.clearCallingIdentity(); in reportDropResult() local
281 Binder.restoreCallingIdentity(ident); in reportDropResult()
287 final long ident = Binder.clearCallingIdentity(); in cancelDragAndDrop() local
291 Binder.restoreCallingIdentity(ident); in cancelDragAndDrop()
310 long ident = Binder.clearCallingIdentity(); in startMovingTask() local
314 Binder.restoreCallingIdentity(ident); in startMovingTask()
[all …]
DActivityTaskManagerService.java2040 long ident = Binder.clearCallingIdentity(); in getFocusedStackInfo() local
2050 Binder.restoreCallingIdentity(ident); in getFocusedStackInfo()
2119 final long ident = Binder.clearCallingIdentity(); in removeTask() local
2124 Binder.restoreCallingIdentity(ident); in removeTask()
2133 final long ident = Binder.clearCallingIdentity(); in removeAllVisibleRecentTasks() local
2137 Binder.restoreCallingIdentity(ident); in removeAllVisibleRecentTasks()
2207 long ident = Binder.clearCallingIdentity(); in getTaskBounds() local
2232 Binder.restoreCallingIdentity(ident); in getTaskBounds()
2260 final long ident = Binder.clearCallingIdentity(); in setTaskWindowingMode() local
2284 Binder.restoreCallingIdentity(ident); in setTaskWindowingMode()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkTemplateTest.kt74 private fun NetworkTemplate.assertMatches(ident: NetworkIdentity) = in NetworkTemplate()
75 assertTrue(matches(ident), "$this does not match $ident") in NetworkTemplate()
77 private fun NetworkTemplate.assertDoesNotMatch(ident: NetworkIdentity) = in NetworkTemplate()
78 assertFalse(matches(ident), "$this should match $ident") in NetworkTemplate()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java157 final long ident = mInjector.clearCallingIdentity(); in getTargetUserProfilesUnchecked() local
174 mInjector.restoreCallingIdentity(ident); in getTargetUserProfilesUnchecked()
180 final long ident = mInjector.clearCallingIdentity(); in isPackageEnabled() local
190 mInjector.restoreCallingIdentity(ident); in isPackageEnabled()
200 final long ident = mInjector.clearCallingIdentity(); in verifyActivityCanHandleIntentAndExported() local
220 mInjector.restoreCallingIdentity(ident); in verifyActivityCanHandleIntentAndExported()
225 final long ident = mInjector.clearCallingIdentity(); in isSameProfileGroup() local
229 mInjector.restoreCallingIdentity(ident); in isSameProfileGroup()
DLauncherAppsService.java303 long ident = injectClearCallingIdentity(); in canAccessProfile() local
312 injectRestoreCallingIdentity(ident); in canAccessProfile()
385 final long ident = injectClearCallingIdentity(); in getLauncherActivities() local
435 injectRestoreCallingIdentity(ident); in getLauncherActivities()
508 long ident = Binder.clearCallingIdentity(); in resolveActivity() local
517 Binder.restoreCallingIdentity(ident); in resolveActivity()
536 long ident = injectClearCallingIdentity(); in queryActivitiesForUser() local
546 injectRestoreCallingIdentity(ident); in queryActivitiesForUser()
581 long ident = Binder.clearCallingIdentity(); in isPackageEnabled() local
591 Binder.restoreCallingIdentity(ident); in isPackageEnabled()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java177 public final int ident; field in DeviceAdminInfo.PolicyInfo
185 public PolicyInfo(int ident, String tag, int label, int description) { in PolicyInfo() argument
186 this(ident, tag, label, description, label, description); in PolicyInfo()
189 public PolicyInfo(int ident, String tag, int label, int description, in PolicyInfo() argument
191 this.ident = ident; in PolicyInfo()
245 sRevKnownPolicies.put(pi.ident, pi); in sRevKnownPolicies.put() argument
246 sKnownPolicies.put(pi.tag, pi.ident); in sKnownPolicies.put() argument
483 if (usesPolicy(pi.ident)) { in getUsedPolicies()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiMulticastLockManager.java151 final long ident = Binder.clearCallingIdentity(); in acquireLock() local
159 Binder.restoreCallingIdentity(ident); in acquireLock()
189 final long ident = Binder.clearCallingIdentity(); in removeMulticasterLocked() local
197 Binder.restoreCallingIdentity(ident); in removeMulticasterLocked()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java255 long ident = clearCallingIdentity(); in openDevice() local
267 restoreCallingIdentity(ident); in openDevice()
292 long ident = clearCallingIdentity(); in openAccessory() local
304 restoreCallingIdentity(ident); in openAccessory()
509 final long ident = Binder.clearCallingIdentity(); in getPorts() local
526 Binder.restoreCallingIdentity(ident); in getPorts()
535 final long ident = Binder.clearCallingIdentity(); in getPortStatus() local
539 Binder.restoreCallingIdentity(ident); in getPortStatus()
549 final long ident = Binder.clearCallingIdentity(); in setPortRoles() local
555 Binder.restoreCallingIdentity(ident); in setPortRoles()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java4332 final long ident = Binder.clearCallingIdentity(); in acquireWakeLock() local
4336 Binder.restoreCallingIdentity(ident); in acquireWakeLock()
4348 final long ident = Binder.clearCallingIdentity(); in releaseWakeLock() local
4352 Binder.restoreCallingIdentity(ident); in releaseWakeLock()
4386 final long ident = Binder.clearCallingIdentity(); in updateWakeLockWorkSource() local
4390 Binder.restoreCallingIdentity(ident); in updateWakeLockWorkSource()
4396 final long ident = Binder.clearCallingIdentity(); in isWakeLockLevelSupported() local
4400 Binder.restoreCallingIdentity(ident); in isWakeLockLevelSupported()
4433 final long ident = Binder.clearCallingIdentity(); in userActivity() local
4437 Binder.restoreCallingIdentity(ident); in userActivity()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java979 long ident = Binder.clearCallingIdentity(); in doBackup() local
1001 Binder.restoreCallingIdentity(ident); in doBackup()
1022 long ident = Binder.clearCallingIdentity(); in doRestore() local
1043 Binder.restoreCallingIdentity(ident); in doRestore()
1061 long ident = Binder.clearCallingIdentity(); in doFullBackup() local
1092 Binder.restoreCallingIdentity(ident); in doFullBackup()
1108 final long ident = Binder.clearCallingIdentity(); in doMeasureFullBackup() local
1122 Binder.restoreCallingIdentity(ident); in doMeasureFullBackup()
1136 long ident = Binder.clearCallingIdentity(); in doRestoreFile() local
1148 Binder.restoreCallingIdentity(ident); in doRestoreFile()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java1155 final long ident = Binder.clearCallingIdentity(); in postSingleAccessPriorityChangeUpdate() local
1165 Binder.restoreCallingIdentity(ident); in postSingleAccessPriorityChangeUpdate()
1171 final long ident = Binder.clearCallingIdentity(); in postSingleCameraOpenedUpdate() local
1181 Binder.restoreCallingIdentity(ident); in postSingleCameraOpenedUpdate()
1187 final long ident = Binder.clearCallingIdentity(); in postSingleCameraClosedUpdate() local
1197 Binder.restoreCallingIdentity(ident); in postSingleCameraClosedUpdate()
1204 final long ident = Binder.clearCallingIdentity(); in postSingleUpdate() local
1214 Binder.restoreCallingIdentity(ident); in postSingleUpdate()
1217 final long ident = Binder.clearCallingIdentity(); in postSingleUpdate() local
1227 Binder.restoreCallingIdentity(ident); in postSingleUpdate()
[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/om/
DOverlayManagerService.java586 final long ident = Binder.clearCallingIdentity();
592 Binder.restoreCallingIdentity(ident);
610 final long ident = Binder.clearCallingIdentity();
617 Binder.restoreCallingIdentity(ident);
635 final long ident = Binder.clearCallingIdentity();
642 Binder.restoreCallingIdentity(ident);
661 final long ident = Binder.clearCallingIdentity();
667 Binder.restoreCallingIdentity(ident);
685 final long ident = Binder.clearCallingIdentity();
691 Binder.restoreCallingIdentity(ident);
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java281 final int ident; field in SyncStorageEngine.AuthorityInfo
301 ident = toCopy.ident; in AuthorityInfo()
316 ident = id; in AuthorityInfo()
1020 SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident); in markPending()
1049 removing.put(auth.ident, auth); in removeStaleAccounts()
1060 int ident = removing.keyAt(i); in removeStaleAccounts() local
1065 mAuthorities.remove(ident); in removeStaleAccounts()
1069 if (mSyncStatus.keyAt(j) == ident) { in removeStaleAccounts()
1076 if (mSyncHistory.get(j).authorityId == ident) { in removeStaleAccounts()
1107 authorityInfo.ident, in addActiveSync()
[all …]
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistShellCommand.java90 final long ident = Binder.clearCallingIdentity(); in runForceGenerateReport() local
105 Binder.restoreCallingIdentity(ident); in runForceGenerateReport()

12345