/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | FakeGateKeeperService.java | 34 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 …]
|
D | MockSyntheticPasswordManager.java | 64 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()
|
D | CachedSyntheticPasswordTests.java | 72 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()
|
D | LockSettingsServiceTests.java | 101 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()
|
D | SyntheticPasswordTests.java | 121 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/ |
D | HbpcdUtils.java | 42 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/ |
D | KeymasterUtils.java | 178 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/ |
D | com_android_server_locksettings_SyntheticPasswordManager.cpp | 39 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/ |
D | CellIdentityCdma.java | 95 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/ |
D | SyntheticPasswordManager.java | 638 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 …]
|
D | SyntheticPasswordCrypto.java | 156 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/ |
D | Access.cpp | 109 .sid = callingSid ? std::string(callingSid) : getPidcon(callingPid), in getCallingContext() 134 return 0 == selinux_check_access(sctx.sid.c_str(), tctx, tclass, perm, in actionAllowed()
|
D | Access.h | 38 std::string sid; member
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | DrmPlugin.cpp | 599 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/ |
D | DrmSessionManager_test.cpp | 200 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/ |
D | DrmMetrics_test.cpp | 245 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/ |
D | libbinder_ndk_unit_test.cpp | 63 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/ |
D | RenderScript.java | 810 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/ |
D | RenderScript.java | 860 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/ |
D | rs.spec | 489 param RsScript sid 497 param RsScript sid
|
D | rsApiStubs.cpp | 567 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()
|
D | rsApiStubs.h | 96 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/ |
D | android_renderscript_RenderScript.cpp | 1913 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/ |
D | ServiceStateTracker.java | 1726 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/ |
D | ps.proto | 39 // group ID (pgrp); a session ID for the session leader (sid); a thread
|