/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 | LockSettingsServiceTests.java | 73 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()
|
D | MockSyntheticPasswordManager.java | 62 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()
|
D | CachedSyntheticPasswordTests.java | 63 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()
|
D | SyntheticPasswordTests.java | 105 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/ |
D | SampleMediaRouteProvider.java | 347 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 …]
|
D | SessionManager.java | 234 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/ |
D | SelectionProbe.java | 89 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/ |
D | KeymasterUtils.java | 137 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/ |
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()
|
D | ServiceStateTracker.java | 1499 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/ |
D | CellIdentityCdma.java | 77 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/ |
D | SyntheticPasswordManager.java | 616 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 …]
|
D | SyntheticPasswordCrypto.java | 147 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/ |
D | com_android_server_locksettings_SyntheticPasswordManager.cpp | 43 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/ |
D | DrmPlugin.cpp | 375 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/ |
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/base/rs/java/android/renderscript/ |
D | RenderScript.java | 847 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/ |
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/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/base/core/proto/android/os/ |
D | ps.proto | 39 // group ID (pgrp); a session ID for the session leader (sid); a thread
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | RuimRecords.java | 428 int sid = ((data[1] & 0xFF) << 8) | (data[0] & 0xFF); in onRecordLoaded() local 430 sidBuf.append(sid).append(','); in onRecordLoaded()
|