Home
last modified time | relevance | path

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

12345678910>>...16

/art/tools/checker/match/
Dtest.py32 def createTestStatement(self, checkerString): argument
37 def tryMatch(self, checkerString, c1String, varState={}): argument
38 return MatchLines(self.createTestStatement(checkerString),
42 def assertMatches(self, checkerString, c1String, varState={}): argument
43 self.assertIsNotNone(self.tryMatch(checkerString, c1String, varState))
45 def assertDoesNotMatch(self, checkerString, c1String, varState={}): argument
46 self.assertIsNone(self.tryMatch(checkerString, c1String, varState))
48 def test_TextAndWhitespace(self): argument
49 self.assertMatches("foo", "foo")
50 self.assertMatches("foo", " foo ")
[all …]
Dfile.py26 def __init__(self, statement, lineNo, variables): argument
27 self.statement = statement
28 self.lineNo = lineNo
29 self.variables = variables
32 def __init__(self, msg, lineNo): argument
33 self.msg = msg
34 self.lineNo = lineNo
66 def __init__(self): argument
67 self.stack = []
69 def CanExecute(self): argument
[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].statements), 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].statements), 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.py21 def __init__(self, fileName): argument
22 self.fileName = fileName
23 self.passes = []
24 self.instructionSetFeatures = ImmutableDict()
26 def setISAFeatures(self, features): argument
27 self.instructionSetFeatures = ImmutableDict(features)
29 def addPass(self, new_pass): argument
30 self.passes.append(new_pass)
32 def findPass(self, name): argument
33 for entry in self.passes:
[all …]
Dtest.py27 def createFile(self, data): argument
42 def assertParsesTo(self, c1Text, expectedData): argument
43 expectedFile = self.createFile(expectedData)
45 return self.assertEqual(expectedFile, actualFile)
47 def test_EmptyFile(self): argument
48 self.assertParsesTo("", (ImmutableDict(), []))
50 def test_SingleGroup(self): argument
51 self.assertParsesTo(
66 def test_MultipleGroups(self): argument
67 self.assertParsesTo(
[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 …]

12345678910>>...16