/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
SecretKeyFactorySpiTest.java | 57 SecretKey sk = null; local 58 assertNull("Not null result", skfSpi.engineTranslateKey(sk)); 63 assertNull("Not null result", skfSpi.engineGetKeySpec(sk, null));
|
/external/bluetooth/bluez/cups/ |
spp.c | 45 int i, sk, err, len; local 47 if ((sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)) < 0) { 59 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 61 close(sk); 72 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 74 close(sk); 105 err = write(sk, buf, len); 108 close(sk); 115 close(sk);
|
/external/icu4c/test/cintltst/ |
ccolltst.c | 55 static char* dumpSk(uint8_t *sourceKey, char *sk) { 59 *sk = 0; 62 sprintf(sk+2*i, "%02X", sourceKey[i]); 64 return sk; 123 char sk[10000]; local 124 log_verbose("SortKey1: %s\n", dumpSk(sourceKey, sk)); 125 log_verbose("SortKey2: %s\n", dumpSk(targetKey, sk));
|
/system/core/libnl_2/ |
socket.c | 27 int nl_socket_add_membership(struct nl_sock *sk, int group) 29 return setsockopt(sk->s_fd, SOL_NETLINK, 36 struct nl_sock *sk; local 40 sk = (struct nl_sock *) malloc(sizeof(struct nl_sock)); 41 if (!sk) 43 memset(sk, 0, sizeof(*sk)); 50 sk->s_seq_next = (int) tv.tv_sec; 53 sk->s_local.nl_family = AF_NETLINK; 54 sk->s_local.nl_pid = 0; /* Kernel fills in pid * 71 struct nl_sock *sk = _nl_socket_alloc(); local 90 struct nl_sock *sk = _nl_socket_alloc(); local [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyTest.java | 48 checkSecretKey sk = new checkSecretKey(); local 50 sk.getSerVerUID(), //SecretKey.serialVersionUID
|
/external/bluetooth/bluez/audio/ |
main.c | 72 int sk; local 129 sk = g_io_channel_unix_get_fd(chan); 130 fcntl(sk, F_SETFL, 0);
|
ipc.c | 50 int sk; local 56 sk = socket(PF_LOCAL, SOCK_STREAM, 0); 57 if (sk < 0) { 65 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 69 close(sk); 74 return sk; 77 int bt_audio_service_close(int sk) 79 return close(sk); 82 int bt_audio_service_get_data_fd(int sk) 96 ret = recvmsg(sk, &msgh, 0) [all...] |
ctl_bluetooth.c | 320 int sk; local 329 sk = bt_audio_service_open(); 330 if (sk < 0) 333 data->sock = sk;
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactorySpiTest.java | 64 SecretKey sk = null; local 65 assertNull("Not null result", skfSpi.engineTranslateKey(sk)); 70 assertNull("Not null result", skfSpi.engineGetKeySpec(sk, null));
|
SecretKeyTest.java | 40 checkSecretKey sk = new checkSecretKey(); local 42 sk.getSerVerUID(), //SecretKey.serialVersionUID
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
KeyGeneratorTest.java | 150 private void test_SecretKey(KeyGenerator kg, SecretKey sk) throws Exception { 151 assertNotNull(sk); 152 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); 153 assertNotNull(sk.getEncoded()); 154 assertNotNull(sk.getFormat());
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KSSecretKeyEntryTest.java | 48 SecretKey sk = null; local 50 new KeyStore.SecretKeyEntry(sk); 61 SecretKey sk = new tmpSecretKey(); local 62 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); 63 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); 71 SecretKey sk = new tmpSecretKey(); local 72 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
|
/external/bluetooth/bluez/plugins/ |
echo.c | 69 int sk, nsk; local 71 sk = g_io_channel_unix_get_fd(chan); 76 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); 95 int sk; local 97 sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 98 if (sk < 0) 106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 107 close(sk); 111 if (listen(sk, 10) < 0) { 112 close(sk); [all...] |
/external/bluetooth/bluez/test/ |
attest.c | 104 int sk; local 106 sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 107 if (sk < 0) { 117 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 120 close(sk); 129 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 132 close(sk); 136 return sk;
|
scotest.c | 73 int sk; local 76 sk = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO); 77 if (sk < 0) { 88 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 100 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 110 if (getsockopt(sk, SOL_SCO, SCO_CONNINFO, &conn, &optlen) < 0) { 120 return sk; 123 close(sk); 127 static void do_listen(void (*handler)(int sk)) 132 int sk, nsk local 255 int i, sk; local 294 int sk; local 311 int i, sk; local 348 int opt, sk, mode = RECV; local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KSSecretKeyEntryTest.java | 42 SecretKey sk = null; local 44 new KeyStore.SecretKeyEntry(sk); 50 sk = new tmpSecretKey(); 52 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); 65 SecretKey sk = new tmpSecretKey(); local 66 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); 67 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); 75 SecretKey sk = new tmpSecretKey(); local 76 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
|
/external/bluetooth/bluez/input/ |
server.c | 94 int sk = g_io_channel_unix_get_fd(chan); local 95 if (write(sk, &unplug, sizeof(unplug)) < 0)
|
/external/bluetooth/bluez/network/ |
common.c | 170 int bnep_connadd(int sk, uint16_t role, char *dev) 177 req.sock = sk; 193 int sk, err; local 195 sk = socket(AF_INET, SOCK_DGRAM, 0); 203 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); 205 close(sk); 218 int sk, err; local 220 sk = socket(AF_INET, SOCK_DGRAM, 0); 228 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); 230 close(sk); 244 int sk, err; local [all...] |
/external/bluetooth/bluez/src/ |
sdpd-server.c | 169 int sk, len, size; local 174 sk = g_io_channel_unix_get_fd(chan); 177 sdp_svcdb_collect_all(sk); 181 len = recv(sk, &hdr, sizeof(sdp_pdu_hdr_t), MSG_PEEK); 183 sdp_svcdb_collect_all(sk); 192 len = recv(sk, buf, size, 0); 194 sdp_svcdb_collect_all(sk); 199 handle_request(sk, buf, len);
|
/external/e2fsprogs/misc/ |
findsuper.c | 100 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; } 116 loff_t sk=0, skl=0; local 163 sk = skl = strtoll(argv[optind], &s, 0) << 10; 171 if (sk < 0) { 172 fprintf(stderr, _("startkb should be positive, not %Lu\n"), sk); 183 printf(_("starting at %Lu, with %u byte increments\n"), sk, skiprate); 188 for (; lseek64(fd, sk, SEEK_SET) != -1 && 189 read(fd, &ext2, 512) == 512; sk += skiprate) { 194 if (sk && !(sk & (interval - 1))) [all...] |
/system/bluetooth/bluedroid/ |
bluetooth.c | 140 int sk = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); local 141 if (sk < 0) { 145 return sk;
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactory_ImplTest.java | 82 SecretKey sk; local 84 sk = skf.generateSecret(null); 85 assertNull("generateSecret method must return null", sk); 86 sk = skf.translateKey(null); 87 assertNull("translateKey method must return null", sk);
|
/external/bluetooth/bluez/compat/ |
dun.c | 60 int sk, i; local 62 sk = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_RFCOMM); 63 if (sk < 0 ) { 71 close(sk); 78 if (ioctl(sk, RFCOMMGETDEVLIST, (void *) dl) < 0) { 88 close(sk); 186 static int dun_create_tty(int sk, char *tty, int size) 199 if (getpeername(sk, (struct sockaddr *) &sa, &alen) < 0) 204 if (getsockname(sk, (struct sockaddr *) &sa, &alen) < 0) 209 id = ioctl(sk, RFCOMMCREATEDEV, &req) [all...] |
/external/bluetooth/bluez/tools/ |
l2ping.c | 80 int i, sk, lost; local 95 sk = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_L2CAP); 96 if (sk < 0) { 106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 116 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 125 if (getsockname(sk, (struct sockaddr *) &addr, &optlen) < 0) { 156 if (send(sk, send_buf, L2CAP_CMD_HDR_SIZE + size, 0) <= 0) { 167 pf[0].fd = sk; 180 if ((err = recv(sk, recv_buf, L2CAP_CMD_HDR_SIZE + size, 0)) < 0) { 248 close(sk); [all...] |
/external/qemu/android/protocol/ |
fb-updates-impl.c | 228 SyncSocket* sk = syncsocket_init(fbi->sock); local 231 syncsocket_start_write(sk); 232 syncsocket_write(sk, &hd, sizeof(hd), 5000); 233 syncsocket_stop_write(sk); 234 syncsocket_free(sk);
|