Home
last modified time | relevance | path

Searched +full:nice +full:- +full:try (Results 1 – 25 of 982) sorted by relevance

12345678910>>...40

/external/angle/build/android/gyp/
Dcompile_java.py4 # Use of this source code is governed by a BSD-style license that can be
37 # TODO(wnwen): Re-enable this upstream.
79 # Android platform default is always UTF-8.
90 # Nice to be explicit about operators, but not necessary.
96 # in the https://chromium-review.googlesource.com/c/chromium/src/+/871630.
100 # Nice to have static inner classes but not necessary.
118 # Nice to fix but low priority.
124 # Nice to have better primitives.
128 # Nice to have better type safety.
141 # Nice to have.
[all …]
/external/cronet/build/android/gyp/
Dcompile_java.py4 # Use of this source code is governed by a BSD-style license that can be
37 # TODO(wnwen): Re-enable this upstream.
79 # Android platform default is always UTF-8.
90 # Nice to be explicit about operators, but not necessary.
96 # in the https://chromium-review.googlesource.com/c/chromium/src/+/871630.
100 # Nice to have static inner classes but not necessary.
118 # Nice to fix but low priority.
124 # Nice to have better primitives.
128 # Nice to have better type safety.
141 # Nice to have.
[all …]
/external/easymock/src/org/easymock/internal/
DMocksControl.java2 * Copyright 2001-2009 OFFIS, Tammo Freese
8 * http://www.apache.org/licenses/LICENSE-2.0
33 NICE, DEFAULT, STRICT enumConstant
48 try { in createMock()
59 try { in createMock()
74 behavior = new MocksBehavior(type == MockType.NICE); in reset()
81 type = MockType.NICE; in resetToNice()
96 try { in replay()
106 try { in verify()
116 try { in checkOrder()
[all …]
/external/aws-sdk-java-v2/codegen/src/test/java/software/amazon/awssdk/codegen/poet/
DPoetMatchers.java45 try { in generatesTo()
48 …//Unfortunately for string comparisons Hamcrest doesn't really give us a nice diff. On the other h… in generatesTo()
49 … //IDEs know how to nicely display JUnit's ComparisonFailure - makes debugging tests much easier in generatesTo()
50 … ComparisonFailure(String.format("Output class does not match expected [test-file: %s]", expectedT… in generatesTo()
68 try {
71 …//Unfortunately for string comparisons Hamcrest doesn't really give us a nice diff. On the other h…
72 … //IDEs know how to nicely display JUnit's ComparisonFailure - makes debugging tests much easier
73 … ComparisonFailure(String.format("Output class does not match expected [test-file: %s]", expectedT…
86 try {
100 try {
/external/cronet/base/threading/
Dplatform_thread_internal_posix.cc2 // Use of this source code is governed by a BSD-style license that can be
30 // Try to find a priority that best describes |nice_value|. If there isn't in NiceValueToThreadPriorityForTest()
31 // an exact match, this method returns the closest priority whose nice value in NiceValueToThreadPriorityForTest()
50 // http://man7.org/linux/man-pages/man2/getpriority.2.html in GetCurrentThreadNiceValue()
54 DVPLOG(1) << "Failed to get nice value of thread (" in GetCurrentThreadNiceValue()
Dplatform_thread_cros.cc2 // Use of this source code is governed by a BSD-style license that can be
155 thread_dir = FilePath("/proc/thread-self/"); in SetThreadLatencySensitivity()
163 if (sched_getattr(thread_id, &attr, sizeof(attr), 0) == -1 || in SetThreadLatencySensitivity()
207 if (sched_setattr(thread_id, &attr, 0) == -1) { in SetThreadLatencySensitivity()
226 // Get the current nice value of the thread_id in GetNiceValueForThreadId()
229 if (nice_value == -1 && errno != 0) { in GetNiceValueForThreadId()
247 // For upstream uclamp interface. We try both legacy (schedtune, as done in SetThreadTypeOtherAttrs()
254 // Setting an RT task to CFS retains the task's nice value.
274 // Per manpage, must be 0. Otherwise could have passed nice value here. in SetThreadRTPrioFromType()
276 // sched_setscheduler() syscall is 0, the old nice value (which holds the in SetThreadRTPrioFromType()
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dgrpc_string.pyx.pxi7 # http://www.apache.org/licenses/LICENSE-2.0
27 # TODO(https://github.com/grpc/grpc/issues/13782): It would be nice for us if
30 # parameter rather than "object"), but would it be nice for our users? Right
47 try:
/external/angle/build/android/
Dfast_local_dev_server.py3 # Use of this source code is governed by a BSD-style license that can be
5 """Creates an server to offload non-critical-path GN targets."""
25 # Shrink the message (leaving a 2-char prefix and use the rest of the room
29 max_msg_width = width - len(prefix)
31 length_to_show = max_msg_width - 5 # Account for ellipsis and header.
32 msg = f'{msg[:2]}...{msg[-length_to_show:]}'
64 cls._num_processes -= 1
100 try:
124 # eventually finished. Try starting up tasks when the overall load is light.
131 try:
[all …]
/external/cronet/build/android/
Dfast_local_dev_server.py3 # Use of this source code is governed by a BSD-style license that can be
5 """Creates an server to offload non-critical-path GN targets."""
25 # Shrink the message (leaving a 2-char prefix and use the rest of the room
29 max_msg_width = width - len(prefix)
31 length_to_show = max_msg_width - 5 # Account for ellipsis and header.
32 msg = f'{msg[:2]}...{msg[-length_to_show:]}'
64 cls._num_processes -= 1
100 try:
124 # eventually finished. Try starting up tasks when the overall load is light.
131 try:
[all …]
/external/cronet/third_party/googletest/src/googlemock/test/
Dgmock-nice-strict_test.cc30 #include "gmock/gmock-nice-strict.h"
36 #include "gtest/gtest-spi.h"
168 raw_foo->DoThis(); in TEST()
197 // Tests that a nice mock generates no warning for uninteresting calls.
207 // Tests that a nice mock generates no warning for uninteresting calls
216 nice_foo->DoThis(); in TEST()
220 // Tests that a nice mock generates informational logs for
237 // Tests that a nice mock allows expected calls.
245 // Tests that an unexpected call on a nice mock which returns a
246 // not-default-constructible type throws an exception and the exception contains
[all …]
/external/pdfium/core/fxcrt/
Dfx_memory_pa.cpp2 // Use of this source code is governed by a BSD-style license that can be
52 return GetGeneralPartitionAllocator().root()->AllocWithFlags( in Alloc()
63 return GetGeneralPartitionAllocator().root()->AllocWithFlags( in Calloc()
75 return GetGeneralPartitionAllocator().root()->ReallocWithFlags( in Realloc()
84 // checking for |nullptr| adds a branch to |PartitionFree|, and it's nice to in Dealloc()
87 // So this check is hiding (what I consider to be) bugs, and we should try to in Dealloc()
90 GetGeneralPartitionAllocator().root()->Free(ptr); in Dealloc()
100 return GetStringPartitionAllocator().root()->AllocWithFlags( in StringAlloc()
109 // checking for |nullptr| adds a branch to |PartitionFree|, and it's nice to in StringDealloc()
112 // So this check is hiding (what I consider to be) bugs, and we should try to in StringDealloc()
[all …]
/external/cronet/third_party/boringssl/src/third_party/googletest/googlemock/test/
Dgmock-nice-strict_test.cc30 #include "gmock/gmock-nice-strict.h"
36 #include "gtest/gtest-spi.h"
171 raw_foo->DoThis(); in TEST()
200 // Tests that a nice mock generates no warning for uninteresting calls.
210 // Tests that a nice mock generates no warning for uninteresting calls
219 nice_foo->DoThis(); in TEST()
223 // Tests that a nice mock generates informational logs for
240 // Tests that a nice mock allows expected calls.
248 // Tests that an unexpected call on a nice mock which returns a
249 // not-default-constructible type throws an exception and the exception contains
[all …]
/external/googletest/googlemock/test/
Dgmock-nice-strict_test.cc30 #include "gmock/gmock-nice-strict.h"
36 #include "gtest/gtest-spi.h"
171 raw_foo->DoThis(); in TEST()
200 // Tests that a nice mock generates no warning for uninteresting calls.
210 // Tests that a nice mock generates no warning for uninteresting calls
219 nice_foo->DoThis(); in TEST()
223 // Tests that a nice mock generates informational logs for
240 // Tests that a nice mock allows expected calls.
248 // Tests that an unexpected call on a nice mock which returns a
249 // not-default-constructible type throws an exception and the exception contains
[all …]
/external/xz-java/src/org/tukaani/xz/
DLZMA2Options.java117 * Match finder: Hash Chain 2-3-4
122 * Match finder: Binary tree 2-3-4
147 try { in LZMA2Options()
186 * The presets 0-3 are fast presets with medium compression.
187 * The presets 4-6 are fairly slow presets with high compression.
190 * The presets 7-9 are like the preset 6 but use bigger dictionaries
231 * but sizes of 2^n and 2^n&nbsp;+&nbsp;2^(n-1) bytes are somewhat
309 * That is, literals are simply 8-bit bytes that are encoded one at
314 * For example, in typical English text, an upper-case letter is often
315 * followed by a lower-case letter, and a lower-case letter is usually
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_simple_parser_unittest.cpp2 // Use of this source code is governed by a BSD-style license that can be
24 STR_IN_OUT_CASE(" \t \0%try()%haha\n %another line \aa", ""), in TEST()
28 STR_IN_OUT_CASE("\t(nice day)!\n ", "(nice day)"), in TEST()
52 STR_IN_OUT_CASE("\n\r+3.5656 -11.0", "+3.5656"), in TEST()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DParameters.java10 * http://www.apache.org/licenses/LICENSE-2.0
26 * The hard-coded absolute minimal length of a back-reference.
33 * equal to <code>windowSize - 1</code>.
36 * tune a pre-configured builder created by a format specific
40 * @param windowSize the size of the sliding window - this
41 * determines the maximum offset a back-reference can take. Must
65 maxBackReferenceLength = windowSize - 1; in Builder()
66 maxOffset = windowSize - 1; in Builder()
71 * Sets the mininal length of a back-reference.
77 * rather tune a pre-configured builder created by a format
[all …]
/external/python/cpython2/Lib/plat-mac/
Daetypes.py1 """aetypes - Python objects representing various AE types."""
19 def nice(s): function
20 """'nice' representation of an object"""
41 self.enum = "%-4.4s" % str(enum)
105 """An AE 4-char typename object"""
108 self.type = "%-4.4s" % str(type)
128 """An AE 4-char keyword object"""
131 self.keyword = "%-4.4s" % str(keyword)
156 return "%s thru %s" % (nice(self.start), nice(self.stop))
169 self.relo = "%-4.4s" % str(relo)
[all …]
/external/python/cpython3/Lib/test/
Dtest_cmd.py83 Try and be nice to people, avoid eating fat, read a good book every
84 now and then, get some walking in, and try to live together in peace
170 try:
182 print("Try and be nice to people, avoid eating fat, read a "
184 "and try to live together in peace and harmony with "
261 if "-c" in sys.argv:
263 elif "-i" in sys.argv:
/external/llvm/utils/lit/lit/
Dutil.py12 # Encode to UTF-8 to get binary data.
13 return str.encode('utf-8')
21 try:
22 return to_string(bytes.decode('utf-8'))
38 return int(capture(['sysctl', '-n', 'hw.ncpu']))
49 """mkdir_p(path) - Make the "path" directory, if it does not exist; this
58 try:
67 """capture(command) - Run the given command (or argv list) in a shell and
75 """which(command, [paths]) - Look up the given command in the paths string
85 # Would be nice if Python had a lib function for this.
[all …]
/external/python/cpython3/Doc/library/
Datexit.rst1 :mod:`atexit` --- Exit handlers
10 --------------
27 When used with C-API subinterpreters, registered functions
46 be raised is re-raised.
69 .. _atexit-example:
72 ---------------------
79 try:
105 atexit.register(goodbye, 'Donny', 'nice')
107 atexit.register(goodbye, adjective='nice', name='Donny')
/external/python/cpython2/Doc/library/
Datexit.rst1 :mod:`atexit` --- Exit handlers
14 --------------
56 be raised is re-raised.
69 .. _atexit-example:
72 ---------------------
79 try:
101 atexit.register(goodbye, 'Donny', 'nice')
104 atexit.register(goodbye, adjective='nice', name='Donny')
/external/toybox/toys/other/
Dvmstat.c1 /* vmstat.c - Report virtual memory statistics.
14 usage: vmstat [-n] [DELAY [COUNT]]
25 -n Display the header only once
33 // From /proc/stat (jiffies) 0-10
34 user, nice, sys, idle, wait, irq, sirq, intr, ctxt, running, blocked, member
35 // From /proc/meminfo (units are kb) 11-16
37 // From /proc/vmstat (units are kb) 17-18
39 // From /proc/vmstat (units are pages) 19-20
78 vmsp->running--; // Don't include ourselves in get_vmstat_proc()
79 vmsp->user += vmsp->nice; in get_vmstat_proc()
[all …]
/external/libchrome/base/process/
Dinternal_linux.cc2 // Use of this source code is governed by a BSD-style license that can be
59 buffer->clear(); in ReadProcFile()
67 return !buffer->empty(); in ReadProcFile()
97 proc_stats->clear(); in ParseProcStats()
99 proc_stats->push_back(stats_data.substr(0, open_parens_idx)); in ParseProcStats()
101 proc_stats->push_back( in ParseProcStats()
103 close_parens_idx - (open_parens_idx + 1))); in ParseProcStats()
110 proc_stats->push_back(other_stats[i]); in ParseProcStats()
119 output->insert(key_value_pairs[i]); in ParseProcStat()
184 if (!StringToInt(btime_it->second, &btime)) in GetBootTime()
[all …]
/external/igt-gpu-tools/lib/
Digt_sysrq.c19 /* Try to be nice at first, and if that fails pull the trigger */ in igt_sysrq_reboot()
21 int fd = open("/proc/sysrq-trigger", O_WRONLY); in igt_sysrq_reboot()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExecutors.kt2 …* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen…
17 * This class is generally used as a bridge between coroutine-based API and
46 * ## Interaction with [delay] and time-based coroutines. in close()
48 …* If the given [ExecutorService] is an instance of [ScheduledExecutorService], then all time-relat… in close()
49 …* coroutine operations such as [delay], [withTimeout] and time-based [Flow] operators will be sche… in close()
58 * _track_ the delay and time-related executions, but the coroutine itself will still be executed in close()
68 @JvmName("from") // this is for a nice Java API, see issue #255 in close()
75 * ## Interaction with [delay] and time-based coroutines. in close()
77 * If the given [Executor] is an instance of [ScheduledExecutorService], then all time-related in close()
78 …* coroutine operations such as [delay], [withTimeout] and time-based [Flow] operators will be sche… in close()
[all …]

12345678910>>...40