Searched refs:sid (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
H A DSelectionProbe.java89 String sid = String.valueOf(id);
90 assertTrue(sid + " is not in selection " + sel, sel.contains(sid));
92 mSelectionListener.assertSelected(sid);
99 String sid = String.valueOf(id);
100 assertFalse(sid + " is in selection " + sel, sel.contains(sid));
102 mSelectionListener.assertNotSelected(sid);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DFakeGateKeeperService.java34 public long sid; field in class:FakeGateKeeperService.VerifyHandle
36 public VerifyHandle(byte[] password, long sid) { argument
38 this.sid = sid;
46 sid = buffer.getLong();
54 buffer.putLong(sid);
62 public long sid; field in class:FakeGateKeeperService.AuthToken
64 public AuthToken(long challenge, long sid) { argument
66 this.sid = sid;
152 getAuthTokenForSid(long sid) argument
188 refreshSid(int uid, long sid, boolean force) argument
[all...]
H A DMockSyntheticPasswordManager.java62 long sid = buffer.getLong();
66 if (sid != 0 && mGateKeeper.getAuthTokenForSid(sid) == null) {
73 protected byte[] createSPBlob(String blobKeyName, byte[] data, byte[] applicationId, long sid) { argument
80 buffer.putLong(sid);
92 return new FakeGateKeeperService.VerifyHandle(handle).sid;
H A DCachedSyntheticPasswordTests.java63 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
75 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
83 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
88 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
124 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
130 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
H A DLockSettingsServiceTests.java73 final long sid = 1234;
75 initializeStorageWithCredential(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid);
84 assertVerifyCredentials(PRIMARY_USER_ID, "password", CREDENTIAL_TYPE_PASSWORD, sid);
203 final long sid = 1234;
204 initializeStorageWithCredential(userId, oldCredential, oldType, sid);
206 assertVerifyCredentials(userId, newCredential, newType, sid);
209 private void assertVerifyCredentials(int userId, String credential, int type, long sid) argument
216 if (sid != -1) assertEquals(sid, mGateKeeperService.getSecureUserId(userId));
239 private void initializeStorageWithCredential(int userId, String credential, int type, long sid) argument
[all...]
H A DSyntheticPasswordTests.java105 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
112 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
137 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
143 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
165 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID);
177 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID));
/frameworks/base/keystore/java/android/security/keystore/
H A DKeymasterUtils.java137 long sid;
139 sid = spec.getBoundToSpecificSecureUserId();
143 sid = fingerprintOnlySid;
147 sid = getRootSid();
151 KeymasterDefs.KM_TAG_USER_SECURE_ID, KeymasterArguments.toUint64(sid));
158 long sid;
160 sid = spec.getBoundToSpecificSecureUserId();
164 sid = getRootSid();
167 KeymasterArguments.toUint64(sid));
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java347 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID);
348 if (sid != null && !sid.equals(mSessionManager.getSessionId())) {
349 Log.d(TAG, "handlePlay fails because of bad sid="+sid);
359 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID);
360 if (sid != null && !sid.equals(mSessionManager.getSessionId())) {
361 Log.d(TAG, "handleEnqueue fails because of bad sid="+sid);
592 handleSessionStatusChange(String sid) argument
[all...]
H A DSessionManager.java234 MediaSessionStatus getSessionStatus(String sid) { argument
235 int sessionState = (sid != null && sid.equals(mSessionId)) ?
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouteProvider.java347 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID);
348 if (sid != null && !sid.equals(mSessionManager.getSessionId())) {
349 Log.d(TAG, "handlePlay fails because of bad sid="+sid);
359 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID);
360 if (sid != null && !sid.equals(mSessionManager.getSessionId())) {
361 Log.d(TAG, "handleEnqueue fails because of bad sid="+sid);
592 handleSessionStatusChange(String sid) argument
[all...]
H A DSessionManager.java234 MediaSessionStatus getSessionStatus(String sid) { argument
235 int sessionState = (sid != null && sid.equals(mSessionId)) ?
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DHbpcdUtils.java42 public int getMcc(int sid, int tz, int DSTflag, boolean isNitzTimeZone) { argument
52 ArbitraryMccSidMatch.SID + "=" + sid, null, null);
78 MccSidConflicts.SID_CONFLICT + "=" + sid + " and (((" +
90 if (DBG) Rlog.d(LOG_TAG, "Query conflict sid returned the cursor " + c3);
113 MccSidRange.RANGE_LOW + "<=" + sid + " and " +
114 MccSidRange.RANGE_HIGH + ">=" + sid,
H A DServiceStateTracker.java1499 private boolean isHomeSid(int sid) { argument
1502 if (sid == mHomeSystemId[i]) {
1585 String[] sid = sidStr.split(",");
1586 mHomeSystemId = new int[sid.length];
1587 for (int i = 0; i < sid.length; i++) {
1589 mHomeSystemId[i] = Integer.parseInt(sid[i]);
2937 int sid = mSS.getCdmaSystemId();
2938 operatorNumeric = fixUnknownMcc(operatorNumeric, sid);
3142 * @return true if provided sid/nid pair belongs to operator's home network.
3144 private boolean isInHomeSidNid(int sid, in argument
3185 fixUnknownMcc(String operatorNumeric, int sid) argument
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DCellIdentityCdma.java68 * @param sid CDMA System Id 0..32767
77 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat) { argument
78 this(nid, sid, bid, lon, lat, null, null);
84 * @param sid CDMA System Id 0..32767
95 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat, String alphal, argument
99 mSystemId = sid;
/frameworks/base/services/core/jni/
H A Dcom_android_server_locksettings_SyntheticPasswordManager.cpp43 jlong sid = handle->user_id; local
45 return sid;
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
H A DDrmPlugin.cpp375 std::vector<uint8_t> sid = toVector(sessionId); local
376 sp<Session> session = mSessionLibrary->findSession(sid);
383 mSecurityLevel.find(sid);
406 std::vector<uint8_t> sid = toVector(sessionId); local
407 sp<Session> session = mSessionLibrary->findSession(sid);
413 mSecurityLevel.find(sid);
415 mSecurityLevel[sid] = level;
418 std::pair<std::vector<uint8_t>, SecurityLevel>(sid, level)).second) {
/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordCrypto.java147 public static byte[] createBlob(String keyAlias, byte[] data, byte[] applicationId, long sid) { argument
158 if (sid != 0) {
160 .setBoundToSpecificSecureUserId(sid)
H A DSyntheticPasswordManager.java616 final long sid;
632 sid = GateKeeper.INVALID_SECURE_USER_ID;
646 sid = sidFromPasswordHandle(pwd.passwordHandle);
654 applicationId, sid, userId);
796 byte[] applicationId, long sid, int userId) {
803 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid);
830 final long sid;
843 sid = GateKeeper.INVALID_SECURE_USER_ID;
876 sid = sidFromPasswordHandle(pwd.passwordHandle);
886 applicationId, sid, userI
795 createSyntheticPasswordBlob(long handle, byte type, AuthenticationToken authToken, byte[] applicationId, long sid, int userId) argument
936 unwrapSyntheticPasswordBlob(long handle, byte type, byte[] applicationId, long sid, int userId) argument
1096 createSPBlob(String blobKeyName, byte[] data, byte[] applicationId, long sid) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java847 native long rsnScriptKernelIDCreate(long con, long sid, int slot, int sig); argument
848 synchronized long nScriptKernelIDCreate(long sid, int slot, int sig) { argument
850 return rsnScriptKernelIDCreate(mContext, sid, slot, sig);
853 native long rsnScriptInvokeIDCreate(long con, long sid, int slot); argument
854 synchronized long nScriptInvokeIDCreate(long sid, int slot) { argument
856 return rsnScriptInvokeIDCreate(mContext, sid, slot);
859 native long rsnScriptFieldIDCreate(long con, long sid, int slot); argument
860 synchronized long nScriptFieldIDCreate(long sid, int slot) { argument
862 return rsnScriptFieldIDCreate(mContext, sid, slot);
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DRenderScript.java810 native long rsnScriptKernelIDCreate(long con, long sid, int slot, int sig, boolean mUseInc); argument
811 synchronized long nScriptKernelIDCreate(long sid, int slot, int sig, boolean mUseInc) { argument
817 return rsnScriptKernelIDCreate(curCon, sid, slot, sig, mUseInc);
820 native long rsnScriptInvokeIDCreate(long con, long sid, int slot); argument
821 synchronized long nScriptInvokeIDCreate(long sid, int slot) { argument
823 return rsnScriptInvokeIDCreate(mContext, sid, slot);
826 native long rsnScriptFieldIDCreate(long con, long sid, int slot, boolean mUseInc); argument
827 synchronized long nScriptFieldIDCreate(long sid, int slot, boolean mUseInc) { argument
833 return rsnScriptFieldIDCreate(curCon, sid, slot, mUseInc);
/frameworks/av/drm/libmediadrm/tests/
H A DDrmMetrics_test.cpp245 for (const auto& sid : { hexSessionId1, hexSessionId2 }) {
248 EXPECT_TRUE(start_times.getLong(sid, &start_time));
249 EXPECT_TRUE(end_times.getLong(sid, &end_time));
/frameworks/rs/
H A Drs.spec489 param RsScript sid
497 param RsScript sid
H A 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);
H A DrsApiStubs.cpp567 extern "C" RsScriptKernelID rsScriptKernelIDCreate (RsContext ctxWrapper, RsScript sid, int slot, int sig) argument
569 return RS_DISPATCH(ctxWrapper, ScriptKernelIDCreate, sid, slot, sig);
572 extern "C" RsScriptFieldID rsScriptFieldIDCreate (RsContext ctxWrapper, RsScript sid, int slot) argument
574 return RS_DISPATCH(ctxWrapper, ScriptFieldIDCreate, sid, slot);
/frameworks/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp1913 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig, jboolean mUseInc) argument
1916 (void *)sid, slot, sig);
1918 return (jlong)(uintptr_t)dispatchTabInc.ScriptKernelIDCreate((RsContext)con, (RsScript)sid,
1921 return (jlong)(uintptr_t)dispatchTab.ScriptKernelIDCreate((RsContext)con, (RsScript)sid,
1927 nScriptInvokeIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot) argument
1930 (void *)sid, slot);
1931 return (jlong)dispatchTab.ScriptInvokeIDCreate((RsContext)con, (RsScript)sid, slot);
1935 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jboolean mUseInc) argument
1937 LOG_API("nScriptFieldIDCreate, con(%p) script(%p), slot(%i)", (RsContext)con, (void *)sid, slot);
1939 return (jlong)(uintptr_t)dispatchTabInc.ScriptFieldIDCreate((RsContext)con, (RsScript)sid, slo
[all...]

Completed in 440 milliseconds

12