/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 | 82 def description(self): argument 86 def id(self): argument 90 def output_file(self): argument 91 return self.id + '_out.txt' 94 def GetBisectionSearchArgs(self): argument 103 def CompileAndRunTest(self): argument 121 def __init__(self, dexer, debug_info): argument 128 self._dexer = dexer 129 self._debug_info = debug_info 130 self._jack_args = ['-cp', GetJackClassPath(), '--output-dex', '.', [all …]
|
D | run_dex_fuzz_test.py | 44 def __init__(self, num_tests, num_inputs, device, dexer, debug_info): argument 54 self._num_tests = num_tests 55 self._num_inputs = num_inputs 56 self._device = device 57 self._save_dir = None 58 self._results_dir = None 59 self._dexfuzz_dir = None 60 self._inputs_dir = None 61 self._dexfuzz_env = None 62 self._dexer = dexer [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 | 27 extern "C" NO_RETURN void artDeliverPendingExceptionFromCode(Thread* self) in artDeliverPendingExceptionFromCode() argument 29 ScopedQuickEntrypointChecks sqec(self); in artDeliverPendingExceptionFromCode() 30 self->QuickDeliverException(); in artDeliverPendingExceptionFromCode() 33 extern "C" NO_RETURN uint64_t artInvokeObsoleteMethod(ArtMethod* method, Thread* self) in artInvokeObsoleteMethod() argument 36 ScopedQuickEntrypointChecks sqec(self); in artInvokeObsoleteMethod() 39 self->QuickDeliverException(); in artInvokeObsoleteMethod() 43 extern "C" NO_RETURN void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread* self) in artDeliverExceptionFromCode() argument 52 ScopedQuickEntrypointChecks sqec(self); in artDeliverExceptionFromCode() 54 self->ThrowNewException("Ljava/lang/NullPointerException;", "throw with null exception"); in artDeliverExceptionFromCode() 56 self->SetException(exception); in artDeliverExceptionFromCode() [all …]
|
D | quick_jni_entrypoints.cc | 32 static inline void GoToRunnableFast(Thread* self) REQUIRES_SHARED(Locks::mutator_lock_); 35 Thread* self ATTRIBUTE_UNUSED) { in ReadBarrierJni() 51 extern uint32_t JniMethodFastStart(Thread* self) { in JniMethodFastStart() argument 52 JNIEnvExt* env = self->GetJniEnv(); in JniMethodFastStart() 58 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in JniMethodFastStart() 66 extern uint32_t JniMethodStart(Thread* self) { in JniMethodStart() argument 67 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart() 71 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in JniMethodStart() 77 self->TransitionFromRunnableToSuspended(kNative); in JniMethodStart() 82 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { in JniMethodStartSynchronized() argument [all …]
|
/art/runtime/base/ |
D | mutex-inl.h | 51 static inline pid_t SafeGetTid(const Thread* self) { in SafeGetTid() argument 52 if (self != nullptr) { in SafeGetTid() 53 return self->GetTid(); in SafeGetTid() 89 inline void BaseMutex::RegisterAsLocked(Thread* self) { in RegisterAsLocked() argument 90 if (UNLIKELY(self == nullptr)) { in RegisterAsLocked() 102 Locks::mutator_lock_->IsSharedHeld(self) && in RegisterAsLocked() 103 !Locks::mutator_lock_->IsExclusiveHeld(self)) { in RegisterAsLocked() 110 } else if (this == Locks::mutator_lock_ && self->GetHeldMutex(kTopLockLevel) != nullptr) { in RegisterAsLocked() 112 << "kTopLevelLock (" << self->GetHeldMutex(kTopLockLevel)->name_ << "held is " in RegisterAsLocked() 118 BaseMutex* held_mutex = self->GetHeldMutex(lock_level_i); in RegisterAsLocked() [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 | 96 Thread* self = Thread::Current(); in ShutDown() local 98 MutexLock mu(self, *Locks::thread_list_lock_); in ShutDown() 99 contains = Contains(self); in ShutDown() 178 Thread* self = Thread::Current(); in DumpUnattachedThreads() local 186 MutexLock mu(self, *Locks::thread_list_lock_); in DumpUnattachedThreads() 217 Thread* self = Thread::Current(); in Run() local 218 CHECK(self != nullptr); in Run() 221 ScopedObjectAccess soa(self); in Run() 226 MutexLock mu(self, *Locks::logging_lock_); in Run() 229 barrier_.Pass(self); in Run() [all …]
|
D | monitor_test.cc | 65 void Run(Thread* self) { in Run() argument 67 ScopedObjectAccess soa(self); in Run() 69 monitor_test_->thread_ = self; // Pass the Thread. in Run() 70 monitor_test_->object_.Get()->MonitorEnter(self); // Lock the object. This should transition in Run() 76 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run() 88 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run() 94 monitor_test_->barrier_->Wait(self); // Let the other thread know we're done. in Run() 97 ScopedObjectAccess soa(self); in Run() 103 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run() 107 EXPECT_EQ(expected_, self->IsExceptionPending()); in Run() [all …]
|
D | barrier.cc | 34 template void Barrier::Increment<Barrier::kAllowHoldingLocks>(Thread* self, int delta); 35 template void Barrier::Increment<Barrier::kDisallowHoldingLocks>(Thread* self, int delta); 37 void Barrier::Pass(Thread* self) { in Pass() argument 38 MutexLock mu(self, lock_); in Pass() 39 SetCountLocked(self, count_ - 1); in Pass() 42 void Barrier::Wait(Thread* self) { in Wait() argument 43 Increment(self, -1); in Wait() 46 void Barrier::Init(Thread* self, int count) { in Init() argument 47 MutexLock mu(self, lock_); in Init() 48 SetCountLocked(self, count); in Init() [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/openjdkjvmti/ |
D | deopt_manager.cc | 110 art::Thread* self = art::Thread::Current(); in FinishSetup() local 111 art::MutexLock mu(self, deoptimization_status_lock_); in FinishSetup() 163 art::Thread* self = art::Thread::Current(); in RemoveDeoptimizeAllMethods() local 164 art::ScopedThreadSuspension sts(self, art::kSuspended); in RemoveDeoptimizeAllMethods() 165 deoptimization_status_lock_.ExclusiveLock(self); in RemoveDeoptimizeAllMethods() 166 RemoveDeoptimizeAllMethodsLocked(self); in RemoveDeoptimizeAllMethods() 170 art::Thread* self = art::Thread::Current(); in AddDeoptimizeAllMethods() local 171 art::ScopedThreadSuspension sts(self, art::kSuspended); in AddDeoptimizeAllMethods() 172 deoptimization_status_lock_.ExclusiveLock(self); in AddDeoptimizeAllMethods() 173 AddDeoptimizeAllMethodsLocked(self); in AddDeoptimizeAllMethods() [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 | 54 void ReferenceProcessor::DisableSlowPath(Thread* self) { in DisableSlowPath() argument 56 condition_.Broadcast(self); in DisableSlowPath() 59 void ReferenceProcessor::BroadcastForSlowPath(Thread* self) { in BroadcastForSlowPath() argument 60 MutexLock mu(self, *Locks::reference_processor_lock_); in BroadcastForSlowPath() 61 condition_.Broadcast(self); in BroadcastForSlowPath() 64 ObjPtr<mirror::Object> ReferenceProcessor::GetReferent(Thread* self, in GetReferent() argument 66 if (!kUseReadBarrier || self->GetWeakRefAccessEnabled()) { in GetReferent() 77 MutexLock mu(self, *Locks::reference_processor_lock_); in GetReferent() 79 (kUseReadBarrier && !self->GetWeakRefAccessEnabled())) { in GetReferent() 109 self->CheckEmptyCheckpointFromWeakRefAccess(Locks::reference_processor_lock_); in GetReferent() [all …]
|
/art/test/712-varhandle-invocations/util-src/ |
D | generate_java.py | 31 def __init__(self, name, examples, supports_bitwise=False, supports_numeric=False): argument 32 self.name=name 33 self.examples=examples 34 self.supports_bitwise=supports_bitwise 35 self.supports_numeric=supports_numeric 37 def is_value_type(self): argument 40 def __repr__(self): argument 41 return self.name 43 def __str__(self): argument 44 return self.name [all …]
|