Home
last modified time | relevance | path

Searched refs:sid (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeGateKeeperService.java34 public long sid; field in FakeGateKeeperService.VerifyHandle
36 public VerifyHandle(byte[] password, long sid) { in VerifyHandle() argument
38 this.sid = sid; in VerifyHandle()
46 sid = buffer.getLong(); in VerifyHandle()
54 buffer.putLong(sid); in toBytes()
62 public long sid; field in FakeGateKeeperService.AuthToken
64 public AuthToken(long challenge, long sid) { in AuthToken() argument
66 this.sid = sid; in AuthToken()
75 sid = buffer.getLong(); in AuthToken()
82 buffer.putLong(sid); in toBytes()
[all …]
DMockSyntheticPasswordManager.java64 long sid = buffer.getLong(); in decryptSPBlob() local
68 if (sid != 0 && mGateKeeper.getAuthTokenForSid(sid) == null) { in decryptSPBlob()
75 protected byte[] createSPBlob(String blobKeyName, byte[] data, byte[] applicationId, long sid) { in createSPBlob() argument
82 buffer.putLong(sid); in createSPBlob()
94 return new FakeGateKeeperService.VerifyHandle(handle).sid; in sidFromPasswordHandle()
DCachedSyntheticPasswordTests.java72 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted() local
84 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
93 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted() local
98 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredentialUntrusted()
139 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testUntrustedCredentialChangeBlockedIfSpNotCached() local
147 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testUntrustedCredentialChangeBlockedIfSpNotCached()
DLockSettingsServiceTests.java101 final long sid = 1234; in testChangePasswordFailPrimaryUser() local
103 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
112 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
482 final long sid = 1234; in testChangeCredentials() local
483 initializeStorageWithCredential(userId, oldCredential, oldType, sid); in testChangeCredentials()
486 assertVerifyCredentials(userId, newCredential, newType, sid); in testChangeCredentials()
489 private void assertVerifyCredentials(int userId, String credential, int type, long sid) in assertVerifyCredentials() argument
496 if (sid != -1) assertEquals(sid, mGateKeeperService.getSecureUserId(userId)); in assertVerifyCredentials()
519 private void initializeStorageWithCredential(int userId, String credential, int type, long sid) in initializeStorageWithCredential() argument
522 byte[] oldHash = new VerifyHandle(credential.getBytes(), sid).toBytes(); in initializeStorageWithCredential()
DSyntheticPasswordTests.java121 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() local
127 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential()
151 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() local
163 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential()
/frameworks/base/telephony/common/com/android/internal/telephony/
DHbpcdUtils.java42 public int getMcc(int sid, int tz, int DSTflag, boolean isNitzTimeZone) { in getMcc() argument
52 ArbitraryMccSidMatch.SID + "=" + sid, null, null); in getMcc()
78 MccSidConflicts.SID_CONFLICT + "=" + sid + " and (((" + in getMcc()
113 MccSidRange.RANGE_LOW + "<=" + sid + " and " + in getMcc()
114 MccSidRange.RANGE_HIGH + ">=" + sid, in getMcc()
/frameworks/base/keystore/java/android/security/keystore/
DKeymasterUtils.java178 long sid; in addUserAuthArgs() local
180 sid = spec.getBoundToSpecificSecureUserId(); in addUserAuthArgs()
184 sid = getRootSid(); in addUserAuthArgs()
187 KeymasterArguments.toUint64(sid)); in addUserAuthArgs()
/frameworks/base/services/core/jni/
Dcom_android_server_locksettings_SyntheticPasswordManager.cpp39 jlong sid = handle->user_id; in android_server_SyntheticPasswordManager_nativeSidFromPasswordHandle() local
41 return sid; in android_server_SyntheticPasswordManager_nativeSidFromPasswordHandle()
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java95 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat, in CellIdentityCdma() argument
99 mSystemId = inRangeOrUnavailable(sid, 0, SYSTEM_ID_MAX); in CellIdentityCdma()
221 int sid = mSystemId != CellInfo.UNAVAILABLE ? mSystemId : -1; in asCellLocation() local
224 cl.setCellLocationData(bsid, mLatitude, mLongitude, sid, nid); in asCellLocation()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java638 final long sid; in createPasswordBasedSyntheticPassword() local
655 sid = GateKeeper.INVALID_SECURE_USER_ID; in createPasswordBasedSyntheticPassword()
669 sid = sidFromPasswordHandle(pwd.passwordHandle); in createPasswordBasedSyntheticPassword()
677 applicationId, sid, userId); in createPasswordBasedSyntheticPassword()
829 byte[] applicationId, long sid, int userId) { in createSyntheticPasswordBlob() argument
836 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid); in createSyntheticPasswordBlob()
872 final long sid; in unwrapPasswordBasedSyntheticPassword() local
885 sid = GateKeeper.INVALID_SECURE_USER_ID; in unwrapPasswordBasedSyntheticPassword()
918 sid = sidFromPasswordHandle(pwd.passwordHandle); in unwrapPasswordBasedSyntheticPassword()
928 applicationId, sid, userId); in unwrapPasswordBasedSyntheticPassword()
[all …]
DSyntheticPasswordCrypto.java156 public static byte[] createBlob(String keyAlias, byte[] data, byte[] applicationId, long sid) { in createBlob() argument
167 if (sid != 0) { in createBlob()
169 .setBoundToSpecificSecureUserId(sid) in createBlob()
/frameworks/native/cmds/servicemanager/
DAccess.cpp109 .sid = callingSid ? std::string(callingSid) : getPidcon(callingPid), in getCallingContext()
134 return 0 == selinux_check_access(sctx.sid.c_str(), tctx, tclass, perm, in actionAllowed()
DAccess.h38 std::string sid; member
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp599 std::vector<uint8_t> sid = toVector(sessionId); in getSecurityLevel() local
600 sp<Session> session = mSessionLibrary->findSession(sid); in getSecurityLevel()
607 mSecurityLevel.find(sid); in getSecurityLevel()
630 std::vector<uint8_t> sid = toVector(sessionId); in setSecurityLevel() local
631 sp<Session> session = mSessionLibrary->findSession(sid); in setSecurityLevel()
637 mSecurityLevel.find(sid); in setSecurityLevel()
639 mSecurityLevel[sid] = level; in setSecurityLevel()
642 std::pair<std::vector<uint8_t>, SecurityLevel>(sid, level)).second) { in setSecurityLevel()
/frameworks/av/media/libmediaplayerservice/tests/
DDrmSessionManager_test.cpp200 const std::vector<uint8_t> sid{1, 3, 5}; in TEST_F() local
201 sp<FakeDrm> drm = new FakeDrm(sid, mDrmSessionManager); in TEST_F()
/frameworks/av/drm/libmediadrm/tests/
DDrmMetrics_test.cpp245 for (const auto& sid : { hexSessionId1, hexSessionId2 }) { in TEST_F()
248 EXPECT_TRUE(start_times.getLong(sid, &start_time)); in TEST_F()
249 EXPECT_TRUE(end_times.getLong(sid, &end_time)); in TEST_F()
/frameworks/native/libs/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp63 const char* sid = AIBinder_getCallingSid(); in getsRequestedSid() local
64 std::cout << "Got security context: " << (sid ?: "null") << std::endl; in getsRequestedSid()
65 *out = sid != nullptr; in getsRequestedSid()
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java810 native long rsnScriptKernelIDCreate(long con, long sid, int slot, int sig, boolean mUseInc); in rsnScriptKernelIDCreate() argument
811 synchronized long nScriptKernelIDCreate(long sid, int slot, int sig, boolean mUseInc) { in nScriptKernelIDCreate() argument
817 return rsnScriptKernelIDCreate(curCon, sid, slot, sig, mUseInc); in nScriptKernelIDCreate()
820 native long rsnScriptInvokeIDCreate(long con, long sid, int slot); in rsnScriptInvokeIDCreate() argument
821 synchronized long nScriptInvokeIDCreate(long sid, int slot) { in nScriptInvokeIDCreate() argument
823 return rsnScriptInvokeIDCreate(mContext, sid, slot); in nScriptInvokeIDCreate()
826 native long rsnScriptFieldIDCreate(long con, long sid, int slot, boolean mUseInc); in rsnScriptFieldIDCreate() argument
827 synchronized long nScriptFieldIDCreate(long sid, int slot, boolean mUseInc) { in nScriptFieldIDCreate() argument
833 return rsnScriptFieldIDCreate(curCon, sid, slot, mUseInc); in nScriptFieldIDCreate()
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java860 native long rsnScriptKernelIDCreate(long con, long sid, int slot, int sig); in rsnScriptKernelIDCreate() argument
861 synchronized long nScriptKernelIDCreate(long sid, int slot, int sig) { in nScriptKernelIDCreate() argument
863 return rsnScriptKernelIDCreate(mContext, sid, slot, sig); in nScriptKernelIDCreate()
866 native long rsnScriptInvokeIDCreate(long con, long sid, int slot); in rsnScriptInvokeIDCreate() argument
867 synchronized long nScriptInvokeIDCreate(long sid, int slot) { in nScriptInvokeIDCreate() argument
869 return rsnScriptInvokeIDCreate(mContext, sid, slot); in nScriptInvokeIDCreate()
872 native long rsnScriptFieldIDCreate(long con, long sid, int slot); in rsnScriptFieldIDCreate() argument
873 synchronized long nScriptFieldIDCreate(long sid, int slot) { in nScriptFieldIDCreate() argument
875 return rsnScriptFieldIDCreate(mContext, sid, slot); in nScriptFieldIDCreate()
/frameworks/rs/
Drs.spec489 param RsScript sid
497 param RsScript sid
DrsApiStubs.cpp567 extern "C" RsScriptKernelID rsScriptKernelIDCreate (RsContext ctxWrapper, RsScript sid, int slot, i… in rsScriptKernelIDCreate() argument
569 return RS_DISPATCH(ctxWrapper, ScriptKernelIDCreate, sid, slot, sig); in rsScriptKernelIDCreate()
572 extern "C" RsScriptFieldID rsScriptFieldIDCreate (RsContext ctxWrapper, RsScript sid, int slot) in rsScriptFieldIDCreate() argument
574 return RS_DISPATCH(ctxWrapper, ScriptFieldIDCreate, sid, slot); in rsScriptFieldIDCreate()
DrsApiStubs.h96 extern "C" RsScriptKernelID rsScriptKernelIDCreate (RsContext rsc, RsScript sid, int slot, int sig);
98 extern "C" RsScriptFieldID rsScriptFieldIDCreate (RsContext rsc, RsScript sid, int slot);
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1913 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig, jbool… in nScriptKernelIDCreate() argument
1916 (void *)sid, slot, sig); in nScriptKernelIDCreate()
1918 return (jlong)(uintptr_t)dispatchTabInc.ScriptKernelIDCreate((RsContext)con, (RsScript)sid, in nScriptKernelIDCreate()
1921 return (jlong)(uintptr_t)dispatchTab.ScriptKernelIDCreate((RsContext)con, (RsScript)sid, in nScriptKernelIDCreate()
1927 nScriptInvokeIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot) in nScriptInvokeIDCreate() argument
1930 (void *)sid, slot); in nScriptInvokeIDCreate()
1931 return (jlong)dispatchTab.ScriptInvokeIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptInvokeIDCreate()
1935 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jboolean mUseInc) in nScriptFieldIDCreate() argument
1937 … LOG_API("nScriptFieldIDCreate, con(%p) script(%p), slot(%i)", (RsContext)con, (void *)sid, slot); in nScriptFieldIDCreate()
1939 … return (jlong)(uintptr_t)dispatchTabInc.ScriptFieldIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptFieldIDCreate()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java1726 private boolean isHomeSid(int sid) { in isHomeSid() argument
1729 if (sid == mHomeSystemId[i]) { in isHomeSid()
1812 String[] sid = sidStr.split(","); in parseSidNid() local
1813 mHomeSystemId = new int[sid.length]; in parseSidNid()
1814 for (int i = 0; i < sid.length; i++) { in parseSidNid()
1816 mHomeSystemId[i] = Integer.parseInt(sid[i]); in parseSidNid()
3465 int sid = mSS.getCdmaSystemId(); in pollStateDone() local
3466 operatorNumeric = fixUnknownMcc(operatorNumeric, sid); in pollStateDone()
3792 private boolean isInHomeSidNid(int sid, int nid) { in isInHomeSidNid() argument
3799 if (sid == 0) return true; in isInHomeSidNid()
[all …]
/frameworks/base/core/proto/android/os/
Dps.proto39 // group ID (pgrp); a session ID for the session leader (sid); a thread

12