Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DCredentialTest.java58 Credential cred = new Credential(); in createCredential() local
59 cred.setCreationTimeInMillis(123455L); in createCredential()
60 cred.setExpirationTimeInMillis(2310093L); in createCredential()
61 cred.setRealm("realm"); in createCredential()
62 cred.setCheckAaaServerCertStatus(true); in createCredential()
63 cred.setUserCredential(userCred); in createCredential()
64 cred.setCertCredential(certCred); in createCredential()
65 cred.setSimCredential(simCred); in createCredential()
67 cred.setCaCertificate(caCerts[0]); in createCredential()
69 cred.setCaCertificates(caCerts); in createCredential()
[all …]
/frameworks/base/cmds/statsd/src/socket/
DStatsSocketListener.cpp77 struct ucred* cred = NULL; in onDataAvailable() local
82 cred = (struct ucred*)CMSG_DATA(cmsg); in onDataAvailable()
89 if (cred == NULL) { in onDataAvailable()
90 cred = &fake_cred; in onDataAvailable()
91 cred->pid = 0; in onDataAvailable()
92 cred->uid = DEFAULT_OVERFLOWUID; in onDataAvailable()
116 long_event->header.tag, last_atom_tag, cred->uid); in onDataAvailable()
118 long_event->header.tag, last_atom_tag, cred->uid, in onDataAvailable()
119 cred->pid); in onDataAvailable()
129 msg.entry.pid = cred->pid; in onDataAvailable()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java68 Credential cred = new Credential(); in createCredential() local
69 cred.setRealm("realm"); in createCredential()
70 cred.setUserCredential(null); in createCredential()
71 cred.setCertCredential(null); in createCredential()
72 cred.setSimCredential(new Credential.SimCredential()); in createCredential()
73 cred.getSimCredential().setImsi("1234*"); in createCredential()
74 cred.getSimCredential().setEapType(EAPConstants.EAP_SIM); in createCredential()
75 cred.setCaCertificate(null); in createCredential()
76 cred.setClientCertificateChain(null); in createCredential()
77 cred.setClientPrivateKey(null); in createCredential()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp181 const ucred* cred, const iovec* data_vec, in Send() argument
207 if (cred || !file_handles_.empty()) { in Send()
209 msg.msg_controllen = (cred ? CMSG_SPACE(sizeof(ucred)) : 0) + in Send()
214 if (cred) { in Send()
218 memcpy(CMSG_DATA(control), cred, sizeof(ucred)); in Send()
284 ucred* cred) { in Receive() argument
314 cred && cmsg->cmsg_len == CMSG_LEN(sizeof(ucred))) { in Receive()
316 memcpy(cred, CMSG_DATA(cmsg), sizeof(ucred)); in Receive()
332 if (cred && !cred_available) { in Receive()
404 request->cred.pid = getpid(); in InitRequest()
[all …]
Dservice_endpoint.cpp513 info.pid = request.cred.pid; in ReceiveMessageForChannel()
518 info.euid = request.cred.uid; in ReceiveMessageForChannel()
519 info.egid = request.cred.gid; in ReceiveMessageForChannel()
525 info.channel->SetActiveProcessId(request.cred.pid); in ReceiveMessageForChannel()
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dipc_helper.h62 Status<void> Send(const BorrowedHandle& socket_fd, const ucred* cred,
91 Status<void> Receive(const BorrowedHandle& socket_fd, ucred* cred);
135 ucred cred; variable
178 return payload.Send(socket_fd, &request.cred, data_vec, vec_count);
199 Status<void> status = payload.Receive(socket_fd, &request->cred); in ReceiveData()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java533 CredentialHash cred = mStorage.readCredentialHash(userId); in assertPasswordBytes() local
534 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, cred.type); in assertPasswordBytes()
535 assertArrayEquals(password, cred.hash); in assertPasswordBytes()
539 CredentialHash cred = mStorage.readCredentialHash(userId); in assertPatternBytes() local
540 assertEquals(LockPatternUtils.CREDENTIAL_TYPE_PATTERN, cred.type); in assertPatternBytes()
541 assertArrayEquals(pattern, cred.hash); in assertPatternBytes()