/art/tools/checker/match/ |
D | test.py | 31 def createTestAssertion(self, checkerString): argument 36 def tryMatch(self, checkerString, c1String, varState={}): argument 37 return MatchLines(self.createTestAssertion(checkerString), 41 def assertMatches(self, checkerString, c1String, varState={}): argument 42 self.assertIsNotNone(self.tryMatch(checkerString, c1String, varState)) 44 def assertDoesNotMatch(self, checkerString, c1String, varState={}): argument 45 self.assertIsNone(self.tryMatch(checkerString, c1String, varState)) 47 def test_TextAndWhitespace(self): argument 48 self.assertMatches("foo", "foo") 49 self.assertMatches("foo", " foo ") [all …]
|
/art/tools/checker/file_format/checker/ |
D | test.py | 29 def tryParse(self, string): argument 33 def assertParses(self, string): argument 34 checkFile = self.tryParse(string) 35 self.assertEqual(len(checkFile.testCases), 1) 36 self.assertNotEqual(len(checkFile.testCases[0].assertions), 0) 38 def assertIgnored(self, string): argument 39 checkFile = self.tryParse(string) 40 self.assertEqual(len(checkFile.testCases), 1) 41 self.assertEqual(len(checkFile.testCases[0].assertions), 0) 43 def assertInvalid(self, string): argument [all …]
|
D | struct.py | 22 def __init__(self, fileName): argument 23 self.fileName = fileName 24 self.testCases = [] 26 def addTestCase(self, new_test_case): argument 27 self.testCases.append(new_test_case) 29 def testCasesForArch(self, targetArch): argument 30 return [t for t in self.testCases if t.testArch == targetArch] 32 def __eq__(self, other): argument 33 return isinstance(other, self.__class__) \ 34 and self.testCases == other.testCases [all …]
|
/art/tools/jfuzz/ |
D | run_jfuzz_test.py | 81 def description(self): argument 85 def id(self): argument 89 def output_file(self): argument 90 return self.id + '_out.txt' 93 def GetBisectionSearchArgs(self): argument 102 def CompileAndRunTest(self): argument 120 def __init__(self, use_dx): argument 126 self._jack_args = ['-cp', GetJackClassPath(), '--output-dex', '.', 128 self._use_dx = use_dx 130 def CompileOnHost(self): argument [all …]
|
D | run_dex_fuzz_test.py | 43 def __init__(self, num_tests, num_inputs, device): argument 51 self._num_tests = num_tests 52 self._num_inputs = num_inputs 53 self._device = device 54 self._save_dir = None 55 self._results_dir = None 56 self._dexfuzz_dir = None 57 self._inputs_dir = None 58 self._dexfuzz_env = None 60 def __enter__(self): argument [all …]
|
/art/test/971-iface-super/util-src/ |
D | generate_smali.py | 87 def __init__(self): argument 91 self.tests = set() 93 def get_expected(self): argument 97 all_tests = sorted(self.tests) 100 def add_test(self, ty): argument 104 self.tests.add(Func(ty)) 106 def get_name(self): argument 112 def __str__(self): argument 116 all_tests = sorted(self.tests) 122 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) [all …]
|
/art/test/968-default-partial-compile-gen/util-src/ |
D | generate_smali.py | 87 def __init__(self): argument 91 self.tests = set() 93 def get_expected(self): argument 97 all_tests = sorted(self.tests) 100 def add_test(self, ty): argument 104 self.tests.add(Func(ty)) 106 def get_name(self): argument 112 def __str__(self): argument 116 all_tests = sorted(self.tests) 122 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) [all …]
|
/art/tools/bisection_search/ |
D | bisection_test.py | 52 def setUp(self): argument 53 self.testable_mock = Mock(spec=Dex2OatWrapperTestable) 54 self.testable_mock.GetAllMethods.return_value = self._METHODS 55 self.testable_mock.GetAllPassesForMethod.return_value = self._PASSES 57 def MethodFailsForAllPasses(self, compiled_methods, run_passes=None): argument 58 return self._FAILING_METHOD not in compiled_methods 60 def MethodFailsForAPass(self, compiled_methods, run_passes=None): argument 61 return (self._FAILING_METHOD not in compiled_methods or 62 (run_passes is not None and self._FAILING_PASS not in run_passes)) 64 def testNeverFails(self): argument [all …]
|
/art/tools/checker/file_format/c1visualizer/ |
D | struct.py | 20 def __init__(self, fileName): argument 21 self.fileName = fileName 22 self.passes = [] 24 def addPass(self, new_pass): argument 25 self.passes.append(new_pass) 27 def findPass(self, name): argument 28 for entry in self.passes: 33 def __eq__(self, other): argument 34 return isinstance(other, self.__class__) \ 35 and self.passes == other.passes [all …]
|
/art/test/964-default-iface-init-gen/util-src/ |
D | generate_java.py | 66 def __init__(self): argument 70 self.tests = set() 72 def add_test(self, ty): argument 76 self.tests.add(Func(ty)) 78 def get_expected(self): argument 82 all_tests = sorted(self.tests) 85 def get_name(self): argument 91 def __str__(self): argument 95 all_tests = sorted(self.tests) 101 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) [all …]
|
/art/test/970-iface-super-resolution-gen/util-src/ |
D | generate_smali.py | 86 def __init__(self): argument 90 self.tests = set() 92 def add_test(self, ty): argument 96 self.tests.add(Func(ty)) 98 def get_expected(self): argument 102 all_tests = sorted(self.tests) 105 def initial_build_different(self): argument 108 def get_name(self): argument 114 def __str__(self): argument 118 all_tests = sorted(self.tests) [all …]
|
/art/tools/common/ |
D | common.py | 67 def symbol(self): argument 68 return self.name[0] 77 def __ge__(self, other): argument 78 if self.__class__ is other.__class__: 79 return self.value >= other.value 82 def __gt__(self, other): argument 83 if self.__class__ is other.__class__: 84 return self.value > other.value 87 def __le__(self, other): argument 88 if self.__class__ is other.__class__: [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_throw_entrypoints.cc | 26 extern "C" NO_RETURN void artDeliverPendingExceptionFromCode(Thread* self) in artDeliverPendingExceptionFromCode() argument 28 ScopedQuickEntrypointChecks sqec(self); in artDeliverPendingExceptionFromCode() 29 self->QuickDeliverException(); in artDeliverPendingExceptionFromCode() 32 extern "C" NO_RETURN uint64_t artInvokeObsoleteMethod(ArtMethod* method, Thread* self) in artInvokeObsoleteMethod() argument 35 ScopedQuickEntrypointChecks sqec(self); in artInvokeObsoleteMethod() 38 self->QuickDeliverException(); in artInvokeObsoleteMethod() 42 extern "C" NO_RETURN void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread* self) in artDeliverExceptionFromCode() argument 51 ScopedQuickEntrypointChecks sqec(self); in artDeliverExceptionFromCode() 53 self->ThrowNewException("Ljava/lang/NullPointerException;", "throw with null exception"); in artDeliverExceptionFromCode() 55 self->SetException(exception); in artDeliverExceptionFromCode() [all …]
|
D | quick_jni_entrypoints.cc | 31 static inline void GoToRunnableFast(Thread* self) NO_THREAD_SAFETY_ANALYSIS; 34 Thread* self ATTRIBUTE_UNUSED) { in ReadBarrierJni() 50 extern uint32_t JniMethodFastStart(Thread* self) { in JniMethodFastStart() argument 51 JNIEnvExt* env = self->GetJniEnv(); in JniMethodFastStart() 57 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in JniMethodFastStart() 65 extern uint32_t JniMethodStart(Thread* self) { in JniMethodStart() argument 66 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart() 70 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in JniMethodStart() 73 self->TransitionFromRunnableToSuspended(kNative); in JniMethodStart() 78 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { in JniMethodStartSynchronized() argument [all …]
|
/art/runtime/ |
D | thread_pool_test.cc | 32 void Run(Thread* self) { in Run() argument 34 LOG(INFO) << "Running: " << *self; in Run() 63 Thread* self = Thread::Current(); in TEST_F() local 68 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F() 70 thread_pool.StartWorkers(self); in TEST_F() 72 thread_pool.Wait(self, true, false); in TEST_F() 78 Thread* self = Thread::Current(); in TEST_F() local 83 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F() 89 thread_pool.StartWorkers(self); in TEST_F() 91 thread_pool.StopWorkers(self); in TEST_F() [all …]
|
D | thread_list.cc | 87 Thread* self = Thread::Current(); in ~ThreadList() local 89 MutexLock mu(self, *Locks::thread_list_lock_); in ~ThreadList() 90 contains = Contains(self); in ~ThreadList() 167 Thread* self = Thread::Current(); in DumpUnattachedThreads() local 175 MutexLock mu(self, *Locks::thread_list_lock_); in DumpUnattachedThreads() 202 Thread* self = Thread::Current(); in Run() local 203 CHECK(self != nullptr); in Run() 206 ScopedObjectAccess soa(self); in Run() 212 MutexLock mu(self, *Locks::logging_lock_); in Run() 215 barrier_.Pass(self); in Run() [all …]
|
D | monitor_test.cc | 61 static void FillHeap(Thread* self, ClassLinker* class_linker, in FillHeap() argument 67 hsp->reset(new StackHandleScope<kMaxHandles>(self)); in FillHeap() 69 Handle<mirror::Class> c((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap() 72 Handle<mirror::Class> ca((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap() 79 mirror::ObjectArray<mirror::Object>::Alloc(self, ca.Get(), length / 4))); in FillHeap() 80 if (self->IsExceptionPending() || h == nullptr) { in FillHeap() 81 self->ClearException(); in FillHeap() 96 while (!self->IsExceptionPending()) { in FillHeap() 97 MutableHandle<mirror::Object> h = (*hsp)->NewHandle<mirror::Object>(c->AllocObject(self)); in FillHeap() 98 if (!self->IsExceptionPending() && h != nullptr) { in FillHeap() [all …]
|
D | barrier.cc | 32 void Barrier::Pass(Thread* self) { in Pass() argument 33 MutexLock mu(self, lock_); in Pass() 34 SetCountLocked(self, count_ - 1); in Pass() 37 void Barrier::Wait(Thread* self) { in Wait() argument 38 Increment(self, -1); in Wait() 41 void Barrier::Init(Thread* self, int count) { in Init() argument 42 MutexLock mu(self, lock_); in Init() 43 SetCountLocked(self, count); in Init() 46 void Barrier::Increment(Thread* self, int delta) { in Increment() argument 47 MutexLock mu(self, lock_); in Increment() [all …]
|
/art/test/961-default-iface-resolution-gen/util-src/ |
D | generate_java.py | 69 def __init__(self): argument 73 self.tests = set() 75 def get_expected(self): argument 79 all_tests = sorted(self.tests) 82 def add_test(self, ty): argument 86 self.tests.add(Func(ty)) 88 def get_name(self): argument 94 def __str__(self): argument 98 all_tests = sorted(self.tests) 104 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) [all …]
|
/art/test/utils/python/testgen/ |
D | mixins.py | 31 def get_name(self): argument 43 def get_file_name(self): argument 48 def get_file_extension(self): argument 64 def get_file_name(self): argument 65 return self.get_name() + ext 67 def get_file_extension(self): argument 94 def __lt__(self, other): argument 95 return self.get_name() < other.get_name() 97 def __gt__(self, other): argument 98 return self.get_name() > other.get_name() [all …]
|
/art/runtime/base/ |
D | mutex-inl.h | 47 static inline uint64_t SafeGetTid(const Thread* self) { in SafeGetTid() argument 48 if (self != nullptr) { in SafeGetTid() 49 return static_cast<uint64_t>(self->GetTid()); in SafeGetTid() 83 inline void BaseMutex::RegisterAsLocked(Thread* self) { in RegisterAsLocked() argument 84 if (UNLIKELY(self == nullptr)) { in RegisterAsLocked() 93 BaseMutex* held_mutex = self->GetHeldMutex(lock_level_i); in RegisterAsLocked() 112 self->SetHeldMutex(level_, this); in RegisterAsLocked() 116 inline void BaseMutex::RegisterAsUnlocked(Thread* self) { in RegisterAsUnlocked() argument 117 if (UNLIKELY(self == nullptr)) { in RegisterAsUnlocked() 123 CHECK(self->GetHeldMutex(level_) == this) << "Unlocking on unacquired mutex: " << name_; in RegisterAsUnlocked() [all …]
|
/art/test/utils/python/ |
D | generate_java_main.py | 64 def __init__(self): argument 68 self.tests = set() 69 self.global_funcs = set() 71 def add_instance(self, it): argument 75 self.tests.add(it) 77 def add_func(self, f): argument 81 self.global_funcs.add(f) 83 def get_name(self): argument 89 def __str__(self): argument 93 all_tests = sorted(self.tests) [all …]
|
/art/runtime/gc/ |
D | reference_processor.cc | 53 void ReferenceProcessor::DisableSlowPath(Thread* self) { in DisableSlowPath() argument 55 condition_.Broadcast(self); in DisableSlowPath() 58 void ReferenceProcessor::BroadcastForSlowPath(Thread* self) { in BroadcastForSlowPath() argument 59 MutexLock mu(self, *Locks::reference_processor_lock_); in BroadcastForSlowPath() 60 condition_.Broadcast(self); in BroadcastForSlowPath() 63 ObjPtr<mirror::Object> ReferenceProcessor::GetReferent(Thread* self, in GetReferent() argument 65 if (!kUseReadBarrier || self->GetWeakRefAccessEnabled()) { in GetReferent() 76 MutexLock mu(self, *Locks::reference_processor_lock_); in GetReferent() 78 (kUseReadBarrier && !self->GetWeakRefAccessEnabled())) { in GetReferent() 108 self->CheckEmptyCheckpointFromWeakRefAccess(Locks::reference_processor_lock_); in GetReferent() [all …]
|
/art/tools/ |
D | stream-trace-converter.py | 71 def PrintHeader(self, header): argument 78 def ProcessDataHeader(self, input, body): argument 103 self._mRecordSize = 9; 105 self._mRecordSize = 10; 107 self._mRecordSize = ReadShortLE(input) 108 WriteShortLE(body, self._mRecordSize) 114 def ProcessMethod(self, input): argument 117 self._methods.append(str) 120 def ProcessThread(self, input): argument 124 self._threads.append('%d\t%s\n' % (tid, str)) [all …]
|
/art/runtime/interpreter/ |
D | unstarted_runtime_test.cc | 50 static void Unstarted ## Name(Thread* self, \ 55 interpreter::UnstartedRuntime::Unstarted ## Name(self, shadow_frame, result, arg_offset); \ 65 static void UnstartedJNI ## Name(Thread* self, \ 71 interpreter::UnstartedRuntime::UnstartedJNI ## Name(self, method, receiver, args, result); \ 85 Thread* self, in UNSTARTED_RUNTIME_JNI_LIST() 91 runtime->GetClassLinker()->FindArrayClass(self, &component_type); in UNSTARTED_RUNTIME_JNI_LIST() 94 mirror::ObjectArray<mirror::Object>::Alloc(self, array_type, 3); in UNSTARTED_RUNTIME_JNI_LIST() 98 CHECK(!self->IsExceptionPending()); in UNSTARTED_RUNTIME_JNI_LIST() 113 void RunArrayCopy(Thread* self, in RunArrayCopy() argument 128 UnstartedSystemArraycopy(self, tmp, &result, 0); in RunArrayCopy() [all …]
|