Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/art/tools/checker/match/
Dtest.py31 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/
Dtest.py29 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 …]
Dstruct.py22 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/build/apex/
Dart_apex_test.py61 def __init__(self, name, is_dir, is_exec, is_symlink, size): argument
62 self.name = name
63 self.is_dir = is_dir
64 self.is_exec = is_exec
65 self.is_symlink = is_symlink
66 self.size = size
68 def __str__(self): argument
70 % (self.name, self.is_dir, self.is_exec, self.is_symlink, self.size)
74 def __init__(self, apex, tmpdir, debugfs): argument
75 self._tmpdir = tmpdir
[all …]
/art/tools/jfuzz/
Drun_jfuzz_test.py81 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, dexer, debug_info): argument
127 self._dexer = dexer
128 self._debug_info = debug_info
130 def CompileOnHost(self): argument
[all …]
Drun_dex_fuzz_test.py43 def __init__(self, num_tests, num_inputs, device, dexer, debug_info): argument
53 self._num_tests = num_tests
54 self._num_inputs = num_inputs
55 self._device = device
56 self._save_dir = None
57 self._results_dir = None
58 self._dexfuzz_dir = None
59 self._inputs_dir = None
60 self._dexfuzz_env = None
61 self._dexer = dexer
[all …]
/art/test/971-iface-super/util-src/
Dgenerate_smali.py87 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/
Dgenerate_smali.py87 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/
Dbisection_test.py52 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/
Dstruct.py20 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/
Dgenerate_java.py66 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/
Dgenerate_smali.py86 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/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc32 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 …]
Dquick_throw_entrypoints.cc30 extern "C" NO_RETURN void artDeliverPendingExceptionFromCode(Thread* self) in artDeliverPendingExceptionFromCode() argument
32 ScopedQuickEntrypointChecks sqec(self); in artDeliverPendingExceptionFromCode()
33 self->QuickDeliverException(); in artDeliverPendingExceptionFromCode()
36 extern "C" NO_RETURN uint64_t artInvokeObsoleteMethod(ArtMethod* method, Thread* self) in artInvokeObsoleteMethod() argument
39 ScopedQuickEntrypointChecks sqec(self); in artInvokeObsoleteMethod()
42 self->QuickDeliverException(); in artInvokeObsoleteMethod()
46 extern "C" NO_RETURN void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread* self) in artDeliverExceptionFromCode() argument
55 ScopedQuickEntrypointChecks sqec(self); in artDeliverExceptionFromCode()
57 self->ThrowNewException("Ljava/lang/NullPointerException;", nullptr); in artDeliverExceptionFromCode()
59 self->SetException(exception); in artDeliverExceptionFromCode()
[all …]
/art/tools/common/
Dcommon.py67 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/base/
Dmutex-inl.h51 static inline pid_t SafeGetTid(const Thread* self) { in SafeGetTid() argument
52 if (self != nullptr) { in SafeGetTid()
53 return self->GetTid(); in SafeGetTid()
91 inline void BaseMutex::RegisterAsLocked(Thread* self) { in RegisterAsLocked() argument
92 if (UNLIKELY(self == nullptr)) { in RegisterAsLocked()
102 if (UNLIKELY(level == kThreadWaitLock) && self->GetHeldMutex(kThreadWaitLock) != nullptr) { in RegisterAsLocked()
113 Locks::mutator_lock_->IsSharedHeld(self) && in RegisterAsLocked()
114 !Locks::mutator_lock_->IsExclusiveHeld(self)) { in RegisterAsLocked()
121 } else if (this == Locks::mutator_lock_ && self->GetHeldMutex(kTopLockLevel) != nullptr) { in RegisterAsLocked()
123 << "kTopLevelLock (" << self->GetHeldMutex(kTopLockLevel)->name_ << "held is " in RegisterAsLocked()
[all …]
Dmutex.h108 void RegisterAsLocked(Thread* self);
110 void RegisterAsUnlocked(Thread* self);
111 void CheckSafeToWait(Thread* self);
180 void ExclusiveLock(Thread* self) ACQUIRE();
181 void Lock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in Lock() argument
184 bool ExclusiveTryLock(Thread* self) TRY_ACQUIRE(true);
185 bool TryLock(Thread* self) TRY_ACQUIRE(true) { return ExclusiveTryLock(self); } in TryLock() argument
187 bool ExclusiveTryLockWithSpinning(Thread* self) TRY_ACQUIRE(true);
190 void ExclusiveUnlock(Thread* self) RELEASE();
191 void Unlock(Thread* self) RELEASE() { ExclusiveUnlock(self); } in Unlock() argument
[all …]
/art/test/961-default-iface-resolution-gen/util-src/
Dgenerate_java.py69 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/
Dmixins.py31 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/
Dthread_pool_test.cc32 void Run(Thread* self) override { 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 …]
Dbarrier.cc35 template void Barrier::Increment<Barrier::kAllowHoldingLocks>(Thread* self, int delta);
36 template void Barrier::Increment<Barrier::kDisallowHoldingLocks>(Thread* self, int delta);
38 void Barrier::Pass(Thread* self) { in Pass() argument
39 MutexLock mu(self, *GetLock()); in Pass()
40 SetCountLocked(self, count_ - 1); in Pass()
43 void Barrier::Wait(Thread* self) { in Wait() argument
44 Increment(self, -1); in Wait()
47 void Barrier::Init(Thread* self, int count) { in Init() argument
48 MutexLock mu(self, *GetLock()); in Init()
49 SetCountLocked(self, count); in Init()
[all …]
Dmonitor_test.cc66 void Run(Thread* self) override { in Run() argument
68 ScopedObjectAccess soa(self); in Run()
70 monitor_test_->thread_ = self; // Pass the Thread. in Run()
71 monitor_test_->object_.Get()->MonitorEnter(self); // Lock the object. This should transition in Run()
77 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run()
89 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run()
95 monitor_test_->barrier_->Wait(self); // Let the other thread know we're done. in Run()
98 ScopedObjectAccess soa(self); in Run()
104 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run()
108 EXPECT_EQ(expected_, self->IsExceptionPending()); in Run()
[all …]
Dthread_list.cc95 Thread* self = Thread::Current(); in ShutDown() local
97 MutexLock mu(self, *Locks::thread_list_lock_); in ShutDown()
98 contains = Contains(self); in ShutDown()
176 Thread* self = Thread::Current(); in DumpUnattachedThreads() local
184 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 …]
/art/test/utils/python/
Dgenerate_java_main.py64 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/openjdkjvmti/
Dalloc_manager.cc54 void AllocationManager::PauseForAllocation(art::Thread* self, T msg) { in PauseForAllocation() argument
62 if (LIKELY(pausing_thread == nullptr || pausing_thread == self)) { in PauseForAllocation()
68 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in PauseForAllocation()
69 art::MutexLock mu(self, alloc_listener_mutex_); in PauseForAllocation()
71 CHECK_NE(pausing_thread, self) << "We should always be setting pausing_thread = self!" in PauseForAllocation()
72 << " How did this happen? " << *self; in PauseForAllocation()
74 VLOG(plugin) << "Suspending " << *self << " due to " << cause << ". Allocation pause " in PauseForAllocation()
76 alloc_pause_cv_.Wait(self); in PauseForAllocation()
86 void JvmtiAllocationListener::ObjectAllocated(art::Thread* self, in ObjectAllocated() argument
91 cb->ObjectAllocated(self, obj, cnt); in ObjectAllocated()
[all …]

12345678910>>...16