/external/python/cpython3/Lib/unittest/test/testmock/ |
H A D | testsentinel.py | 2 from unittest.mock import sentinel, DEFAULT namespace 8 self.assertEqual(sentinel.whatever, sentinel.whatever, 9 'sentinel not stored') 10 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, 11 'sentinel should be unique') 15 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever', 16 'sentinel nam [all...] |
H A D | testwith.py | 5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call namespace 9 something = sentinel.Something 10 something_else = sentinel.SomethingElse 17 with patch('%s.something' % __name__, sentinel.Something2): 18 self.assertEqual(something, sentinel.Something2, "unpatched") 19 self.assertEqual(something, sentinel.Something) 24 with patch('%s.something' % __name__, sentinel.Something2): 25 self.assertEqual(something, sentinel.Something2, "unpatched") 31 self.assertEqual(something, sentinel.Something) 39 self.assertEqual(something, sentinel [all...] |
/external/valgrind/none/tests/s390x/ |
H A D | clst.c | 28 clst(const char *str1, const char *str2, int sentinel) argument 32 printf("comparing: %s with %s sentinel = %d", str1, str2, sentinel); 33 if (isprint(sentinel)) 34 printf(" (%c)", sentinel); 36 res = do_clst(str1, str2, sentinel);
|
/external/python/cpython3/Lib/test/ |
H A D | test_getopt.py | 9 sentinel = object() variable
|
/external/python/cpython2/Lib/test/ |
H A D | test_getopt.py | 9 sentinel = object() variable
|
/external/droiddriver/src/io/appium/droiddriver/scroll/ |
H A D | DynamicSentinelStrategy.java | 31 * Determines whether scrolling is possible by checking whether the sentinel 40 * Interface for determining whether sentinel is updated. 60 * Determines whether the sentinel is updated by checking a single unique 61 * String attribute of a descendant element of the sentinel (or itself). 67 * @param uniqueStringFinder a Finder relative to the sentinel that finds 81 private String getUniqueStringFromSentinel(UiElement sentinel) { argument 83 return getUniqueString(uniqueStringFinder.find(sentinel)); 91 // If the sentinel moved, scrolling has some effect. This is both an 107 Logs.logfmt(Log.WARN, "Unique String is null: sentinel=%s, uniqueStringFinder=%s", 125 * Determines whether the sentinel i [all...] |
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/ |
H A D | s-c2.c | 236 testdata_t sentinel; local 248 sentinel.next = NULL; 249 sentinel.id = 0; 250 cur = &sentinel; 370 cur = &sentinel;
|
/external/python/cpython2/Objects/ |
H A D | iterobject.c | 98 {NULL, NULL} /* sentinel */ 143 PyCallIter_New(PyObject *callable, PyObject *sentinel) argument 151 Py_INCREF(sentinel); 152 it->it_sentinel = sentinel;
|
/external/python/cpython3/Lib/multiprocessing/ |
H A D | process.py | 106 self._sentinel = self._popen.sentinel 194 def sentinel(self): member in class:BaseProcess
|
/external/python/cpython3/Objects/ |
H A D | iterobject.c | 133 {NULL, NULL} /* sentinel */ 178 PyCallIter_New(PyObject *callable, PyObject *sentinel) argument 186 Py_INCREF(sentinel); 187 it->it_sentinel = sentinel; 252 {NULL, NULL} /* sentinel */
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/ |
H A D | rjsmin.c | 94 *sentinel = source + length; local 99 while (source < sentinel) { 119 while (source < sentinel) { 130 if (source < sentinel) { 133 if (c == U('\r') && source < sentinel 147 if (!(source < sentinel)) { 192 while (source < sentinel) { 202 if (source < sentinel) { 210 while (source < sentinel) { 217 if (source < sentinel) { [all...] |
/external/clang/utils/ |
H A D | clang-completion-mode.el | 93 ;; sentinel processes the entire string at once. 132 ;; Process "sentinel" that, on successful code completion, replaces the 135 (defun clang-completion-sentinel (proc event) 170 (set-process-sentinel cc-proc 'clang-completion-sentinel)
|
/external/libchrome/base/trace_event/ |
H A D | heap_profiler_allocation_register.cc | 80 Backtrace sentinel = {}; local 81 sentinel.frames[0] = StackFrame::FromThreadName("[out of heap profiler mem]"); 82 sentinel.frame_count = 1; 84 // Rationale for max / 2: in theory we could just start the sentinel with a 86 // conditional in RemoveBacktrace() keeping the sentinel logic out of the fast 87 // path. From a functional viewpoint, the sentinel is safe even if we wrap 91 auto index_and_flag = backtraces_.Insert(sentinel, sentinel_refcount);
|
/external/libxml2/ |
H A D | list.c | 40 xmlLinkPtr sentinel; member in struct:_xmlList 104 for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); 124 for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); 144 if (lk == l->sentinel) 169 if (lk == l->sentinel) 199 /* Add the sentinel */ 200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { 202 "Cannot initialize memory for sentinel"); [all...] |
/external/ltp/testcases/open_posix_testsuite/stress/threads/fork/ |
H A D | s-c1.c | 122 mes_t sentinel; local 129 m_cur = &sentinel; 171 m_cur = &sentinel; 352 ret = parse_measure(&sentinel); 362 while (sentinel.next != NULL) { 363 m_cur = sentinel.next; 369 sentinel.next = m_cur->next;
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
H A D | s-c1.c | 158 mes_t sentinel; local 165 m_cur = &sentinel; 205 m_cur = &sentinel; 403 ret = parse_measure(&sentinel); 414 while (sentinel.next != NULL) { 415 m_cur = sentinel.next; 423 sentinel.next = m_cur->next;
|
/external/mesa3d/src/mesa/main/ |
H A D | extensions.c | 342 GLboolean *sentinel = base + o(extension_sentinel); local 346 for (i = base; i != sentinel; ++i)
|
/external/v8/src/compiler/ |
H A D | osr.cc | 61 Node* sentinel = graph->NewNode(dead->op()); local 68 new (stuff) NodeVector(original_count, sentinel, tmp_zone); 92 if (copy != sentinel) { 122 if (copy->InputAt(j) == sentinel) {
|
/external/ImageMagick/MagickCore/ |
H A D | identify.c | 1243 sentinel; 1256 sentinel=GetStringInfoDatum(profile)[i++]; 1257 if (sentinel != 0x1c) 1241 sentinel; local
|
/external/ImageMagick/coders/ |
H A D | json.c | 1377 sentinel; 1390 sentinel=GetStringInfoDatum(profile)[i++]; 1391 if (sentinel != 0x1c) 1372 sentinel; local
|
/external/brotli/c/enc/ |
H A D | entropy_encode.c | 75 HuffmanTree sentinel; local 76 InitHuffmanTree(&sentinel, BROTLI_UINT32_MAX, -1, -1); 103 [n]: we add a sentinel here. 106 [2n]: we add a sentinel at the end as well. 108 tree[n] = sentinel; 109 tree[n + 1] = sentinel; 131 /* The sentinel node becomes the parent node. */ 138 /* Add back the last sentinel node. */ 139 tree[j_end + 1] = sentinel;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
H A D | 1-2.c | 236 children_t sentinel = {.next = NULL }; variable 238 children_t *children = &sentinel;
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
H A D | s-c.c | 567 mes_t sentinel; local 569 m_cur = &sentinel; 642 ret = parse_measure(&sentinel); 645 m_cur = sentinel.next;
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/ |
H A D | s-c1.c | 124 mes_t sentinel; local 134 m_cur = &sentinel; 331 ret = parse_measure(&sentinel); 342 while (sentinel.next != NULL) { 343 m_cur = sentinel.next; 352 sentinel.next = m_cur->next;
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/ |
H A D | s-c1.c | 123 mes_t sentinel; local 134 m_cur = &sentinel; 341 ret = parse_measure(&sentinel); 352 while (sentinel.next != NULL) { 353 m_cur = sentinel.next; 361 sentinel.next = m_cur->next;
|