Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 78) sorted by relevance

1234

/art/tools/checker/file_format/c1visualizer/
Dparser.py30 def _parse_c1_line(c1_file, line, line_no, state, filename): argument
39 if state.current_state == C1ParserState.STARTING_CFG_BLOCK:
45 state.current_state = C1ParserState.INSIDE_CFG_BLOCK
46 return None, state.last_method_name + " " + line.split('"')[1], None
50 elif state.current_state == C1ParserState.INSIDE_CFG_BLOCK:
52 state.current_state = C1ParserState.OUTSIDE_BLOCK
57 elif state.current_state == C1ParserState.INSIDE_COMPILATION_BLOCK:
87 state.last_method_name = method_name
89 state.current_state = C1ParserState.OUTSIDE_BLOCK
93 assert state.current_state == C1ParserState.OUTSIDE_BLOCK
[all …]
/art/test/123-compiler-regressions-mt/src/
DMain.java59 private volatile int state = 0; field in B17689750TestVolatile
63 while (state != 1) { } // Busy loop. in thread1()
65 state = 2; in thread1()
70 state = 1; in thread2()
71 while (state != 2) { } // Busy loop. in thread2()
80 private int state = 0; field in B17689750TestMonitor
88 s = state; in thread1()
94 state = 2; in thread1()
102 state = 1; in thread2()
108 s = state; in thread2()
/art/test/991-field-trace-2/
Dexpected-stdout.txt2 Initial state: xyz = 0
8 Final state: xyz = 1
10 Initial state: xyz = 0
14 Final state: xyz = 0
16 Initial state: xyz = 0
23 Final state: xyz = 0
25 Initial state: xyz = 0
31 Final state: xyz = 21
33 Initial state: xyz = 0
39 Final state: xyz = 1
[all …]
/art/tools/dexfuzz/src/dexfuzz/
DStreamConsumer.java37 private State state; field in StreamConsumer
58 state = State.WAITING; in StreamConsumer()
183 return (expectedState == state); in checkState()
187 if (state != previousState) { in changeState()
188 Log.error("StreamConsumer Unexpected state: " + state + ", expected " + previousState); in changeState()
189 state = State.ERROR; in changeState()
191 state = newState; in changeState()
196 state = State.ERROR; in setErrorState()
200 return state; in getCurrentState()
/art/runtime/base/
Dmutex_test.cc117 RecursiveLockWait* state = reinterpret_cast<RecursiveLockWait*>(arg); in RecursiveLockWaitCallback() local
118 state->mu.Lock(Thread::Current()); in RecursiveLockWaitCallback()
119 state->cv.Signal(Thread::Current()); in RecursiveLockWaitCallback()
120 state->mu.Unlock(Thread::Current()); in RecursiveLockWaitCallback()
126 RecursiveLockWait state; in RecursiveLockWaitTest() local
127 state.mu.Lock(Thread::Current()); in RecursiveLockWaitTest()
128 state.mu.Lock(Thread::Current()); in RecursiveLockWaitTest()
131 int pthread_create_result = pthread_create(&pthread, nullptr, RecursiveLockWaitCallback, &state); in RecursiveLockWaitTest()
134 state.cv.Wait(Thread::Current()); in RecursiveLockWaitTest()
136 state.mu.Unlock(Thread::Current()); in RecursiveLockWaitTest()
[all …]
/art/test/063-process-manager/src/
DMain.java48 Thread.State state = t.getState(); in checkManager() local
49 System.out.println("process manager: " + state); in checkManager()
50 if (state != Thread.State.RUNNABLE && state != Thread.State.TIMED_WAITING) { in checkManager()
74 Thread.State state = t.getState(); in waitForReaperTimedWaiting() local
75 if (state != Thread.State.TIMED_WAITING) { in waitForReaperTimedWaiting()
/art/libnativebridge/
Dnative_bridge.cc95 static const char* GetNativeBridgeStateString(NativeBridgeState state) { in GetNativeBridgeStateString() argument
96 switch (state) { in GetNativeBridgeStateString()
115 static NativeBridgeState state = NativeBridgeState::kNotSetup; variable
226 state = NativeBridgeState::kClosed; in CloseNativeBridge()
236 if (state != NativeBridgeState::kNotSetup) { in LoadNativeBridge()
240 GetNativeBridgeStateString(state)); in LoadNativeBridge()
288 state = NativeBridgeState::kOpened; in LoadNativeBridge()
291 return state == NativeBridgeState::kOpened; in LoadNativeBridge()
363 if (state != NativeBridgeState::kOpened) { in PreInitializeNativeBridge()
384 state = NativeBridgeState::kPreInitialized; in PreInitializeNativeBridge()
[all …]
/art/test/odsign/test-src/com/android/tests/odsign/
DCompOsTestUtils.java86 String state = result.getStdout(); in waitForJobToBeScheduled() local
87 if (state.startsWith("unknown")) { in waitForJobToBeScheduled()
104 String state = result.getStdout(); in waitForJobExit() local
105 if (state.contains("ready") || state.contains("active")) { in waitForJobExit()
107 } else if (state.startsWith("unknown")) { in waitForJobExit()
/art/runtime/
Dcompat_framework.cc48 void CompatFramework::ReportChange(uint64_t change_id, ChangeState state) { in ReportChange() argument
55 << "; state: " << ChangeStateToString(state); in ReportChange()
60 std::string_view CompatFramework::ChangeStateToString(ChangeState state) { in ChangeStateToString() argument
61 switch (state) { in ChangeStateToString()
Dmonitor_objects_stack_visitor.cc46 ThreadState state = Monitor::FetchState(GetThread(), in VisitFrame() local
49 switch (state) { in VisitFrame()
52 VisitWaitingObject(monitor_object, state); in VisitFrame()
60 VisitBlockedOnObject(monitor_object, state, lock_owner_tid); in VisitFrame()
Druntime_callbacks_test.cc125 if (state == CallbackState::kBase) { in ThreadStart()
126 state = CallbackState::kStarted; in ThreadStart()
129 state = CallbackState::kWrongStart; in ThreadStart()
138 if (state == CallbackState::kStarted && self == stored_self) { in ThreadDeath()
139 state = CallbackState::kDied; in ThreadDeath()
141 state = CallbackState::kWrongDeath; in ThreadDeath()
146 CallbackState state = CallbackState::kBase; member
165 cb_.state = CallbackState::kBase; // Ignore main thread attach. in TEST_F()
196 EXPECT_EQ(cb_.state, CallbackState::kDied); in TEST_F()
224 EXPECT_TRUE(cb_.state == CallbackState::kStarted) << static_cast<int>(cb_.state); in TEST_F()
Dmonitor_objects_stack_visitor.h66 virtual void VisitWaitingObject(ObjPtr<mirror::Object> obj, ThreadState state)
71 ThreadState state,
/art/tools/ahat/src/main/com/android/ahat/dominators/
DDominatorsComputation.java62 void setDominatorsComputationState(Object state); in setDominatorsComputationState() argument
125 public void setDominatorsComputationState(Node node, Object state) { in computeDominators()
126 node.setDominatorsComputationState(state); in computeDominators()
/art/libelffile/elf/
Dxz_utils.cc105 std::unique_ptr<CXzUnpacker> state(new CXzUnpacker()); in XzDecompress() local
109 XzUnpacker_Construct(state.get(), &alloc); in XzDecompress()
118 int return_val = XzUnpacker_Code(state.get(), in XzDecompress()
131 CHECK(XzUnpacker_IsStreamWasFinished(state.get())); in XzDecompress()
132 XzUnpacker_Free(state.get()); in XzDecompress()
/art/openjdkjvmti/
DREADME.md6 state of the program by modifying dex files in memory and performing other
7 operations on the global runtime state.
/art/test/1932-monitor-events-misc/
Dexpected-stdout.jvm.txt11 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEnter], owner: <NULL>, entryCount…
18 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEntered], owner: <NULL>, entryCou…
26 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowBoth], owner: <NULL>, entryCount:…
33 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWait], owner: <NULL>, entryCount: 0, …
39 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowIllegalWait], owner: <NULL>, entryCou…
46 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaited], owner: <NULL>, entryCount: 0…
53 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedTimeout], owner: <NULL>, entryC…
60 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedInterrupt], owner: <NULL>, entr…
90 Testing the lock state if MonitorEnter throws in a native method
96 Lock state is: MonitorUsage{ monitor: NamedLock[test testNativeLockStateThrowEnter], owner: NativeL…
[all …]
Dexpected-stdout.txt11 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEnter], owner: <NULL>, entryCount…
18 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEntered], owner: <NULL>, entryCou…
26 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowBoth], owner: <NULL>, entryCount:…
32 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWait], owner: <NULL>, entryCount: 0, …
38 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowIllegalWait], owner: <NULL>, entryCou…
45 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaited], owner: <NULL>, entryCount: 0…
52 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedTimeout], owner: <NULL>, entryC…
59 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedInterrupt], owner: <NULL>, entr…
89 Testing the lock state if MonitorEnter throws in a native method
95 Lock state is: MonitorUsage{ monitor: NamedLock[test testNativeLockStateThrowEnter], owner: NativeL…
[all …]
/art/test/ti-agent/
Dsuspension_helper.cc30 jint state; in Java_art_Suspension_isSuspended() local
31 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetThreadState(thr, &state))) { in Java_art_Suspension_isSuspended()
34 return (state & JVMTI_THREAD_STATE_SUSPENDED) != 0; in Java_art_Suspension_isSuspended()
/art/runtime/mirror/
Dthrowable.cc63 void Throwable::SetStackState(ObjPtr<Object> state) REQUIRES_SHARED(Locks::mutator_lock_) { in SetStackState() argument
64 CHECK(state != nullptr); in SetStackState()
66 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); in SetStackState()
68 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); in SetStackState()
/art/benchmark/jni-perf/
Dinfo.txt1 Tests for measuring performance of JNI state changes.
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc92 static constexpr uint8_t ToJdwpThreadStatus(ThreadState state) { in ToJdwpThreadStatus() argument
103 switch (state) { in ToJdwpThreadStatus()
142 LOG(FATAL) << "Unknown thread state: " << state; in ToJdwpThreadStatus()
/art/test/1971-multi-force-early-return/src/art/
DTest1971.java32 public final Thread.State state; field in Test1971.ReturnValue
38 state = thr.getState(); in ReturnValue()
46 + state in toString()
/art/perfetto_hprof/
Dperfetto_hprof.h38 std::ostream& operator<<(std::ostream& os, State state);
/art/test/1990-structural-bad-verify/
Dinfo.txt6 state.
/art/test/924-threads/src/art/
DTest924.java225 int state; in waitForState() local
227 while ((state = getThreadState(t)) != desired && deadline.isAfter(Instant.now())) { in waitForState()
232 printThreadState(state); in waitForState()
444 private static void printThreadState(int state) { in printThreadState() argument
448 if ((state & i) != 0) { in printThreadState()
460 System.out.println(Integer.toHexString(state) + " = " + sb.toString()); in printThreadState()

1234