| /external/python/cpython2/Modules/ |
| D | svmodule.c | 1 /* SV module -- interface to the Indigo video board */ 6 -- user beware! */ 32 /* Set a SV-specific error from svideo_errno and return NULL */ 52 (int)(self->ob_info.width * self->ob_info.height * factor)))) in svc_conversion() 61 (*function)((boolean)invert, self->ob_capture, in svc_conversion() 63 self->ob_info.width, self->ob_info.height); in svc_conversion() 75 if (self->ob_info.format != SV_YUV411_FRAMES) { in svc_YUVtoYUV422DC() 85 if (self->ob_info.format != SV_YUV411_FRAMES) { in svc_YUVtoYUV422DC_quarter() 96 if (self->ob_info.format != SV_YUV411_FRAMES) { in svc_YUVtoYUV422DC_sixteenth() 107 switch (self->ob_info.format) { in svc_YUVtoRGB() [all …]
|
| D | cPickle.c | 45 #define PERSID 'P' 66 #define PUT 'p' 77 #define EXT1 '\x82' /* push object from extension registry; 1-byte index */ 78 #define EXT2 '\x83' /* ditto, but 2-byte index */ 79 #define EXT4 '\x84' /* ditto, but 4-byte index */ 80 #define TUPLE1 '\x85' /* build 1-tuple from stack top */ 81 #define TUPLE2 '\x86' /* build 2-tuple from two topmost stack items */ 82 #define TUPLE3 '\x87' /* build 3-tuple from three topmost stack items */ 88 /* There aren't opcodes -- they're ways to pickle bools before protocol 2, 151 PyObject **p; in Pdata_dealloc() local [all …]
|
| /external/antlr/runtime/Ruby/test/functional/parser/ |
| D | actions.rb | 2 # encoding: utf-8 7 inline_grammar( <<-'END' ) 51 inline_grammar( <<-'END' ) 73 finally { say('finally') } 81 …say('\%p \%p \%p \%p \%p \%p \%p \%p' \% [$text, $type, $line, $pos, $index, $channel, $start, $st… 95 parser.output.should == <<-END.fixed_indent( 0 ) 98 finally 101 lexer.output.should == <<-END.fixed_indent( 0 ) 103 "foobar" 4 1 0 -1 :default 0 5 106 "_Ab98" 4 1 7 -1 :default 7 11 [all …]
|
| /external/llvm/test/Transforms/ObjCARC/ |
| D | invoke.ll | 1 ; RUN: opt -S -objc-arc < %s | FileCheck %s 13 ; CHECK-LABEL: define void @test0( 15 ; CHECK: call void @objc_release(i8* %zipFile) [[NUW:#[0-9]+]], !clang.imprecise_release !0 20 ; CHECK-NEXT: } 41 ; CHECK-LABEL: define void @test1( 51 ; CHECK-NEXT: ret void 52 ; CHECK-NEXT: } 80 ; CHECK-NEXT: call i8* @objc_retain 81 ; CHECK-NOT: @objc_r 82 ; CHECK: finally.cont: [all …]
|
| /external/guava/android/guava/src/com/google/common/util/concurrent/ |
| D | Monitor.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 32 * <p>This class is intended as a replacement for {@link ReentrantLock}. Code using {@code Monitor} 33 * is less error-prone and more readable than code using {@code ReentrantLock}, without significant 43 * <p>A thread is said to <i>occupy</i> a monitor if it has <i>entered</i> the monitor but not yet 47 * semantics as the built-in Java language synchronization primitives. 49 * <p>A call to any of the <i>enter</i> methods with <b>void</b> return type should always be 50 * followed immediately by a <i>try/finally</i> block to ensure that the current thread leaves the 57 * } finally { 62 * <p>A call to any of the <i>enter</i> methods with <b>boolean</b> return type should always appear 63 * as the condition of an <i>if</i> statement containing a <i>try/finally</i> block to ensure that [all …]
|
| D | CycleDetectingLockFactory.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 51 * <p>Potential deadlocks detected when calling the {@code lock()}, {@code lockInterruptibly()}, or 61 * <p>The locks created by a factory instance will detect lock acquisition cycles with locks created 67 * <p>Applications are encouraged to use a {@code CycleDetectingLockFactory} to create any locks for 71 * <p><strong>Cycle Detection</strong> 73 * <p>Deadlocks can arise when locks are acquired in an order that forms a cycle. In a simple 78 * Thread1: acquire(LockA) --X acquire(LockB) 79 * Thread2: acquire(LockB) --X acquire(LockA) 82 * <p>Neither thread will progress because each is waiting for the other. In more complex 86 * Thread1: acquire(LockA) --X acquire(LockB) [all …]
|
| /external/guava/guava/src/com/google/common/util/concurrent/ |
| D | Monitor.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 35 * <p>This class is intended as a replacement for {@link ReentrantLock}. Code using {@code Monitor} 36 * is less error-prone and more readable than code using {@code ReentrantLock}, without significant 46 * <p>A thread is said to <i>occupy</i> a monitor if it has <i>entered</i> the monitor but not yet 50 * semantics as the built-in Java language synchronization primitives. 52 * <p>A call to any of the <i>enter</i> methods with <b>void</b> return type should always be 53 * followed immediately by a <i>try/finally</i> block to ensure that the current thread leaves the 60 * } finally { 65 * <p>A call to any of the <i>enter</i> methods with <b>boolean</b> return type should always appear 66 * as the condition of an <i>if</i> statement containing a <i>try/finally</i> block to ensure that [all …]
|
| D | CycleDetectingLockFactory.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 51 * <p>Potential deadlocks detected when calling the {@code lock()}, {@code lockInterruptibly()}, or 61 * <p>The locks created by a factory instance will detect lock acquisition cycles with locks created 67 * <p>Applications are encouraged to use a {@code CycleDetectingLockFactory} to create any locks for 71 * <p><strong>Cycle Detection</strong> 73 * <p>Deadlocks can arise when locks are acquired in an order that forms a cycle. In a simple 78 * Thread1: acquire(LockA) --X acquire(LockB) 79 * Thread2: acquire(LockB) --X acquire(LockA) 82 * <p>Neither thread will progress because each is waiting for the other. In more complex 86 * Thread1: acquire(LockA) --X acquire(LockB) [all …]
|
| /external/apache-commons-io/src/main/java/org/apache/commons/io/input/ |
| D | ReadAheadInputStream.java | 6 * http://www.apache.org/licenses/LICENSE-2.0 40 * <p> 42 * </p> 43 * <p> 45 * </p> 53 * <p> 55 * </p> 71 * <p> 73 * </p> 74 * <p> [all …]
|
| /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
| D | MonitorBasedArrayBlockingQueue.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 * elements FIFO (first-in-first-out). The <em>head</em> of the queue is that element that has been 37 * <p>This is a classic "bounded buffer", in which a fixed-sized array holds elements 42 * <p>This class supports an optional fairness policy for ordering waiting producer and consumer 47 * <p>This class and its iterator implement all of the <em>optional</em> methods of the {@link 59 // http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ 71 * Concurrency control uses the classic two-condition algorithm 110 --count; in extract() 138 --count; in removeAt() 239 } finally { in offer() [all …]
|
| D | MonitorBasedPriorityBlockingQueue.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects 43 * <p>This class and its iterator implement all of the <em>optional</em> methods of the {@link 50 * <p>Operations on this class make no guarantees about the ordering of elements with equal 53 * applies first-in-first-out tie-breaking to comparable elements. To use it, you would insert a 70 * res = (seqNum < other.seqNum ? -1 : 1); 83 // http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ 180 } finally { in offer() 225 } finally { in poll() 237 } finally { in poll() [all …]
|
| /external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/ |
| D | MonitorBasedArrayBlockingQueue.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 * elements FIFO (first-in-first-out). The <em>head</em> of the queue is that element that has been 37 * <p>This is a classic "bounded buffer", in which a fixed-sized array holds elements 42 * <p>This class supports an optional fairness policy for ordering waiting producer and consumer 47 * <p>This class and its iterator implement all of the <em>optional</em> methods of the {@link 59 // http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ 71 * Concurrency control uses the classic two-condition algorithm 110 --count; in extract() 138 --count; in removeAt() 239 } finally { in offer() [all …]
|
| D | MonitorBasedPriorityBlockingQueue.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects 43 * <p>This class and its iterator implement all of the <em>optional</em> methods of the {@link 50 * <p>Operations on this class make no guarantees about the ordering of elements with equal 53 * applies first-in-first-out tie-breaking to comparable elements. To use it, you would insert a 70 * res = (seqNum < other.seqNum ? -1 : 1); 83 // http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ 180 } finally { in offer() 225 } finally { in poll() 237 } finally { in poll() [all …]
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/ |
| D | AsyncNaNHandlingTest.java | 24 AsyncReaderWrapper p = createParser(DEFAULT_F, JSON, 1); in testDisallowNaN() local 25 assertToken(JsonToken.START_ARRAY, p.nextToken()); in testDisallowNaN() 27 p.nextToken(); in testDisallowNaN() 30 verifyException(e, "non-standard"); in testDisallowNaN() 31 } finally { in testDisallowNaN() 32 p.close(); in testDisallowNaN() 51 AsyncReaderWrapper p = createParser(f, doc, readBytes); in _testAllowNaN() local 52 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testAllowNaN() 53 assertToken(JsonToken.VALUE_NUMBER_FLOAT, p.nextToken()); in _testAllowNaN() 55 double d = p.getDoubleValue(); in _testAllowNaN() [all …]
|
| D | AsyncNonStdNumberHandlingTest.java | 24 _testLeadingZeroesInt("-00007", -7); in testLeadingZeroesInt() 25 _testLeadingZeroesInt("-00007 ", -7); in testLeadingZeroesInt() 26 _testLeadingZeroesInt(" -00007", -7); in testLeadingZeroesInt() 32 _testLeadingZeroesInt("-04", -4); in testLeadingZeroesInt() 33 _testLeadingZeroesInt("-04 ", -4); in testLeadingZeroesInt() 34 _testLeadingZeroesInt(" -04", -4); in testLeadingZeroesInt() 47 AsyncReaderWrapper p = createParser(f, JSON); in _testLeadingZeroesInt() local 49 p.nextToken(); in _testLeadingZeroesInt() 50 p.currentText(); in _testLeadingZeroesInt() 54 } finally { in _testLeadingZeroesInt() [all …]
|
| /external/chromium-trace/catapult/common/py_utils/py_utils/ |
| D | lock_unittest.py | 2 # Use of this source code is governed by a BSD-style license that can be 15 from six.moves import range # pylint: disable=redefined-builtin 64 p = multiprocessing.Process( 66 p.start() 67 processess.append(p) 68 for p in processess: 69 p.join() 95 p = multiprocessing.Process( 98 p.start() 99 processess.append(p) [all …]
|
| /external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/io/ |
| D | ResettableInputStream.java | 29 * A mark-and-resettable input stream that can be used on files or file input 34 * This is necessary when such input stream needs to be marked-and-reset 36 * <p> 38 * {@link #release()} in a finally block to truly release the underlying 60 * <p> 63 * to be closed only (in a finally block) by the very same code 80 * <p> 83 * (in a finally block) by the very same code block that created it, then it 117 * <p> 120 * (in a finally block) by the very same code block that created it, then it [all …]
|
| /external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
| D | Tracer.java | 2 * Copyright 2016-17, OpenCensus Authors 8 * http://www.apache.org/licenses/LICENSE-2.0 27 * Tracer is a simple, thin class for {@link Span} creation and in-process context interaction. 29 * <p>Users may choose to use manual or automatic Context propagation. Because of that this class 32 * <p>The automatic context propagation is done using {@link io.grpc.Context} which is a gRPC 33 * independent implementation for in-process Context propagation mechanism which can carry 34 * scoped-values across API boundaries and between threads. Users of the library must propagate the 37 * <p>Example usage with automatic context propagation: 52 * <p>Example usage with manual context propagation: 62 * } finally { [all …]
|
| D | SpanBuilder.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 * <p>This is a simple example where all the work is being done within a single scope and a single 47 * <p>There might be cases where you do not perform all the work inside one static scope and the 85 * <p>This is a simple example where all the work is being done within a single scope and the 96 * } finally { 104 * <p>If your Java version is less than Java SE 7, see {@link SpanBuilder#startSpan} and {@link 157 * <p>Users <b>must</b> manually call {@link Span#end()} or {@link Span#end(EndSpanOptions)} to 160 * <p>Does not install the newly created {@code Span} to the current Context. 162 * <p>Example of usage: 172 * } finally { [all …]
|
| /external/python/cpython3/Lib/unittest/test/testmock/ |
| D | testpatch.py | 1 # Copyright (C) 2007-2012 Michael Foord & the mock team 2 # E-mail: fuzzyman AT voidspace DOT org DOT uk 158 finally: 456 "non-test method patched") 481 "non-test method patched") 668 # bpo-35512: Ensure that patch with a string target resolves to 680 finally: 726 finally: 732 # bpo-36366: calling stop without start will return None. 738 # bpo-36366: calling stop on an already stopped patch will return None. [all …]
|
| /external/javassist/src/test/test4/ |
| D | LocalVars.java | 6 int p = i; in run() local 7 int q = p; in run() 10 p += k; in run() 12 for (int k = 3; k > 0; --k) in run() 15 p++; in run() 17 finally { in run() 18 p++; in run() 21 switch (p) { in run() 23 p = 100; in run() 26 ++p; in run() [all …]
|
| /external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/ |
| D | ICURWLock.java | 5 * Copyright (C) 2001-2013, International Business Machines Corporation and * 15 * <p>A Reader/Writer lock originally written for ICU service 18 * for ICU 52.</p> 20 * <p>This assumes that there will be little writing contention. 22 * a write lock, or deal with priority inversion issues.</p> 24 * <p>Access to the lock should be enclosed in a try/finally block 31 * finally { 34 * </pre></p> 36 * <p>The lock provides utility methods getStats and clearStats 37 * to return statistics on the use of the lock.</p> [all …]
|
| /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
| D | Dbg.stg | 3 Copyright (c) 2005-2009 Terence Parr 80 self.ruleLevel -= 1 122 <! bug: can't use <@super.members()> cut-n-paste instead !> 133 <@finally()> 139 <! bug: can't use <@super.members()> cut-n-paste instead !> 145 Profiler p = (Profiler)self.dbg; 146 p.setParser(this); 150 <@finally()> 172 Profiler p = (Profiler)dbg; 173 p.setParser(this); [all …]
|
| /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/ |
| D | Dbg.stg | 3 Copyright (c) 2005-2012 Terence Parr 80 self.ruleLevel -= 1 122 <! bug: can't use <@super.members()> cut-n-paste instead !> 133 <@finally()> 139 <! bug: can't use <@super.members()> cut-n-paste instead !> 145 Profiler p = (Profiler)self.dbg; 146 p.setParser(this); 150 <@finally()> 172 Profiler p = (Profiler)dbg; 173 p.setParser(this); [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_csv.py | 1 # -*- coding: iso-8859-1 -*- 58 # Try deleting or changing attributes (they are read-only) 94 # Now try with dialect-derived options 96 delimiter='-' 106 self.assertEqual(obj.dialect.delimiter, '-') 131 finally: 144 finally: 173 self._write_test(['a',1,'p,q'], 'a,1,"p,q"') 174 self._write_error_test(csv.Error, ['a',1,'p,q'], 176 self._write_test(['a',1,'p,q'], 'a,1,"p,q"', [all …]
|