Home
last modified time | relevance | path

Searched refs:alert (Results 1 – 25 of 207) sorted by relevance

123456789

/external/adhd/cras/src/server/
Dcras_alert.c45 struct cras_alert *alert; in cras_alert_create() local
46 alert = calloc(1, sizeof(*alert)); in cras_alert_create()
47 if (!alert) in cras_alert_create()
49 alert->prepare = prepare; in cras_alert_create()
50 alert->flags = flags; in cras_alert_create()
51 DL_APPEND(all_alerts, alert); in cras_alert_create()
52 return alert; in cras_alert_create()
55 int cras_alert_add_callback(struct cras_alert *alert, cras_alert_cb cb, in cras_alert_add_callback() argument
63 DL_FOREACH(alert->callbacks, alert_cb) in cras_alert_add_callback()
72 DL_APPEND(alert->callbacks, alert_cb); in cras_alert_add_callback()
[all …]
Dcras_alert.h39 typedef void (*cras_alert_prepare)(struct cras_alert *alert);
71 int cras_alert_add_callback(struct cras_alert *alert, cras_alert_cb cb,
83 int cras_alert_rm_callback(struct cras_alert *alert, cras_alert_cb cb,
92 void cras_alert_pending(struct cras_alert *alert);
105 void cras_alert_pending_data(struct cras_alert *alert,
120 void cras_alert_destroy(struct cras_alert *alert);
Dcras_observer.c156 static void nodes_prepare(struct cras_alert *alert) in nodes_prepare() argument
290 static int cras_observer_server_set_alert(struct cras_alert **alert, in cras_observer_server_set_alert() argument
295 *alert = cras_alert_create(prepare, flags); in cras_observer_server_set_alert()
296 if (!*alert) in cras_observer_server_set_alert()
298 return cras_alert_add_callback(*alert, cb, NULL); in cras_observer_server_set_alert()
301 #define CRAS_OBSERVER_SET_ALERT(alert,prepare,flags) \ argument
304 &g_observer->alerts.alert, alert##_alert, \
310 #define CRAS_OBSERVER_SET_ALERT_WITH_DIRECTION(alert,direction) \ argument
313 &g_observer->alerts.alert[direction], \
314 alert##_alert, NULL, 0); \
[all …]
/external/boringssl/src/ssl/test/runner/
Dalert.go9 type alert uint8 type
18 alertCloseNotify alert = 0
19 alertEndOfEarlyData alert = 1
20 alertUnexpectedMessage alert = 10
21 alertBadRecordMAC alert = 20
22 alertDecryptionFailed alert = 21
23 alertRecordOverflow alert = 22
24 alertDecompressionFailure alert = 30
25 alertHandshakeFailure alert = 40
26 alertNoCertificate alert = 41
[all …]
/external/adhd/cras/src/tests/
Dalert_unittest.cc16 void prepare(struct cras_alert *alert);
47 struct cras_alert *alert = cras_alert_create(NULL, 0); in TEST_F() local
48 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F()
50 cras_alert_pending(alert); in TEST_F()
54 cras_alert_destroy(alert); in TEST_F()
58 struct cras_alert *alert = cras_alert_create(NULL, 0); in TEST_F() local
59 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F()
62 cras_alert_pending(alert); in TEST_F()
63 cras_alert_pending(alert); in TEST_F()
67 cras_alert_destroy(alert); in TEST_F()
[all …]
Dobserver_unittest.cc255 void DoObserverAlert(cras_alert_cb alert, void *data) { in DoObserverAlert() argument
261 ASSERT_NE(alert, reinterpret_cast<cras_alert_cb>(NULL)); in DoObserverAlert()
262 alert(NULL, data); in DoObserverAlert()
268 void DoObserverRemoveClear(cras_alert_cb alert, void *data) { in DoObserverRemoveClear() argument
269 ASSERT_NE(alert, reinterpret_cast<cras_alert_cb>(NULL)); in DoObserverRemoveClear()
276 alert(NULL, data); in DoObserverRemoveClear()
295 alert(NULL, data); in DoObserverRemoveClear()
606 void cras_alert_destroy(struct cras_alert *alert) { in cras_alert_destroy() argument
612 struct cras_alert *alert = NULL; in cras_alert_create() local
615 alert = reinterpret_cast<struct cras_alert*>(cras_alert_create_called); in cras_alert_create()
[all …]
/external/pdfium/testing/resources/javascript/
Dapp_alert.in37 app.alert("This test passes if alert() logs output under the test utility.");
38 app.alert("message", 1, 2, "title");
39 app.alert({"cMsg": "message", "cTitle": "title"});
40 app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4});
41 app.alert(undefined);
42 app.alert(null);
43 app.alert(true);
44 app.alert(false);
45 app.alert(42);
46 app.alert([1, 2, 3]);
[all …]
Dapply.in37 app.alert('Applying to util itself - should succeed');
39 app.alert(util.byteToChar.apply(util, [65]));
42 app.alert('Caught: ' + e);
45 app.alert('Applying to array - should throw');
47 app.alert(util.byteToChar.apply([], [65]));
50 app.alert('Caught: ' + e);
53 app.alert('Applying to number - should throw');
55 app.alert(util.byteToChar.apply(7, [65]));
58 app.alert('Caught: ' + e);
61 app.alert('Applying to wrong native obj - should throw');
[all …]
Dapp_repsonse.in40 app.alert("result: " + result);
42 app.alert("result: " + result);
44 app.alert("result: " + result);
52 app.alert("result: " + result);
54 app.alert("unexpected error " + e);
58 app.alert("unexpected success");
60 app.alert("Caught expected error " + e);
64 app.alert("unexpected success");
66 app.alert("Caught expected error " + e);
Dconsts.in42 app.alert(expr + " is " + eval(expr));
45 app.alert("ERROR: " + e.toString());
52 app.alert(props[i] + " is " + eval(props[i]));
55 app.alert("ERROR: " + e.toString());
62 app.alert(props[i] + " is\n " + eval(props[i]).join(",\n "));
65 app.alert("ERROR: " + e.toString());
70 app.alert("String equality test (==): " +
72 app.alert("String equality test (===): " +
74 app.alert("Array equality test (==): " +
76 app.alert("Array equality test (===): " +
[all …]
Dglobals.in69 app.alert("For " + prop.name + ": Setup: ERROR: " + e.toString());
80 app.alert("For " + prop.name + ": Delete: ERROR: " + e.toString());
91 app.alert("For " + prop.name +
98 app.alert("************ " + msg + " ************");
99 app.alert("Enumerable Globals:");
102 app.alert(" " + name + " = " + global[name] +
105 app.alert("For " + name + ": Dump: ERROR: " + e.toString());
108 app.alert("Expected Globals:");
113 app.alert(" " + prop.name + " = " + actual);
115 app.alert(" " + actual.colors[0]);
[all …]
Dfield.in97 app.alert("field is " + field.name);
99 app.alert("sub_a is " + sub_a.name);
101 app.alert("nonesuch is " + nonesuch);
103 app.alert("Unexpected error: " + e);
109 app.alert("found " + subs.length + " sub-fields:");
111 app.alert(subs[i].name);
114 app.alert("Unexpected error: " + e);
Dmouse_events.in56 /JS (app.alert\("enter"\);)
62 /JS (app.alert\("exit"\);)
68 /JS (app.alert\("down"\);)
74 /JS (app.alert\("up"\);)
80 /JS (app.alert\("focus"\);)
86 /JS (app.alert\("blur"\);)
/external/markdown/tests/safe_mode/
Dunsafe_urls.txt3 [link](javascript:alert%28'Hello%20world!'%29)
5 [link](livescript:alert%28'Hello%20world!'%29)
7 [link](jAvAsCrIpT:alert%28'Hello%20world!'%29)
8 [link](ja&#32;vas&#32;cr&#32;ipt:alert%28'Hello%20world!'%29)
9 [link](ja&#00032;vas&#32;cr&#32;ipt:alert%28'Hello%20world!'%29)
10 [link](ja&#x00020;vas&#32;cr&#32;ipt:alert%28'Hello%20world!'%29)
11 [link](ja%09&#x20;%0Avas&#32;cr&#x0a;ipt:alert%28'Hello%20world!'%29)
12 [link](ja%20vas%20cr%20ipt:alert%28'Hello%20world!'%29)
13 [link](live%20script:alert%28'Hello%20world!'%29)
15 ![img](javascript:alert%29'XSS'%29)
[all …]
Dscript_tags.txt4 alert("Hello world!")
11 alert("Hello world!")
18 alert("Hello world!")
24 alert("Hello world!")
31 alert("Hello world!")
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAlertDialogTest.java49 AlertDialog alert = builder.create(); in testBuilder() local
50 alert.show(); in testBuilder()
52 assertThat(alert.isShowing()).isTrue(); in testBuilder()
54 ShadowAlertDialog shadowAlertDialog = shadowOf(alert); in testBuilder()
59 assertThat(ShadowAlertDialog.getLatestAlertDialog()).isSameAs(alert); in testBuilder()
104 AlertDialog alert = builder.create(); in testSetMessageAfterCreation() local
106 ShadowAlertDialog shadowAlertDialog = shadowOf(alert); in testSetMessageAfterCreation()
109 alert.setMessage("new message"); in testSetMessageAfterCreation()
112 alert.setMessage(null); in testSetMessageAfterCreation()
121 AlertDialog alert = builder.create(); in shouldSetMessageFromResourceId() local
[all …]
/external/ImageMagick/scripts/
Dxsnap49 catch {destroy .alert}
50 toplevel .alert -class alert
51 wm title .alert Alert
52 wm iconname .alert alert
53 wm group .alert .
54 wm transient .alert .
55 wm geometry .alert \
60 frame .alert.top -relief raised -border 1
61 frame .alert.bottom -relief raised -border 1
62 pack append .alert .alert.top {top fill expand} .alert.bottom \
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/dialog/
DDurationPickerDialog.java41 AlertDialog.Builder alert = new AlertDialog.Builder(activity); in getDurationFromDialog() local
42 alert.setIcon(R.drawable.ic_dialog_time); in getDurationFromDialog()
43 alert.setTitle(title); in getDurationFromDialog()
44 alert.setView(picker); in getDurationFromDialog()
45 alert.setPositiveButton("Set", new DialogInterface.OnClickListener() { in getDurationFromDialog()
51 alert.setOnCancelListener(new DialogInterface.OnCancelListener() { in getDurationFromDialog()
57 alert.show(); in getDurationFromDialog()
/external/autotest/server/cros/ap_configurators/
Dnetgear2000_ap_configurator.py17 def _alert_handler(self, alert): argument
23 text = alert.text
25 alert.accept()
29 alert.accept()
31 alert.accept()
33 alert.accept()
35 alert.accept()
37 super(Netgear2000APConfigurator, self)._alert_handler(alert)
Dlinksyse_dual_band_configurator.py20 def _alert_handler(self, alert): argument
27 text = alert.text
31 alert.accept()
33 alert.accept()
35 alert.accept()
37 alert.accept()
39 alert.accept()
41 alert.accept()
44 alert.accept()
46 alert.accept()
[all …]
DbelkinF9K1001_ap_configurator.py21 def _security_alert(self, alert): argument
22 text = alert.text
24 alert.accept()
26 alert.accept()
28 alert.accept()
30 alert.accept()
32 alert.accept()
34 alert.accept()
Dnetgear4300_ap_configurator.py18 def _alert_handler(self, alert): argument
24 text = alert.text
28 alert.accept()
30 alert.accept()
32 alert.accept()
34 alert.accept()
38 super(Netgear4300APConfigurator, self)._alert_handler(alert)
/external/chromium-libpac/test/js-unittest/
Dbindings.js34 alert();
35 alert(null);
36 alert(undefined);
37 alert({foo:'bar'});
42 alert(new MyObject());
44 alert(e);
/external/walt/ios/WALT/
DScreenResponseController.m76 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
77 [alert show];
83 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
88 [alert show];
135 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
136 [alert show];
148 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
149 [alert show];
155 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
160 [alert show];
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c280 u8 *out_data, size_t *out_len, u8 *alert) in tlsv1_record_receive() argument
311 *alert = TLS_ALERT_PROTOCOL_VERSION; in tlsv1_record_receive()
319 *alert = TLS_ALERT_RECORD_OVERFLOW; in tlsv1_record_receive()
342 *alert = TLS_ALERT_UNEXPECTED_MESSAGE; in tlsv1_record_receive()
351 *alert = TLS_ALERT_INTERNAL_ERROR; in tlsv1_record_receive()
359 *alert = TLS_ALERT_DECRYPTION_FAILED; in tlsv1_record_receive()
430 *alert = TLS_ALERT_BAD_RECORD_MAC; in tlsv1_record_receive()
441 *alert = TLS_ALERT_INTERNAL_ERROR; in tlsv1_record_receive()
455 *alert = TLS_ALERT_INTERNAL_ERROR; in tlsv1_record_receive()
464 *alert = TLS_ALERT_BAD_RECORD_MAC; in tlsv1_record_receive()
[all …]

123456789