Home
last modified time | relevance | path

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

/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()
DSyntheticPasswordTests.java94 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testPasswordMigration() local
100 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testPasswordMigration()
123 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() local
129 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential()
149 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() local
160 assertNotSame(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential()
168 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted() local
179 assertNotSame(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted()
187 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted() local
192 assertNotSame(sid ,mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredentialUntrusted()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSampleMediaRouteProvider.java346 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handlePlay() local
347 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handlePlay()
348 Log.d(TAG, "handlePlay fails because of bad sid="+sid); in handlePlay()
358 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEnqueue() local
359 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handleEnqueue()
360 Log.d(TAG, "handleEnqueue fails because of bad sid="+sid); in handleEnqueue()
381 + ", sid=" + sid in handleEnqueue()
403 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleRemove() local
404 if (sid == null || !sid.equals(mSessionManager.getSessionId())) { in handleRemove()
418 ", sid=" + sid + ", iid=" + iid, null); in handleRemove()
[all …]
DSessionManager.java233 MediaSessionStatus getSessionStatus(String sid) { in getSessionStatus() argument
234 int sessionState = (sid != null && sid.equals(mSessionId)) ? in getSessionStatus()
/frameworks/base/keystore/java/android/security/keystore/
DKeymasterUtils.java126 long sid; in addUserAuthArgs() local
128 sid = boundToSpecificSecureUserId; in addUserAuthArgs()
132 sid = fingerprintOnlySid; in addUserAuthArgs()
136 sid = getRootSid(); in addUserAuthArgs()
140 KeymasterDefs.KM_TAG_USER_SECURE_ID, KeymasterArguments.toUint64(sid)); in addUserAuthArgs()
147 long sid; in addUserAuthArgs() local
149 sid = boundToSpecificSecureUserId; in addUserAuthArgs()
153 sid = getRootSid(); in addUserAuthArgs()
156 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.java1498 private boolean isHomeSid(int sid) { in isHomeSid() argument
1501 if (sid == mHomeSystemId[i]) { in isHomeSid()
1584 String[] sid = sidStr.split(","); in parseSidNid() local
1585 mHomeSystemId = new int[sid.length]; in parseSidNid()
1586 for (int i = 0; i < sid.length; i++) { in parseSidNid()
1588 mHomeSystemId[i] = Integer.parseInt(sid[i]); in parseSidNid()
2854 int sid = mSS.getSystemId(); in pollStateDone() local
2855 operatorNumeric = fixUnknownMcc(operatorNumeric, sid); in pollStateDone()
3080 private boolean isInHomeSidNid(int sid, int nid) { in isInHomeSidNid() argument
3087 if (sid == 0) return true; in isInHomeSidNid()
[all …]
/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/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java585 final long sid; in createPasswordBasedSyntheticPassword() local
600 sid = GateKeeper.INVALID_SECURE_USER_ID; in createPasswordBasedSyntheticPassword()
614 sid = sidFromPasswordHandle(pwd.passwordHandle); in createPasswordBasedSyntheticPassword()
622 applicationId, sid, userId); in createPasswordBasedSyntheticPassword()
763 byte[] applicationId, long sid, int userId) { in createSyntheticPasswordBlob() argument
770 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid); in createSyntheticPasswordBlob()
796 final long sid; in unwrapPasswordBasedSyntheticPassword() local
809 sid = GateKeeper.INVALID_SECURE_USER_ID; in unwrapPasswordBasedSyntheticPassword()
842 sid = sidFromPasswordHandle(pwd.passwordHandle); in unwrapPasswordBasedSyntheticPassword()
848 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/telephony/java/android/telephony/
DCellIdentityCdma.java77 public CellIdentityCdma (int nid, int sid, int bid, int lon, int lat) { in CellIdentityCdma() argument
79 mSystemId = sid; in CellIdentityCdma()
/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.cpp1911 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig, jbool… in nScriptKernelIDCreate() argument
1914 (void *)sid, slot, sig); in nScriptKernelIDCreate()
1916 return (jlong)(uintptr_t)dispatchTabInc.ScriptKernelIDCreate((RsContext)con, (RsScript)sid, in nScriptKernelIDCreate()
1919 return (jlong)(uintptr_t)dispatchTab.ScriptKernelIDCreate((RsContext)con, (RsScript)sid, in nScriptKernelIDCreate()
1925 nScriptInvokeIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot) in nScriptInvokeIDCreate() argument
1928 (void *)sid, slot); in nScriptInvokeIDCreate()
1929 return (jlong)dispatchTab.ScriptInvokeIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptInvokeIDCreate()
1933 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jboolean mUseInc) in nScriptFieldIDCreate() argument
1935 … LOG_API("nScriptFieldIDCreate, con(%p) script(%p), slot(%i)", (RsContext)con, (void *)sid, slot); in nScriptFieldIDCreate()
1937 … return (jlong)(uintptr_t)dispatchTabInc.ScriptFieldIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptFieldIDCreate()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DRuimRecords.java421 int sid = ((data[1] & 0xFF) << 8) | (data[0] & 0xFF); in onRecordLoaded() local
423 sidBuf.append(sid).append(','); in onRecordLoaded()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp2261 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig) in nScriptKernelIDCreate() argument
2265 (void *)sid, slot, sig); in nScriptKernelIDCreate()
2267 return (jlong)(uintptr_t)rsScriptKernelIDCreate((RsContext)con, (RsScript)sid, slot, sig); in nScriptKernelIDCreate()
2271 nScriptInvokeIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot) in nScriptInvokeIDCreate() argument
2275 (void *)sid, slot); in nScriptInvokeIDCreate()
2277 return (jlong)(uintptr_t)rsScriptInvokeIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptInvokeIDCreate()
2281 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot) in nScriptFieldIDCreate() argument
2284 ALOGD("nScriptFieldIDCreate, con(%p) script(%p), slot(%i)", (RsContext)con, (void *)sid, in nScriptFieldIDCreate()
2287 return (jlong)(uintptr_t)rsScriptFieldIDCreate((RsContext)con, (RsScript)sid, slot); in nScriptFieldIDCreate()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp708 status_t SurfaceComposerClient::destroySurface(const sp<IBinder>& sid) { in destroySurface() argument
711 status_t err = mClient->destroySurface(sid); in destroySurface()