Home
last modified time | relevance | path

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

123

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DLocalCallingIdentityTest.java63 final LocalCallingIdentity ident = LocalCallingIdentity.fromSelf(context); in testFromSelf() local
66 ident.getPackageName()); in testFromSelf()
68 Arrays.asList(ident.getSharedPackageNamesArray())); in testFromSelf()
70 assertTrue(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_SELF)); in testFromSelf()
71 assertFalse(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_SHELL)); in testFromSelf()
72 assertTrue(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_MANAGER)); in testFromSelf()
73 assertFalse(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_DELEGATOR)); in testFromSelf()
75 assertFalse(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_REDACTION_NEEDED)); in testFromSelf()
76 assertFalse(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_LEGACY_GRANTED)); in testFromSelf()
77 assertFalse(ident.hasPermission(LocalCallingIdentity.PERMISSION_IS_LEGACY_READ)); in testFromSelf()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentitySet.java56 public NetworkIdentitySet(@NonNull Set<NetworkIdentity> ident) { in NetworkIdentitySet() argument
57 super(ident); in NetworkIdentitySet()
127 for (NetworkIdentity ident : this) { in writeToStream()
128 out.writeInt(ident.getType()); in writeToStream()
129 out.writeInt(ident.getRatType()); in writeToStream()
130 writeOptionalString(out, ident.getSubscriberId()); in writeToStream()
131 writeOptionalString(out, ident.getWifiNetworkKey()); in writeToStream()
132 out.writeBoolean(ident.isRoaming()); in writeToStream()
133 out.writeBoolean(ident.isMetered()); in writeToStream()
134 out.writeBoolean(ident.isDefaultNetwork()); in writeToStream()
[all …]
DNetworkTemplate.java725 public boolean matches(@NonNull NetworkIdentity ident) { in matches() argument
726 Objects.requireNonNull(ident); in matches()
727 if (!matchesMetered(ident)) return false; in matches()
728 if (!matchesRoaming(ident)) return false; in matches()
729 if (!matchesDefaultNetwork(ident)) return false; in matches()
730 if (!matchesOemNetwork(ident)) return false; in matches()
734 return matchesMobile(ident); in matches()
736 return matchesWifi(ident); in matches()
738 return matchesEthernet(ident); in matches()
740 return matchesBluetooth(ident); in matches()
[all …]
DNetworkStatsCollection.java315 && templateMatches(template, key.ident)) { in getHistory()
402 if (templateMatches(template, key.ident) in getSummary()
412 entry.defaultNetwork = key.ident.areAllMembersOnDefaultNetwork() in getSummary()
414 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
415 entry.roaming = key.ident.isAnyMemberRoaming() ? ROAMING_YES : ROAMING_NO; in getSummary()
435 public void recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start, in recordData() argument
437 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag); in recordData()
477 NetworkIdentitySet ident, int uid, int set, int tag) { in findOrCreateHistory() argument
478 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory()
520 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in read() local
[all …]
DNetworkIdentity.java129 final NetworkIdentity ident = (NetworkIdentity) obj; in equals() local
130 return mType == ident.mType && mRatType == ident.mRatType && mRoaming == ident.mRoaming in equals()
131 && Objects.equals(mSubscriberId, ident.mSubscriberId) in equals()
132 && Objects.equals(mWifiNetworkKey, ident.mWifiNetworkKey) in equals()
133 && mMetered == ident.mMetered in equals()
134 && mDefaultNetwork == ident.mDefaultNetwork in equals()
135 && mOemManaged == ident.mOemManaged in equals()
136 && mSubId == ident.mSubId; in equals()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/test/
Dsequence.rs16 ($ctx:ident, ) => { None };
17 ($ctx:ident, Lower Tester -> IUT: $packet:ident {
18 $($name:ident: $value:expr),* $(,)?
37 ($ctx:ident, Upper Tester -> IUT: $packet:ident {
38 $($name:ident: $value:expr),* $(,)?
57 ($ctx:ident, IUT -> Upper Tester: $packet:ident {
58 $($name:ident: $expected_value:expr),* $(,)?
75 ($ctx:ident, IUT -> Lower Tester: $packet:ident {
76 $($name:ident: $expected_value:expr),* $(,)?
93 ($ctx:ident, repeat $number:literal times with ($var:ident in $iterable:expr) {
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/macros/src/
Dlib.rs98 let (ident, rpath) = parsed_cptr.fn_pair; in cb_variant()
103 let ident = format_ident!("_{}", i); in cb_variant() localVariable
104 params.extend(quote! { #ident: #start, }); in cb_variant()
110 args.extend(quote! { #end::from(#ident), }); in cb_variant()
112 args.extend(quote! {#ident,}); in cb_variant()
128 extern "C" fn #ident(#params) { in cb_variant()
204 let fn_name = input.sig.ident.to_string(); in generate_profile_enabled_or_tokenstream()
260 let ident = input.ident.clone(); in gen_cxx_extern_trivial() localVariable
273 Some(seg) if seg.ident == "bindings" => {} in gen_cxx_extern_trivial()
278 Some(seg) if seg.ident == "root" => { in gen_cxx_extern_trivial()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java158 LocalCallingIdentity ident = fromExternal(context, userCache, uid, sharedPackageNames[0], in fromExternal() local
160 ident.sharedPackageNames = sharedPackageNames; in fromExternal()
161 ident.sharedPackageNamesResolved = true; in fromExternal()
165 ident.hasPermission |= PERMISSION_IS_REDACTION_NEEDED; in fromExternal()
166 ident.hasPermissionResolved = PERMISSION_IS_REDACTION_NEEDED; in fromExternal()
170 return ident; in fromExternal()
192 final LocalCallingIdentity ident = new LocalCallingIdentity( in fromSelfAsUser() local
200 ident.packageName = ident.packageNameUnchecked; in fromSelfAsUser()
201 ident.packageNameResolved = true; in fromSelfAsUser()
203 ident.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in fromSelfAsUser()
[all …]
DMediaDocumentsProvider.java269 final Ident ident = new Ident(); in getIdentForDocId() local
272 ident.type = docId; in getIdentForDocId()
273 ident.id = -1; in getIdentForDocId()
275 ident.type = docId.substring(0, split); in getIdentForDocId()
276 ident.id = Long.parseLong(docId.substring(split + 1)); in getIdentForDocId()
278 return ident; in getIdentForDocId()
418 final Ident ident = getIdentForDocId(docId); in getUriForDocumentId() local
419 if (TYPE_IMAGE.equals(ident.type) && ident.id != -1) { in getUriForDocumentId()
421 Images.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId()
422 } else if (TYPE_VIDEO.equals(ident.type) && ident.id != -1) { in getUriForDocumentId()
[all …]
/packages/modules/Bluetooth/system/gd/rust/common/src/
Dinit_flags.rs41 ($flag:ident) => {
46 ($flag:ident $type:ty) => {
54 ($flag:ident) => {
62 ($flag:ident $type:ty) => {
74 name: $name:ident
96 name: $name:ident
97 flags: { $($flag:ident $(: $type:ty)? $(= $default:tt)?,)* }
98 … extra_parsed_flags: { $($extra_flag:tt => $extra_flag_fn:ident(_, _ $(,$extra_args:tt)*),)*}) => {
162 flags: { $($flag:ident $(: $type:ty)? $(= $default:tt)?,)* }
163 … extra_parsed_flags: { $($extra_flag:tt => $extra_flag_fn:ident(_, _ $(,$extra_args:tt)*),)*}) => {
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DRotationProvider.java192 int ident = dAngle / 10; in sensorOrientationToRotationDegrees() local
193 if (ident == 8 || ident == 9 in sensorOrientationToRotationDegrees()
194 || ident == 26 || ident == 27) { in sensorOrientationToRotationDegrees()
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs153 let method_name = method.sig.ident; in generate_dbus_exporter()
167 let ident = pat_ident.ident.clone(); in generate_dbus_exporter() localVariable
168 let mut dbus_input_ident = ident.to_string(); in generate_dbus_exporter()
171 let ident_string = ident.to_string(); in generate_dbus_exporter()
178 #method_args #ident, in generate_dbus_exporter()
192 let #ident = <#arg_type as DBusArg>::from_dbus( in generate_dbus_exporter()
199 if let Result::Err(e) = #ident { in generate_dbus_exporter()
205 let #ident = #ident.unwrap(); in generate_dbus_exporter()
210 <#arg_type as DBusArg>::log(&#ident), in generate_dbus_exporter()
390 let ident = pat_ident.ident.clone(); in generate_dbus_interface_client() localVariable
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java271 long ident = Binder.clearCallingIdentity(); in enforceNearbyDevicesPermission() local
296 Binder.restoreCallingIdentity(ident); in enforceNearbyDevicesPermission()
299 ident = Binder.clearCallingIdentity(); in enforceNearbyDevicesPermission()
310 Binder.restoreCallingIdentity(ident); in enforceNearbyDevicesPermission()
328 long ident = Binder.clearCallingIdentity(); in isTargetSdkLessThan() local
349 Binder.restoreCallingIdentity(ident); in isTargetSdkLessThan()
949 long ident = Binder.clearCallingIdentity(); in retrieveDevicePolicyManagerFromUserContext() local
955 Binder.restoreCallingIdentity(ident); in retrieveDevicePolicyManagerFromUserContext()
964 long ident = Binder.clearCallingIdentity(); in getDeviceOwner() local
971 Binder.restoreCallingIdentity(ident); in getDeviceOwner()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/netstats/
DNetworkStatsCollectionTest.kt43 val ident = setOf<NetworkIdentity>() in testBuilder() constant
44 val key1 = NetworkStatsCollection.Key(ident, /* uid */ 0, /* set */ 0, /* tag */ 0) in testBuilder()
45 val key2 = NetworkStatsCollection.Key(ident, /* uid */ 1, /* set */ 0, /* tag */ 0) in testBuilder()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt115 private fun NetworkTemplate.assertMatches(ident: NetworkIdentity) = in NetworkTemplate()
116 assertTrue(matches(ident), "$this does not match $ident") in NetworkTemplate()
118 private fun NetworkTemplate.assertDoesNotMatch(ident: NetworkIdentity) = in NetworkTemplate()
119 assertFalse(matches(ident), "$this should match $ident") in NetworkTemplate()
589 val ident = buildNetworkIdentity(mockContext, buildNetworkState(networkType, in matchOemManagedIdent() constant
599 template.assertMatches(ident) in matchOemManagedIdent()
601 template.assertDoesNotMatch(ident) in matchOemManagedIdent()
605 templateOemAll.assertMatches(ident) in matchOemManagedIdent()
608 templateOemYes.assertDoesNotMatch(ident) in matchOemManagedIdent()
610 templateOemYes.assertMatches(ident) in matchOemManagedIdent()
/packages/modules/Virtualization/vmbase/src/
Dlayout.rs31 ($symbol:ident) => {{
42 ($begin:ident,$end:ident) => {{
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMulticastLockManager.java163 final long ident = Binder.clearCallingIdentity(); in acquireLock() local
168 Binder.restoreCallingIdentity(ident); in acquireLock()
199 final long ident = Binder.clearCallingIdentity(); in removeMulticasterLocked() local
204 Binder.restoreCallingIdentity(ident); in removeMulticasterLocked()
DWifiServiceImpl.java927 long ident = Binder.clearCallingIdentity(); in startScan() local
964 Binder.restoreCallingIdentity(ident); in startScan()
1211 long ident = Binder.clearCallingIdentity(); in isGuestUser() local
1215 Binder.restoreCallingIdentity(ident); in isGuestUser()
1304 long ident = Binder.clearCallingIdentity(); in setWifiEnabled() local
1316 Binder.restoreCallingIdentity(ident); in setWifiEnabled()
1343 long ident = Binder.clearCallingIdentity(); in setWifiEnabledInternal() local
1350 Binder.restoreCallingIdentity(ident); in setWifiEnabledInternal()
2751 long ident = Binder.clearCallingIdentity(); in startLocalOnlyHotspot() local
2759 Binder.restoreCallingIdentity(ident); in startLocalOnlyHotspot()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java127 long ident = Binder.clearCallingIdentity(); in getDeviceOwner() local
134 Binder.restoreCallingIdentity(ident); in getDeviceOwner()
184 long ident = Binder.clearCallingIdentity(); in retrieveDevicePolicyManagerFromUserContext() local
190 Binder.restoreCallingIdentity(ident); in retrieveDevicePolicyManagerFromUserContext()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/eco/
DEnergyModesContentProvider.java135 final long ident = Binder.clearCallingIdentity(); in getEnergyModesFromBinder() local
139 Binder.restoreCallingIdentity(ident); in getEnergyModesFromBinder()
158 final long ident = Binder.clearCallingIdentity(); in setEnergyModeFromBinder() local
168 Binder.restoreCallingIdentity(ident); in setEnergyModeFromBinder()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/btif_macros/src/
Dlib.rs100 let trait_ident = ast.ident; in btif_callbacks_dispatcher()
129 let attr_name = i.ident; in btif_callbacks_dispatcher()
134 let method_ident = m.sig.ident; in btif_callbacks_dispatcher()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java212 long ident = Binder.clearCallingIdentity(); in isDeviceOwner() local
217 Binder.restoreCallingIdentity(ident); in isDeviceOwner()
230 long ident = Binder.clearCallingIdentity(); in isSystem() local
240 Binder.restoreCallingIdentity(ident); in isSystem()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsRecorder.java279 final NetworkIdentitySet ident = ifaceIdent.get(entry.iface); in recordSnapshotLocked() local
280 if (ident == null) { in recordSnapshotLocked()
291 mPending.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
296 … mSinceBoot.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
301 complete.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); in recordSnapshotLocked()
DNetworkStatsService.java1602 final long ident = Binder.clearCallingIdentity();
1606 Binder.restoreCallingIdentity(ident);
1870 final long ident = Binder.clearCallingIdentity();
1875 Binder.restoreCallingIdentity(ident);
2375 final NetworkIdentity ident = NetworkIdentity.buildNetworkIdentity(mContext, snapshot,
2391 findOrCreateNetworkIdentitySet(mActiveIfaces, baseIface).add(ident);
2392 findOrCreateNetworkIdentitySet(mActiveUidIfaces, baseIface).add(ident);
2400 NetworkCapabilities.NET_CAPABILITY_IMS) && !ident.isMetered()) {
2404 .setType(ident.getType())
2405 .setRatType(ident.getRatType())
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLocationPermissionChecker.java236 final long ident = Binder.clearCallingIdentity(); in isTargetSdkLessThan() local
249 Binder.restoreCallingIdentity(ident); in isTargetSdkLessThan()

123