/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 80 int uid = 10009; in insertKey_replacesOldKey() local 87 userId, uid, alias, oldWrappedKey); in insertKey_replacesOldKey() 94 userId, uid, alias, newWrappedKey); in insertKey_replacesOldKey() 96 WrappedKey retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); in insertKey_replacesOldKey() 129 int uid = 60001; in removeKey_removesAKey() local 135 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, key); in removeKey_removesAKey() 137 assertTrue(mRecoverableKeyStoreDb.removeKey(uid, alias)); in removeKey_removesAKey() 139 assertNull(mRecoverableKeyStoreDb.getKey(uid, alias)); in removeKey_removesAKey() 153 int uid = 1009; in getKey_returnsInsertedKey() local 160 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in getKey_returnsInsertedKey() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 64 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() argument 66 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission() 80 public boolean checkChangePermission(int uid) { in checkChangePermission() argument 82 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid); in checkChangePermission() 96 public boolean checkWifiAccessPermission(int uid) { in checkWifiAccessPermission() argument 98 int permission = mWifiPermissionsWrapper.getAccessWifiStatePermission(uid); in checkWifiAccessPermission() 112 public void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() argument 113 if (!checkCallersLocationPermission(pkgName, uid)) { in enforceLocationPermission() 114 throw new SecurityException("UID " + uid + " does not have Coarse Location permission"); in enforceLocationPermission() 126 public boolean checkCallersLocationPermission(String pkgName, int uid) { in checkCallersLocationPermission() argument [all …]
|
D | WifiPermissionsWrapper.java | 52 public int getCallingUserId(int uid) { in getCallingUserId() argument 53 return UserHandle.getUserId(uid); in getCallingUserId() 77 public int getUidPermission(String permissionType, int uid) { in getUidPermission() argument 78 return ActivityManager.checkUidPermission(permissionType, uid); in getUidPermission() 95 public int getOverrideWifiConfigPermission(int uid) throws RemoteException { in getOverrideWifiConfigPermission() argument 97 android.Manifest.permission.OVERRIDE_WIFI_CONFIG, uid); in getOverrideWifiConfigPermission() 107 public int getChangeWifiConfigPermission(int uid) throws RemoteException { in getChangeWifiConfigPermission() argument 109 Manifest.permission.CHANGE_WIFI_STATE, uid); in getChangeWifiConfigPermission() 119 public int getAccessWifiStatePermission(int uid) throws RemoteException { in getAccessWifiStatePermission() argument 121 Manifest.permission.ACCESS_WIFI_STATE, uid); in getAccessWifiStatePermission() [all …]
|
/frameworks/native/services/sensorservice/ |
D | BatteryService.h | 33 void enableSensorImpl(uid_t uid, int handle); 34 void disableSensorImpl(uid_t uid, int handle); 35 void cleanupImpl(uid_t uid); 38 uid_t uid; member 41 Info() : uid(0), handle(0), count(0) { } in Info() 42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info() 44 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid); 50 bool addSensor(uid_t uid, int handle); 51 bool removeSensor(uid_t uid, int handle); 55 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument [all …]
|
D | BatteryService.cpp | 36 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument 38 Info key(uid, handle); in addSensor() 48 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument 50 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor() 58 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument 60 if (addSensor(uid, handle)) { in enableSensorImpl() 62 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl() 67 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument 69 if (removeSensor(uid, handle)) { in disableSensorImpl() 71 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl() [all …]
|
/frameworks/native/libs/binder/ |
D | IBatteryStats.cpp | 37 virtual void noteStartSensor(int uid, int sensor) { in noteStartSensor() argument 40 data.writeInt32(uid); in noteStartSensor() 45 virtual void noteStopSensor(int uid, int sensor) { in noteStopSensor() argument 48 data.writeInt32(uid); in noteStopSensor() 53 virtual void noteStartVideo(int uid) { in noteStartVideo() argument 56 data.writeInt32(uid); in noteStartVideo() 60 virtual void noteStopVideo(int uid) { in noteStopVideo() argument 63 data.writeInt32(uid); in noteStopVideo() 67 virtual void noteStartAudio(int uid) { in noteStartAudio() argument 70 data.writeInt32(uid); in noteStartAudio() [all …]
|
D | PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { in check() 42 e.uid = uid; in check() 52 uid_t uid, bool granted) { in cache() argument 64 e.uid = uid; in cache() 85 uid_t uid = ipcState->getCallingUid(); in checkCallingPermission() local 87 if (outUid) *outUid = uid; in checkCallingPermission() 88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission() 92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission() argument 93 if ((uid == 0) || (pid == getpid())) { in checkPermission() 100 if (pc.check(&granted, permission, uid) != NO_ERROR) { in checkPermission() [all …]
|
/frameworks/av/services/audioflinger/ |
D | ServiceUtilities.cpp | 43 bool isTrustedCallingUid(uid_t uid) { in isTrustedCallingUid() argument 44 switch (uid) { in isTrustedCallingUid() 54 const String16& opPackageName, uid_t uid) { in resolveCallingPackage() argument 66 permissionController.getPackagesForUid(uid, packages); in resolveCallingPackage() 68 ALOGE("No packages for uid %d", uid); in resolveCallingPackage() 74 static inline bool isAudioServerOrRoot(uid_t uid) { in isAudioServerOrRoot() argument 76 return uid == AID_ROOT || uid == AID_AUDIOSERVER ; in isAudioServerOrRoot() 80 uid_t uid, bool start) { in checkRecordingInternal() argument 83 if (isAudioServerOrRoot(uid)) return true; in checkRecordingInternal() 89 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid); in checkRecordingInternal() [all …]
|
/frameworks/av/media/utils/ |
D | BatteryNotifier.cpp | 41 void BatteryNotifier::noteStartVideo(uid_t uid) { in noteStartVideo() argument 44 if (mVideoRefCounts[uid] == 0 && batteryService != nullptr) { in noteStartVideo() 45 batteryService->noteStartVideo(uid); in noteStartVideo() 47 mVideoRefCounts[uid]++; in noteStartVideo() 50 void BatteryNotifier::noteStopVideo(uid_t uid) { in noteStopVideo() argument 52 if (mVideoRefCounts.find(uid) == mVideoRefCounts.end()) { in noteStopVideo() 53 ALOGW("%s: video refcount is broken for uid(%d).", __FUNCTION__, (int)uid); in noteStopVideo() 59 mVideoRefCounts[uid]--; in noteStopVideo() 60 if (mVideoRefCounts[uid] == 0) { in noteStopVideo() 62 batteryService->noteStopVideo(uid); in noteStopVideo() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 36 void noteStartSensor(int uid, int sensor); in noteStartSensor() argument 37 void noteStopSensor(int uid, int sensor); in noteStopSensor() argument 38 void noteStartVideo(int uid); in noteStartVideo() argument 39 void noteStopVideo(int uid); in noteStopVideo() argument 40 void noteStartAudio(int uid); in noteStartAudio() argument 41 void noteStopAudio(int uid); in noteStopAudio() argument 44 void noteFlashlightOn(int uid); in noteFlashlightOn() argument 45 void noteFlashlightOff(int uid); in noteFlashlightOff() argument 46 void noteStartCamera(int uid); in noteStartCamera() argument 47 void noteStopCamera(int uid); in noteStopCamera() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 262 int uid, @NonNull String packageName) { in onRunAnyAppOpsChanged() argument 263 updateJobsForUidPackage(uid, packageName, sender.isUidActive(uid)); in onRunAnyAppOpsChanged() 265 if (!sender.areAlarmsRestricted(uid, packageName, /*allowWhileIdle=*/ false)) { in onRunAnyAppOpsChanged() 266 unblockAlarmsForUidPackage(uid, packageName); in onRunAnyAppOpsChanged() 267 } else if (!sender.areAlarmsRestricted(uid, packageName, /*allowWhileIdle=*/ true)){ in onRunAnyAppOpsChanged() 272 if (!sender.isRunAnyInBackgroundAppOpsAllowed(uid, packageName)) { in onRunAnyAppOpsChanged() 273 Slog.v(TAG, "Package " + packageName + "/" + uid in onRunAnyAppOpsChanged() 275 stopForegroundServicesForUidPackage(uid, packageName); in onRunAnyAppOpsChanged() 282 private void onUidForegroundStateChanged(AppStateTracker sender, int uid) { in onUidForegroundStateChanged() argument 283 onUidForeground(uid, sender.isUidInForeground(uid)); in onUidForegroundStateChanged() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionCallback.aidl | 29 void onCommand(String packageName, int pid, int uid, ISessionControllerCallback caller, in onCommand() argument 31 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent, in onMediaButton() argument 33 void onMediaButtonFromController(String packageName, int pid, int uid, in onMediaButtonFromController() argument 37 void onPrepare(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPrepare() argument 38 void onPrepareFromMediaId(String packageName, int pid, int uid, in onPrepareFromMediaId() argument 40 void onPrepareFromSearch(String packageName, int pid, int uid, in onPrepareFromSearch() argument 42 void onPrepareFromUri(String packageName, int pid, int uid, ISessionControllerCallback caller, in onPrepareFromUri() argument 44 void onPlay(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPlay() argument 45 void onPlayFromMediaId(String packageName, int pid, int uid, ISessionControllerCallback caller, in onPlayFromMediaId() argument 47 void onPlayFromSearch(String packageName, int pid, int uid, ISessionControllerCallback caller, in onPlayFromSearch() argument [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 134 public static boolean isIsolated(int uid) { in isIsolated() argument 135 if (uid > 0) { in isIsolated() 136 final int appId = getAppId(uid); in isIsolated() 148 public static boolean isApp(int uid) { in isApp() argument 149 if (uid > 0) { in isApp() 150 final int appId = getAppId(uid); in isApp() 161 public static boolean isCore(int uid) { in isCore() argument 162 if (uid >= 0) { in isCore() 163 final int appId = getAppId(uid); in isCore() 175 public static UserHandle getUserHandleForUid(int uid) { in getUserHandleForUid() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingConfig.java | 27 void setImportance(String packageName, int uid, int importance); in setImportance() argument 28 int getImportance(String packageName, int uid); in getImportance() argument 29 void setShowBadge(String packageName, int uid, boolean showBadge); in setShowBadge() argument 30 boolean canShowBadge(String packageName, int uid); in canShowBadge() argument 32 boolean isGroupBlocked(String packageName, int uid, String groupId); in isGroupBlocked() argument 35 int uid); in getNotificationChannelGroups() argument 36 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup() argument 39 int uid, boolean includeDeleted, boolean includeNonGrouped); in getNotificationChannelGroups() argument 40 void createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel() argument 42 …void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, boolean fromUser); in updateNotificationChannel() argument [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 100 Context context, int subId, int pid, int uid, String callingPackage, String message) { in checkReadPhoneState() argument 102 context, TELEPHONY_SUPPLIER, subId, pid, uid, callingPackage, message); in checkReadPhoneState() 107 Context context, Supplier<ITelephony> telephonySupplier, int subId, int pid, int uid, in checkReadPhoneState() argument 111 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, uid, message); in checkReadPhoneState() 118 android.Manifest.permission.READ_PHONE_STATE, pid, uid, message); in checkReadPhoneState() 123 enforceCarrierPrivilege(telephonySupplier, subId, uid, message); in checkReadPhoneState() 133 return appOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneState() 143 Context context, int subId, int pid, int uid, String callingPackage) { in checkReadCallLog() argument 145 context, TELEPHONY_SUPPLIER, subId, pid, uid, callingPackage); in checkReadCallLog() 150 Context context, Supplier<ITelephony> telephonySupplier, int subId, int pid, int uid, in checkReadCallLog() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySnapshotStorage.java | 81 public synchronized void put(int uid, KeyChainSnapshot snapshot) { in put() argument 82 mSnapshotByUid.put(uid, snapshot); in put() 85 writeToDisk(uid, snapshot); in put() 88 String.format(Locale.US, "Error persisting snapshot for %d to disk", uid), in put() 97 public synchronized KeyChainSnapshot get(int uid) { in get() argument 98 KeyChainSnapshot snapshot = mSnapshotByUid.get(uid); in get() 104 return readFromDisk(uid); in get() 106 Log.e(TAG, String.format(Locale.US, "Error reading snapshot for %d from disk", uid), e); in get() 114 public synchronized void remove(int uid) { in remove() argument 115 mSnapshotByUid.remove(uid); in remove() [all …]
|
D | RecoverableKeyStoreDb.java | 96 public long insertKey(int userId, int uid, String alias, WrappedKey wrappedKey) { in insertKey() argument 100 values.put(KeysEntry.COLUMN_NAME_UID, uid); in insertKey() 115 @Nullable public WrappedKey getKey(int uid, String alias) { in getKey() argument 126 String[] selectionArguments = { Integer.toString(uid), alias }; in getKey() 146 + "Should only ever be 0 or 1.", count, uid, alias)); in getKey() 167 public boolean removeKey(int uid, String alias) { in removeKey() argument 171 String[] selectionArgs = { Integer.toString(uid), alias }; in removeKey() 184 public @NonNull Map<String, Integer> getStatusForAllKeys(int uid) { in getStatusForAllKeys() argument 192 String[] selectionArguments = {Integer.toString(uid)}; in getStatusForAllKeys() 224 public int setRecoveryStatus(int uid, String alias, int status) { in setRecoveryStatus() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() argument 86 uid.getWakelockStats().entrySet()) { in writeUid() 109 uid.getSyncStats().entrySet()) { in writeUid() 115 uid.getJobStats().entrySet()) { in writeUid() 120 sensors = uid.getSensorStats(); in writeUid() 136 pids = uid.getPidStats(); in writeUid() 146 uid.getProcessStats().entrySet()) { in writeUid() 154 uid.getPackageStats().entrySet()) { in writeUid() 160 controller = uid.getWifiControllerActivity(); in writeUid() 179 controller = uid.getBluetoothControllerActivity(); in writeUid() [all …]
|
D | BatteryStatsService.java | 206 public void noteJobsDeferred(int uid, int numDeferred, long sinceLast) { in noteJobsDeferred() argument 207 if (DBG) Slog.d(TAG, "Jobs deferred " + uid + ": " + numDeferred + " " + sinceLast); in noteJobsDeferred() 208 BatteryStatsService.this.noteJobsDeferred(uid, numDeferred, sinceLast); in noteJobsDeferred() 300 void removeUid(int uid) { in removeUid() argument 302 mStats.removeUidStatsLocked(uid); in removeUid() 330 void noteProcessStart(String name, int uid) { in noteProcessStart() argument 332 mStats.noteProcessStartLocked(name, uid); in noteProcessStart() 333 StatsLog.write(StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED, uid, name, in noteProcessStart() 338 void noteProcessCrash(String name, int uid) { in noteProcessCrash() argument 340 mStats.noteProcessCrashLocked(name, uid); in noteProcessCrash() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManagerTest.java | 205 int uid = Binder.getCallingUid(); in importKey_storesTheKey() local 211 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKey_storesTheKey() 212 assertThat(mRecoverableKeyStoreDb.getShouldCreateSnapshot(userId, uid)).isTrue(); in importKey_storesTheKey() 238 int uid = Binder.getCallingUid(); in removeKey_removesAKey() local 243 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNull(); in removeKey_removesAKey() 248 int uid = Binder.getCallingUid(); in removeKey_updatesShouldCreateSnapshot() local 252 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, uid, false); in removeKey_updatesShouldCreateSnapshot() 256 assertThat(mRecoverableKeyStoreDb.getShouldCreateSnapshot(userId, uid)).isTrue(); in removeKey_updatesShouldCreateSnapshot() 261 int uid = Binder.getCallingUid(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() local 263 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, uid, false); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | FakeGateKeeperService.java | 93 public GateKeeperResponse enroll(int uid, byte[] currentPasswordHandle, byte[] currentPassword, in enroll() argument 100 refreshSid(uid, handle.sid, false); in enroll() 101 handleMap.put(uid, newHandle.toBytes()); in enroll() 112 refreshSid(uid, newSid, true); in enroll() 113 handleMap.put(uid, newHandle.toBytes()); in enroll() 118 public GateKeeperResponse verify(int uid, byte[] enrolledPasswordHandle, in verify() argument 120 return verifyChallenge(uid, 0, enrolledPasswordHandle, providedPassword); in verify() 124 public GateKeeperResponse verifyChallenge(int uid, long challenge, in verifyChallenge() argument 129 byte[] knownHandle = handleMap.get(uid); in verifyChallenge() 135 refreshSid(uid, handle.sid, false); in verifyChallenge() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 634 for (int uid : whitelist) { in updatePowerSaveWhitelistUL() 635 mPowerSaveWhitelistExceptIdleAppIds.put(uid, true); in updatePowerSaveWhitelistUL() 641 for (int uid : whitelist) { in updatePowerSaveWhitelistUL() 642 mPowerSaveWhitelistAppIds.put(uid, true); in updatePowerSaveWhitelistUL() 690 final int uid = UserHandle.getUid(userId, app.uid); in addDefaultRestrictBackgroundWhitelistUidsUL() local 691 mDefaultRestrictBackgroundWhitelistUids.append(uid, true); in addDefaultRestrictBackgroundWhitelistUidsUL() 693 Slog.d(TAG, "Adding uid " + uid + " (user " + userId + ") to default restricted " in addDefaultRestrictBackgroundWhitelistUidsUL() 695 + mRestrictBackgroundWhitelistRevokedUids.get(uid)); in addDefaultRestrictBackgroundWhitelistUidsUL() 696 if (!mRestrictBackgroundWhitelistRevokedUids.get(uid)) { in addDefaultRestrictBackgroundWhitelistUidsUL() 698 Slog.d(TAG, "adding default package " + pkg + " (uid " + uid + " for user " in addDefaultRestrictBackgroundWhitelistUidsUL() [all …]
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreProvider.java | 187 int uid, in getAndroidKeyStorePublicKey() argument 201 return new AndroidKeyStoreECPublicKey(alias, uid, (ECPublicKey) publicKey); in getAndroidKeyStorePublicKey() 203 return new AndroidKeyStoreRSAPublicKey(alias, uid, (RSAPublicKey) publicKey); in getAndroidKeyStorePublicKey() 228 @NonNull String alias, int uid) in getKeyCharacteristics() argument 232 alias, null, null, uid, keyCharacteristics); in getKeyCharacteristics() 243 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid, in loadAndroidKeyStorePublicKeyFromKeystore() argument 247 privateKeyAlias, KeymasterDefs.KM_KEY_FORMAT_X509, null, null, uid); in loadAndroidKeyStorePublicKeyFromKeystore() 271 privateKeyAlias, uid, jcaKeyAlgorithm, x509EncodedPublicKey); in loadAndroidKeyStorePublicKeyFromKeystore() 276 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePublicKeyFromKeystore() argument 278 return loadAndroidKeyStorePublicKeyFromKeystore(keyStore, privateKeyAlias, uid, in loadAndroidKeyStorePublicKeyFromKeystore() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockKeyStore.java | 82 private KeyBlob access(int uid, String key, boolean createIfNotExist) { in access() argument 83 if (mStore.get(uid) == null) { in access() 84 mStore.put(uid, new HashMap<String, KeyBlob>()); in access() 86 HashMap<String, KeyBlob> map = mStore.get(uid); in access() 100 public KeyBlob getKeyBlob(int uid, String key) { in getKeyBlob() argument 101 return access(uid, key, false); in getKeyBlob() 104 private boolean put(String key, byte[] value, int uid, int flags) { in put() argument 105 access(uid, key, true).update(value, flags); in put() 109 private boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() argument 110 return put(keyName, key, uid, flags); in importKey() [all …]
|
/frameworks/base/core/java/com/android/server/ |
D | NetworkManagementSocketTagger.java | 64 public static int setThreadSocketStatsUid(int uid) { in setThreadSocketStatsUid() argument 66 threadSocketTags.get().statsUid = uid; in setThreadSocketStatsUid() 88 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { in tagSocketFd() argument 89 if (tag == -1 && uid == -1) return; in tagSocketFd() 92 final int errno = native_tagSocketFd(fd, tag, uid); in tagSocketFd() 96 + uid + ") failed with errno" + errno); in tagSocketFd() 126 public static void setKernelCounterSet(int uid, int counterSet) { in setKernelCounterSet() argument 128 final int errno = native_setCounterSet(counterSet, uid); in setKernelCounterSet() 130 Log.w(TAG, "setKernelCountSet(" + uid + ", " + counterSet + ") failed with errno " in setKernelCounterSet() 136 public static void resetKernelUidStats(int uid) { in resetKernelUidStats() argument [all …]
|