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 …]
DLockSettingsServiceTests.java73 final long sid = 1234; in testChangePasswordFailPrimaryUser() local
75 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
84 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid); in testChangePasswordFailPrimaryUser()
203 final long sid = 1234; in testChangeCredentials() local
204 initializeStorageWithCredential(userId, oldCredential, oldType, sid); in testChangeCredentials()
206 assertVerifyCredentials(userId, newCredential, newType, sid); in testChangeCredentials()
209 private void assertVerifyCredentials(int userId, String credential, int type, long sid) in assertVerifyCredentials() argument
216 if (sid != -1) assertEquals(sid, mGateKeeperService.getSecureUserId(userId)); in assertVerifyCredentials()
239 private void initializeStorageWithCredential(int userId, String credential, int type, long sid) in initializeStorageWithCredential() argument
241 byte[] oldHash = new VerifyHandle(credential.getBytes(), sid).toBytes(); in initializeStorageWithCredential()
DMockSyntheticPasswordManager.java62 long sid = buffer.getLong(); in decryptSPBlob() local
66 if (sid != 0 && mGateKeeper.getAuthTokenForSid(sid) == null) { in decryptSPBlob()
73 protected byte[] createSPBlob(String blobKeyName, byte[] data, byte[] applicationId, long sid) { in createSPBlob() argument
80 buffer.putLong(sid); in createSPBlob()
92 return new FakeGateKeeperService.VerifyHandle(handle).sid; in sidFromPasswordHandle()
DCachedSyntheticPasswordTests.java63 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted() local
75 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
83 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted() local
88 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredentialUntrusted()
124 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testUntrustedCredentialChangeBlockedIfSpNotCached() local
130 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testUntrustedCredentialChangeBlockedIfSpNotCached()
DSyntheticPasswordTests.java105 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testPasswordMigration() local
112 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testPasswordMigration()
137 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() local
143 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential()
165 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() local
177 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
DSampleMediaRouteProvider.java347 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handlePlay() local
348 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handlePlay()
349 Log.d(TAG, "handlePlay fails because of bad sid="+sid); in handlePlay()
359 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEnqueue() local
360 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handleEnqueue()
361 Log.d(TAG, "handleEnqueue fails because of bad sid="+sid); in handleEnqueue()
382 + ", sid=" + sid in handleEnqueue()
404 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleRemove() local
405 if (sid == null || !sid.equals(mSessionManager.getSessionId())) { in handleRemove()
419 ", sid=" + sid + ", iid=" + iid, null); in handleRemove()
[all …]
DSessionManager.java234 MediaSessionStatus getSessionStatus(String sid) { in getSessionStatus() argument
235 int sessionState = (sid != null && sid.equals(mSessionId)) ? in getSessionStatus()
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
DSelectionProbe.java89 String sid = String.valueOf(id); in assertSelected() local
90 assertTrue(sid + " is not in selection " + sel, sel.contains(sid)); in assertSelected()
92 mSelectionListener.assertSelected(sid); in assertSelected()
99 String sid = String.valueOf(id); in assertNotSelected() local
100 assertFalse(sid + " is in selection " + sel, sel.contains(sid)); in assertNotSelected()
102 mSelectionListener.assertNotSelected(sid); in assertNotSelected()
/frameworks/base/keystore/java/android/security/keystore/
DKeymasterUtils.java137 long sid; in addUserAuthArgs() local
139 sid = spec.getBoundToSpecificSecureUserId(); in addUserAuthArgs()
143 sid = fingerprintOnlySid; in addUserAuthArgs()
147 sid = getRootSid(); in addUserAuthArgs()
151 KeymasterDefs.KM_TAG_USER_SECURE_ID, KeymasterArguments.toUint64(sid)); in addUserAuthArgs()
158 long sid; in addUserAuthArgs() local
160 sid = spec.getBoundToSpecificSecureUserId(); in addUserAuthArgs()
164 sid = getRootSid(); in addUserAuthArgs()
167 KeymasterArguments.toUint64(sid)); in addUserAuthArgs()
/frameworks/opt/telephony/src/java/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()
DServiceStateTracker.java1499 private boolean isHomeSid(int sid) { in isHomeSid() argument
1502 if (sid == mHomeSystemId[i]) { in isHomeSid()
1585 String[] sid = sidStr.split(","); in parseSidNid() local
1586 mHomeSystemId = new int[sid.length]; in parseSidNid()
1587 for (int i = 0; i < sid.length; i++) { in parseSidNid()
1589 mHomeSystemId[i] = Integer.parseInt(sid[i]); in parseSidNid()
2937 int sid = mSS.getCdmaSystemId(); in pollStateDone() local
2938 operatorNumeric = fixUnknownMcc(operatorNumeric, sid); in pollStateDone()
3144 private boolean isInHomeSidNid(int sid, int nid) { in isInHomeSidNid() argument
3151 if (sid == 0) return true; in isInHomeSidNid()
[all …]
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java77 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat) { in CellIdentityCdma() argument
78 this(nid, sid, bid, lon, lat, null, null); in CellIdentityCdma()
95 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat, String alphal, in CellIdentityCdma() argument
99 mSystemId = sid; in CellIdentityCdma()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java616 final long sid; in createPasswordBasedSyntheticPassword() local
632 sid = GateKeeper.INVALID_SECURE_USER_ID; in createPasswordBasedSyntheticPassword()
646 sid = sidFromPasswordHandle(pwd.passwordHandle); in createPasswordBasedSyntheticPassword()
654 applicationId, sid, userId); in createPasswordBasedSyntheticPassword()
796 byte[] applicationId, long sid, int userId) { in createSyntheticPasswordBlob() argument
803 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid); in createSyntheticPasswordBlob()
830 final long sid; in unwrapPasswordBasedSyntheticPassword() local
843 sid = GateKeeper.INVALID_SECURE_USER_ID; in unwrapPasswordBasedSyntheticPassword()
876 sid = sidFromPasswordHandle(pwd.passwordHandle); in unwrapPasswordBasedSyntheticPassword()
886 applicationId, sid, userId); in unwrapPasswordBasedSyntheticPassword()
[all …]
DSyntheticPasswordCrypto.java147 public static byte[] createBlob(String keyAlias, byte[] data, byte[] applicationId, long sid) { in createBlob() argument
158 if (sid != 0) { in createBlob()
160 .setBoundToSpecificSecureUserId(sid) in createBlob()
/frameworks/base/services/core/jni/
Dcom_android_server_locksettings_SyntheticPasswordManager.cpp43 jlong sid = handle->user_id; in android_server_SyntheticPasswordManager_nativeSidFromPasswordHandle() local
45 return sid; in android_server_SyntheticPasswordManager_nativeSidFromPasswordHandle()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp375 std::vector<uint8_t> sid = toVector(sessionId); in getSecurityLevel() local
376 sp<Session> session = mSessionLibrary->findSession(sid); in getSecurityLevel()
383 mSecurityLevel.find(sid); in getSecurityLevel()
406 std::vector<uint8_t> sid = toVector(sessionId); in setSecurityLevel() local
407 sp<Session> session = mSessionLibrary->findSession(sid); in setSecurityLevel()
413 mSecurityLevel.find(sid); in setSecurityLevel()
415 mSecurityLevel[sid] = level; in setSecurityLevel()
418 std::pair<std::vector<uint8_t>, SecurityLevel>(sid, level)).second) { in setSecurityLevel()
/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/base/rs/java/android/renderscript/
DRenderScript.java847 native long rsnScriptKernelIDCreate(long con, long sid, int slot, int sig); in rsnScriptKernelIDCreate() argument
848 synchronized long nScriptKernelIDCreate(long sid, int slot, int sig) { in nScriptKernelIDCreate() argument
850 return rsnScriptKernelIDCreate(mContext, sid, slot, sig); in nScriptKernelIDCreate()
853 native long rsnScriptInvokeIDCreate(long con, long sid, int slot); in rsnScriptInvokeIDCreate() argument
854 synchronized long nScriptInvokeIDCreate(long sid, int slot) { in nScriptInvokeIDCreate() argument
856 return rsnScriptInvokeIDCreate(mContext, sid, slot); in nScriptInvokeIDCreate()
859 native long rsnScriptFieldIDCreate(long con, long sid, int slot); in rsnScriptFieldIDCreate() argument
860 synchronized long nScriptFieldIDCreate(long sid, int slot) { in nScriptFieldIDCreate() argument
862 return rsnScriptFieldIDCreate(mContext, sid, slot); in nScriptFieldIDCreate()
/frameworks/rs/support/java/src/android/support/v8/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/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/base/core/proto/android/os/
Dps.proto39 // group ID (pgrp); a session ID for the session leader (sid); a thread
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DRuimRecords.java428 int sid = ((data[1] & 0xFF) << 8) | (data[0] & 0xFF); in onRecordLoaded() local
430 sidBuf.append(sid).append(','); in onRecordLoaded()

12