Home
last modified time | relevance | path

Searched refs:con (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/external/python/cpython3/Lib/sqlite3/test/
Dregression.py32 self.con = sqlite.connect(":memory:")
35 self.con.close()
39 cur = self.con.cursor()
44 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES)
46 cur = self.con.cursor()
50 con.close()
56 con = sqlite.connect(":memory:", cached_statements=5)
57 cursors = [con.cursor() for x in range(5)]
65 con.rollback()
68 cur = self.con.cursor()
[all …]
Dhooks.py31 con = sqlite.connect(":memory:")
33 con.create_collation(None, lambda x, y: (x > y) - (x < y))
36 con = sqlite.connect(":memory:")
38 con.create_collation("X", 42)
42 con = sqlite.connect(":memory:")
44 con.create_collation("coll�", lambda x, y: (x > y) - (x < y))
50 con = sqlite.connect(":memory:")
52 con.create_collation(BadUpperStr("mycoll"), mycoll)
53 result = con.execute("""
70 con = sqlite.connect(":memory:")
[all …]
Dfactory.py45 self.con = sqlite.connect(":memory:", factory=MyConnection)
48 self.con.close()
51 self.assertIsInstance(self.con, MyConnection)
55 self.con = sqlite.connect(":memory:")
58 self.con.close()
61 cur = self.con.cursor()
63 cur = self.con.cursor(MyCursor)
65 cur = self.con.cursor(factory=lambda con: MyCursor(con))
70 self.assertRaises(TypeError, self.con.cursor, None)
72 self.assertRaises(TypeError, self.con.cursor, lambda: None)
[all …]
Duserfunctions.py142 self.con = sqlite.connect(":memory:")
144 self.con.create_function("returntext", 0, func_returntext)
145 self.con.create_function("returnunicode", 0, func_returnunicode)
146 self.con.create_function("returnint", 0, func_returnint)
147 self.con.create_function("returnfloat", 0, func_returnfloat)
148 self.con.create_function("returnnull", 0, func_returnnull)
149 self.con.create_function("returnblob", 0, func_returnblob)
150 self.con.create_function("returnlonglong", 0, func_returnlonglong)
151 self.con.create_function("raiseexception", 0, func_raiseexception)
153 self.con.create_function("isstring", 1, func_isstring)
[all …]
Ddbapi.py123 con = sqlite.connect(YOU_CANNOT_OPEN_THIS)
516 self.con = sqlite.connect(":memory:")
517 self.cur = self.con.cursor()
522 self.con.close()
525 def run(con, errors): argument
527 cur = con.cursor()
536 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
543 def run(con, errors): argument
545 con.commit()
554 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
[all …]
/external/python/cpython2/Lib/sqlite3/test/
Dregression.py32 self.con = sqlite.connect(":memory:")
35 self.con.close()
39 cur = self.con.cursor()
44 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES)
46 cur = self.con.cursor()
50 con.close()
56 con = sqlite.connect(":memory:", cached_statements=5)
57 cursors = [con.cursor() for x in xrange(5)]
65 con.rollback()
68 cur = self.con.cursor()
[all …]
Dhooks.py35 con = sqlite.connect(":memory:")
37 con.create_collation(None, lambda x, y: (x > y) - (x < y))
40 con = sqlite.connect(":memory:")
42 con.create_collation("X", 42)
48 con = sqlite.connect(":memory:")
50 con.create_collation("coll�", cmp)
59 con = sqlite.connect(":memory:")
61 con.create_collation(BadUpperStr("mycoll"), mycoll)
62 result = con.execute("""
79 con = sqlite.connect(":memory:")
[all …]
Dfactory.py45 self.con = sqlite.connect(":memory:", factory=MyConnection)
48 self.con.close()
51 self.assertIsInstance(self.con, MyConnection)
55 self.con = sqlite.connect(":memory:")
58 self.con.close()
61 cur = self.con.cursor()
63 cur = self.con.cursor(MyCursor)
65 cur = self.con.cursor(factory=lambda con: MyCursor(con))
70 self.assertRaises(TypeError, self.con.cursor, None)
72 self.assertRaises(TypeError, self.con.cursor, lambda: None)
[all …]
Duserfunctions.py127 self.con = sqlite.connect(":memory:")
129 self.con.create_function("returntext", 0, func_returntext)
130 self.con.create_function("returnunicode", 0, func_returnunicode)
131 self.con.create_function("returnint", 0, func_returnint)
132 self.con.create_function("returnfloat", 0, func_returnfloat)
133 self.con.create_function("returnnull", 0, func_returnnull)
134 self.con.create_function("returnblob", 0, func_returnblob)
135 self.con.create_function("returnlonglong", 0, func_returnlonglong)
136 self.con.create_function("raiseexception", 0, func_raiseexception)
138 self.con.create_function("isstring", 1, func_isstring)
[all …]
Ddbapi.py124 con = sqlite.connect(YOU_CANNOT_OPEN_THIS)
482 self.con = sqlite.connect(":memory:")
483 self.cur = self.con.cursor()
488 self.con.close()
491 def run(con, errors): argument
493 cur = con.cursor()
502 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
509 def run(con, errors): argument
511 con.commit()
520 t = threading.Thread(target=run, kwargs={"con": self.con, "errors": errors})
[all …]
Dpy25tests.py39 self.con = sqlite.connect(":memory:", factory=MyConnection)
40 self.con.execute("create table test(c unique)")
44 self.con.close()
48 with self.con:
53 with self.con:
54 self.con.execute("insert into test(c) values ('foo')")
55 self.con.rollback()
56 count = self.con.execute("select count(*) from test").fetchone()[0]
64 with self.con:
65 self.con.execute("insert into test(c) values (4)")
[all …]
/external/selinux/libsepol/src/
Dcontext_record.c26 const char *sepol_context_get_user(const sepol_context_t * con) in sepol_context_get_user() argument
29 return con->user; in sepol_context_get_user()
35 sepol_context_t * con, const char *user) in hidden_def()
45 free(con->user); in hidden_def()
46 con->user = tmp_user; in hidden_def()
53 const char *sepol_context_get_role(const sepol_context_t * con) in hidden_def()
56 return con->role; in hidden_def()
62 sepol_context_t * con, const char *role) in hidden_def()
71 free(con->role); in hidden_def()
72 con->role = tmp_role; in hidden_def()
[all …]
/external/selinux/libselinux/include/selinux/
Dselinux.h20 extern void freecon(char * con);
23 extern void freeconary(char ** con);
29 extern int getcon(char ** con);
30 extern int getcon_raw(char ** con);
40 extern int setcon(const char * con);
41 extern int setcon_raw(const char * con);
45 extern int getpidcon(pid_t pid, char ** con);
46 extern int getpidcon_raw(pid_t pid, char ** con);
50 extern int getprevcon(char ** con);
51 extern int getprevcon_raw(char ** con);
[all …]
/external/selinux/libsemanage/src/
Dcontext_record.c12 const char *semanage_context_get_user(const semanage_context_t * con) in semanage_context_get_user() argument
15 return sepol_context_get_user(con); in semanage_context_get_user()
19 semanage_context_t * con, const char *user) in semanage_context_set_user() argument
22 return sepol_context_set_user(handle->sepolh, con, user); in semanage_context_set_user()
26 const char *semanage_context_get_role(const semanage_context_t * con) in semanage_context_get_role() argument
29 return sepol_context_get_role(con); in semanage_context_get_role()
33 semanage_context_t * con, const char *role) in semanage_context_set_role() argument
36 return sepol_context_set_role(handle->sepolh, con, role); in semanage_context_set_role()
40 const char *semanage_context_get_type(const semanage_context_t * con) in semanage_context_get_type() argument
43 return sepol_context_get_type(con); in semanage_context_get_type()
[all …]
/external/gptfdisk/
Dandroid_popt.cc64 poptContext con = (poptContext) calloc(1, sizeof(struct _poptContext)); in poptGetContext() local
65 con->argc = argc; in poptGetContext()
66 con->argv = argv; in poptGetContext()
67 con->options = options; in poptGetContext()
68 con->long_options = long_options; in poptGetContext()
69 return con; in poptGetContext()
72 poptContext poptFreeContext(poptContext con) { in poptFreeContext() argument
73 free(con->long_options); in poptFreeContext()
74 free(con); in poptFreeContext()
78 void poptResetContext(poptContext con) { in poptResetContext() argument
[all …]
/external/u-boot/test/dm/
Dvideo.c111 struct udevice *dev, *con; in dm_test_video_text() local
121 ut_assertok(uclass_get_device(UCLASS_VIDEO_CONSOLE, 0, &con)); in dm_test_video_text()
122 vidconsole_putc_xy(con, 0, 0, 'a'); in dm_test_video_text()
125 vidconsole_putc_xy(con, 0, 0, ' '); in dm_test_video_text()
129 vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i); in dm_test_video_text()
132 vidconsole_set_row(con, 0, WHITE); in dm_test_video_text()
136 vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i); in dm_test_video_text()
146 struct udevice *dev, *con; in dm_test_video_chars() local
151 ut_assertok(uclass_get_device(UCLASS_VIDEO_CONSOLE, 0, &con)); in dm_test_video_chars()
152 vidconsole_put_string(con, test_string); in dm_test_video_chars()
[all …]
/external/selinux/libselinux/src/
Dget_context_list.c20 context_t con; in get_default_context_with_role() local
29 con = context_new(*ptr); in get_default_context_with_role()
30 if (!con) in get_default_context_with_role()
32 role2 = context_role_get(con); in get_default_context_with_role()
34 context_free(con); in get_default_context_with_role()
37 context_free(con); in get_default_context_with_role()
65 context_t con; in hidden_def() local
79 con = context_new(fromcon); in hidden_def()
80 if (!con) in hidden_def()
83 if (context_range_set(con, level)) in hidden_def()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_common.c33 static void dispatch_data(DBusConnection *con) in dispatch_data() argument
35 while (dbus_connection_get_dispatch_status(con) == in dispatch_data()
37 dbus_connection_dispatch(con); in dispatch_data()
53 DBusConnection *con = eloop_ctx; in dispatch_initial_dbus_messages() local
54 dispatch_data(con); in dispatch_initial_dbus_messages()
61 dbus_connection_ref(priv->con); in process_watch()
73 dispatch_data(priv->con); in process_watch()
77 dbus_connection_unref(priv->con); in process_watch()
202 if (sig != SIGPOLL || !priv->con) in process_wakeup_main()
205 if (dbus_connection_get_dispatch_status(priv->con) != in process_wakeup_main()
[all …]
/external/selinux/policycoreutils/secon/
Dsecon.c344 static int my_getXcon_raw(pid_t pid, security_context_t * con, const char *val) in my_getXcon_raw() argument
360 *con = NULL; in my_getXcon_raw()
367 if (*ptr && !(*con = strdup(ptr))) in my_getXcon_raw()
374 static int my_getpidexeccon_raw(pid_t pid, security_context_t * con) in my_getpidexeccon_raw() argument
376 return (my_getXcon_raw(pid, con, "exec")); in my_getpidexeccon_raw()
378 static int my_getpidfscreatecon_raw(pid_t pid, security_context_t * con) in my_getpidfscreatecon_raw() argument
380 return (my_getXcon_raw(pid, con, "fscreate")); in my_getpidfscreatecon_raw()
382 static int my_getpidkeycreatecon_raw(pid_t pid, security_context_t * con) in my_getpidkeycreatecon_raw() argument
384 return (my_getXcon_raw(pid, con, "keycreate")); in my_getpidkeycreatecon_raw()
390 security_context_t con = NULL, con_tmp; in get_scon() local
[all …]
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DTcpConnectionTest.java69 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testInvalidContent() local
71 con.init(); in testInvalidContent()
73 con.run(); in testInvalidContent()
85 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testRemoteClose() local
87 con.init(); in testRemoteClose()
91 con.run(); in testRemoteClose()
114 final TcpConnection con = new TcpConnection(mockConnection.getSocketA(), in testLocalClose() local
116 con.init(); in testLocalClose()
120 con.run(); in testLocalClose()
127 con.close(); in testLocalClose()
[all …]
/external/selinux/libsemanage/include/semanage/
Dcontext_record.h15 extern const char *semanage_context_get_user(const semanage_context_t * con);
18 semanage_context_t * con,
22 extern const char *semanage_context_get_role(const semanage_context_t * con);
25 semanage_context_t * con,
29 extern const char *semanage_context_get_type(const semanage_context_t * con);
32 semanage_context_t * con,
36 extern const char *semanage_context_get_mls(const semanage_context_t * con);
39 semanage_context_t * con,
47 const semanage_context_t * con,
50 extern void semanage_context_free(semanage_context_t * con);
[all …]
/external/selinux/libsepol/include/sepol/
Dcontext_record.h17 extern const char *sepol_context_get_user(const sepol_context_t * con);
20 sepol_context_t * con, const char *user);
23 extern const char *sepol_context_get_role(const sepol_context_t * con);
26 sepol_context_t * con, const char *role);
29 extern const char *sepol_context_get_type(const sepol_context_t * con);
32 sepol_context_t * con, const char *type);
35 extern const char *sepol_context_get_mls(const sepol_context_t * con);
38 sepol_context_t * con, const char *mls_range);
45 const sepol_context_t * con,
48 extern void sepol_context_free(sepol_context_t * con);
[all …]
/external/python/cpython2/Lib/test/
Dtest_httpservers.py190 self.con = httplib.HTTPConnection('localhost', self.PORT)
191 self.con.connect()
194 self.con.request('GET', '/')
195 res = self.con.getresponse()
199 self.con._http_vsn_str = 'HTTP/1.1\n'
200 self.con.putrequest('XYZBOGUS', '/')
201 self.con.endheaders()
202 res = self.con.getresponse()
206 self.con._http_vsn_str = 'FUBAR'
207 self.con.putrequest('GET', '/')
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DPrefixConstructorTest.java74 private BaseConstructor con; field in PrefixConstructorTest.PrefixConstruct
76 public PrefixConstruct(String prefix, BaseConstructor con) { in PrefixConstruct() argument
78 this.con = con; in PrefixConstruct()
83 return new Extra(suffix, con.constructScalar((ScalarNode) node).toString()); in construct()
91 private BaseConstructor con; field in PrefixConstructorTest.ExactConstruct
93 public ExactConstruct(BaseConstructor con) { in ExactConstruct() argument
94 this.con = con; in ExactConstruct()
98 return new Extra("Item", con.constructScalar((ScalarNode) node).toString()); in construct()
106 private BaseConstructor con; field in PrefixConstructorTest.ConstructUnknown
108 public ConstructUnknown(BaseConstructor con) { in ConstructUnknown() argument
[all …]
/external/syzkaller/vm/adb/
Dadb.go137 if con := devToConsole[dev]; con != "" {
138 return con
140 con, err := findConsoleImpl(adb, dev)
145 con = "adb"
146 devToConsole[dev] = con
147 return con
149 devToConsole[dev] = con
150 consoleToDev[con] = dev
151 log.Logf(0, "associating adb device %v with console %v", dev, con)
152 return con
[all …]

12345678910>>...15