Searched refs:self (Results 1 - 25 of 432) sorted by relevance

1234567891011>>

/art/tools/checker/file_format/checker/
H A Dtest.py29 def tryParse(self, string):
33 def assertParses(self, string):
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):
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, strin
[all...]
H A Dstruct.py22 def __init__(self, fileName):
23 self.fileName = fileName
24 self.testCases = []
26 def addTestCase(self, new_test_case):
27 self.testCases.append(new_test_case)
29 def testCasesForArch(self, targetArch):
30 return [t for t in self.testCases if t.testArch == targetArch]
32 def __eq__(self, other):
33 return isinstance(other, self.__class__) \
34 and self
[all...]
/art/tools/checker/file_format/c1visualizer/
H A Dstruct.py20 def __init__(self, fileName):
21 self.fileName = fileName
22 self.passes = []
24 def addPass(self, new_pass):
25 self.passes.append(new_pass)
27 def findPass(self, name):
28 for entry in self.passes:
33 def __eq__(self, other):
34 return isinstance(other, self.__class__) \
35 and self
[all...]
H A Dtest.py26 def createFile(self, passList):
38 def assertParsesTo(self, c1Text, expectedData):
39 expectedFile = self.createFile(expectedData)
41 return self.assertEqual(expectedFile, actualFile)
43 def test_EmptyFile(self):
44 self.assertParsesTo("", [])
46 def test_SingleGroup(self):
47 self.assertParsesTo(
60 def test_MultipleGroups(self):
61 self
[all...]
/art/runtime/entrypoints/quick/
H A Dquick_thread_entrypoints.cc22 extern "C" void artTestSuspendFromCode(Thread* self) REQUIRES_SHARED(Locks::mutator_lock_) {
24 ScopedQuickEntrypointChecks sqec(self);
25 self->CheckSuspend();
H A Dquick_throw_entrypoints.cc27 extern "C" NO_RETURN void artDeliverPendingExceptionFromCode(Thread* self)
29 ScopedQuickEntrypointChecks sqec(self);
30 self->QuickDeliverException();
33 extern "C" NO_RETURN uint64_t artInvokeObsoleteMethod(ArtMethod* method, Thread* self)
36 ScopedQuickEntrypointChecks sqec(self);
39 self->QuickDeliverException();
43 extern "C" NO_RETURN void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread* self)
52 ScopedQuickEntrypointChecks sqec(self);
54 self->ThrowNewException("Ljava/lang/NullPointerException;", "throw with null exception");
56 self
[all...]
H A Dquick_lock_entrypoints.cc23 extern "C" int artLockObjectFromCode(mirror::Object* obj, Thread* self)
27 ScopedQuickEntrypointChecks sqec(self);
32 obj = obj->MonitorEnter(self); // May block
33 DCHECK(self->HoldsLock(obj));
35 if (UNLIKELY(self->IsExceptionPending())) {
41 bool unlocked = obj->MonitorExit(self);
45 DCHECK(self->HoldsLock(obj));
51 extern "C" int artUnlockObjectFromCode(mirror::Object* obj, Thread* self)
55 ScopedQuickEntrypointChecks sqec(self);
61 return obj->MonitorExit(self)
[all...]
/art/tools/checker/match/
H A Dtest.py31 def createTestAssertion(self, checkerString):
36 def tryMatch(self, checkerString, c1String, varState={}):
37 return MatchLines(self.createTestAssertion(checkerString),
41 def assertMatches(self, checkerString, c1String, varState={}):
42 self.assertIsNotNone(self.tryMatch(checkerString, c1String, varState))
44 def assertDoesNotMatch(self, checkerString, c1String, varState={}):
45 self.assertIsNone(self.tryMatch(checkerString, c1String, varState))
47 def test_TextAndWhitespace(self)
[all...]
/art/tools/checker/common/
H A Dmixins.py18 def __eq__(self, other):
19 return isinstance(other, self.__class__) \
20 and self.__dict__ == other.__dict__
25 def __repr__(self):
26 return "<%s: %s>" % (type(self).__name__, str(self.__dict__))
H A Dimmutables.py16 def __setitem__(self, key, value):
19 def __delitem__(self, key):
22 def copyWith(self, key, value):
23 newDict = ImmutableDict(self)
/art/tools/bisection_search/
H A Dbisection_test.py52 def setUp(self):
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):
58 return self._FAILING_METHOD not in compiled_methods
60 def MethodFailsForAPass(self, compiled_methods, run_passes=None):
61 return (self
[all...]
/art/tools/jfuzz/
H A Drun_dex_fuzz_test.py44 def __init__(self, num_tests, num_inputs, device, dexer, debug_info):
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
[all...]
H A Drun_jfuzz_test.py82 def description(self):
86 def id(self):
90 def output_file(self):
91 return self.id + '_out.txt'
94 def GetBisectionSearchArgs(self):
103 def CompileAndRunTest(self):
108 generated output to the file self.output_file in the temporary directory.
121 def __init__(self, dexer, debug_info):
128 self._dexer = dexer
129 self
[all...]
/art/test/968-default-partial-compile-gen/util-src/
H A Dgenerate_smali.py87 def __init__(self):
91 self.tests = set()
93 def get_expected(self):
97 all_tests = sorted(self.tests)
100 def add_test(self, ty):
104 self.tests.add(Func(ty))
106 def get_name(self):
112 def __str__(self):
116 all_tests = sorted(self.tests)
122 test_invoke += self
[all...]
/art/runtime/interpreter/mterp/
H A Dmterp_stub.cc32 void InitMterpTls(Thread* self) { argument
33 self->SetMterpDefaultIBase(nullptr);
34 self->SetMterpCurrentIBase(nullptr);
35 self->SetMterpAltIBase(nullptr);
41 extern "C" bool ExecuteMterpImpl(Thread* self,
46 UNUSED(self); UNUSED(shadow_frame); UNUSED(code_item); UNUSED(result_register);
/art/test/utils/python/testgen/
H A Dmixins.py31 def get_name(self):
43 def get_file_name(self):
48 def get_file_extension(self):
55 Gets a mixin that defines get_file_name(self) in terms of get_name(self) with the
61 A mixin defining get_file_name(self) in terms of get_name(self)
64 def get_file_name(self):
65 return self.get_name() + ext
67 def get_file_extension(self)
[all...]
/art/test/970-iface-super-resolution-gen/util-src/
H A Dgenerate_smali.py86 def __init__(self):
90 self.tests = set()
92 def add_test(self, ty):
96 self.tests.add(Func(ty))
98 def get_expected(self):
102 all_tests = sorted(self.tests)
105 def initial_build_different(self):
108 def get_name(self):
114 def __str__(self):
118 all_tests = sorted(self
[all...]
/art/runtime/
H A Dbarrier.cc34 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) { argument
38 MutexLock mu(self, lock_);
39 SetCountLocked(self, count_ - 1);
42 void Barrier::Wait(Thread* self) { argument
43 Increment(self, -1);
46 void Barrier::Init(Thread* self, int count) { argument
47 MutexLock mu(self, lock_);
48 SetCountLocked(self, coun
52 Increment(Thread* self, int delta) argument
72 Increment(Thread* self, int delta, uint32_t timeout_ms) argument
93 GetCount(Thread* self) argument
98 SetCountLocked(Thread* self, int count) argument
[all...]
H A Dthread_pool_test.cc32 void Run(Thread* self) { argument
34 LOG(INFO) << "Running: " << *self;
63 Thread* self = Thread::Current(); local
68 thread_pool.AddTask(self, new CountTask(&count));
70 thread_pool.StartWorkers(self);
72 thread_pool.Wait(self, true, false);
78 Thread* self = Thread::Current(); local
83 thread_pool.AddTask(self, new CountTask(&count));
89 thread_pool.StartWorkers(self);
91 thread_pool.StopWorkers(self);
103 Thread* self = Thread::Current(); local
132 Run(Thread* self) argument
153 Thread* self = Thread::Current(); local
167 Run(Thread* self) argument
181 Run(Thread* self) argument
193 Thread* self = Thread::Current(); local
[all...]
/art/test/971-iface-super/util-src/
H A Dgenerate_smali.py87 def __init__(self):
91 self.tests = set()
93 def get_expected(self):
97 all_tests = sorted(self.tests)
100 def add_test(self, ty):
104 self.tests.add(Func(ty))
106 def get_name(self):
112 def __str__(self):
116 all_tests = sorted(self.tests)
122 test_invoke += self
[all...]
/art/test/964-default-iface-init-gen/util-src/
H A Dgenerate_java.py66 def __init__(self):
70 self.tests = set()
72 def add_test(self, ty):
76 self.tests.add(Func(ty))
78 def get_expected(self):
82 all_tests = sorted(self.tests)
85 def get_name(self):
91 def __str__(self):
95 all_tests = sorted(self.tests)
101 test_invoke += self
[all...]
/art/runtime/entrypoints/jni/
H A Djni_entrypoints.cc31 Thread* self = Thread::Current(); local
33 extern "C" const void* artFindNativeMethod(Thread* self) {
34 DCHECK_EQ(self, Thread::Current());
36 Locks::mutator_lock_->AssertNotHeld(self); // We come here as Native.
37 ScopedObjectAccess soa(self);
39 ArtMethod* method = self->GetCurrentMethod(nullptr);
46 self->AssertPendingException();
/art/runtime/gc/
H A Dscoped_gc_critical_section.cc27 ScopedGCCriticalSection::ScopedGCCriticalSection(Thread* self, argument
30 : self_(self) {
31 Runtime::Current()->GetHeap()->StartGC(self, cause, collector_type);
32 if (self != nullptr) {
33 old_cause_ = self->StartAssertNoThreadSuspension("ScopedGCCriticalSection");
/art/runtime/interpreter/
H A Dlock_count_data.cc28 void LockCountData::AddMonitor(Thread* self, mirror::Object* obj) { argument
35 if (self->IsExceptionPending()) {
45 void LockCountData::RemoveMonitorOrThrow(Thread* self, const mirror::Object* obj) { argument
63 self->ClearException();
64 self->ThrowNewExceptionF("Ljava/lang/IllegalMonitorStateException;",
72 void MonitorExitHelper(Thread* self, mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS {
73 DCHECK(self != nullptr);
75 obj->MonitorExit(self);
78 bool LockCountData::CheckAllMonitorsReleasedOrThrow(Thread* self) { argument
79 DCHECK(self !
[all...]
/art/tools/common/
H A Dcommon.py67 def symbol(self):
68 return self.name[0]
77 def __ge__(self, other):
78 if self.__class__ is other.__class__:
79 return self.value >= other.value
82 def __gt__(self, other):
83 if self.__class__ is other.__class__:
84 return self.value > other.value
87 def __le__(self, other):
88 if self
[all...]

Completed in 500 milliseconds

1234567891011>>