HomeSort by relevance Sort by last modified time
    Searched refs:State (Results 201 - 225 of 3236) sorted by null

1 2 3 4 5 6 7 891011>>

  /frameworks/base/core/java/com/android/internal/globalactions/
ToggleAction.java 34 public enum State {
42 State(boolean intermediate) {
51 protected State mState = State.Off;
106 boolean on = ((mState == State.On) || (mState == State.TurningOn));
130 final boolean nowOn = !(mState == State.On);
141 * Implementations may override this if their state can be in on of the intermediate
147 mState = buttonOn ? State.On : State.Off
    [all...]
  /hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
ConcurrentQueue.h 90 enum class State {
98 BatchingConsumer() : mState(State::INIT) {}
116 mState = State::STOP_REQUESTED;
127 if (mState.exchange(State::RUNNING) == State::INIT) {
128 while (State::RUNNING == mState) {
130 if (State::STOP_REQUESTED == mState) break;
133 if (State::STOP_REQUESTED == mState) break;
143 mState = State::STOPPED;
149 std::atomic<State> mState
    [all...]
  /libcore/luni/src/benchmark/native/
libcore_io_Memory_bench.cpp 23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) {
24 size_t num_elements = state.range(0);
48 while (state.KeepRunning()) {
61 static void BM_swapShorts_aligned(benchmark::State& state) {
62 swap_bench<jshort, 0>(state, swapShorts);
66 static void BM_swapInts_aligned(benchmark::State& state) {
67 swap_bench<jint, 0>(state, swapInts)
    [all...]
  /external/clang/docs/tools/
dump_format_style.py 102 class State:
105 state = State.BeforeStruct
116 if state == State.BeforeStruct:
118 state = State.InStruct variable in class:read_options.State
119 elif state == State.InStruct:
121 state = State.InFieldCommen variable in class:read_options.State
124 state = State.Finished variable in class:read_options.State
130 state = State.InEnum variable in class:read_options.State
134 state = State.InNestedStruct variable in class:read_options.State
138 state = State.InStruct variable in class:read_options.State
147 state = State.InNestedFieldComent variable in class:read_options.State
150 state = State.InStruct variable in class:read_options.State
156 state = State.InNestedStruct variable in class:read_options.State
160 state = State.InEnumMemberComment variable in class:read_options.State
163 state = State.InStruct variable in class:read_options.State
171 state = State.InEnum variable in class:read_options.State
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
ObjCContainersChecker.cpp 56 ProgramStateRef checkPointerEscape(ProgramStateRef State,
63 // ProgramState trait - a map from array symbol to its state.
68 ProgramStateRef State = C.getState();
69 SVal SizeV = State->getSVal(Size, C.getLocationContext());
75 SVal ArrayRef = State->getSVal(Array, C.getLocationContext());
81 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>()));
90 // Add array size information to the state.
115 ProgramStateRef State = C.getState();
124 const DefinedSVal *Size = State->get<ArraySizeMap>(ArraySym);
131 SVal IdxVal = State->getSVal(IdxExpr, C.getLocationContext())
    [all...]
CheckerDocumentation.cpp 152 /// up/reduce the checker state, which is important for reducing the overall
203 /// state. This callback allows a checker to provide domain specific knowledge
219 /// performed on the symbols of interest and change the state accordingly.
222 ProgramStateRef evalAssume(ProgramStateRef State,
224 bool Assumption) const { return State; }
231 void checkLiveSymbols(ProgramStateRef State, SymbolReaper &SR) const {}
238 /// #checkRegionChanges when no checkers are tracking any state.
247 /// \param State The current program state.
265 checkRegionChanges(ProgramStateRef State,
    [all...]
  /external/llvm/lib/Target/AArch64/
AArch64CallingConvention.h 46 CCState &State, unsigned SlotAlign) {
49 State.getMachineFunction().getDataLayout().getStackAlignment();
53 It.convertToMem(State.AllocateStack(Size, std::max(Align, SlotAlign)));
54 State.addLoc(It);
67 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
68 SmallVectorImpl<CCValAssign> &PendingMembers = State.getPendingLocs();
78 return finishStackBlock(PendingMembers, LocVT, ArgFlags, State, 8);
86 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
105 SmallVectorImpl<CCValAssign> &PendingMembers = State.getPendingLocs();
115 unsigned RegResult = State.AllocateRegBlock(RegList, PendingMembers.size())
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
StateMachine.java 32 * State machine responsible for handling the logic between different states.
37 private Map<State, List<Transition>> mTransitionMap = new HashMap<>();
38 private LinkedList<State> mStatesList = new LinkedList<>();
39 private State.StateCompleteListener mCompletionListener = this::updateState;
106 * Set the callback for the things need to done when the state machine leaves end state.
113 * Add state with transition.
115 * @param state start state.
117 * @param destination destination state
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
SimulatedGsmCallState.java 31 enum State {
39 State(int value) {mValue = value;}
46 State mState;
51 CallInfo (boolean isMT, State state, boolean isMpty, String number) {
53 mState = state;
66 return new CallInfo (false, State.DIALING, false, number);
71 return new CallInfo (true, State.INCOMING, false, number);
93 ret.state = DriverCall.stateFromCLCC(mState.value());
110 return mState == State.ACTIVE || mState == State.HOLDING
    [all...]
  /external/v8/src/
map-updater.h 40 // - If |target_map| == |split_map|, |target_map| is in the expected state.
70 enum State { kInitialized, kAtRootMap, kAtTargetMap, kEnd };
74 State TryRecofigureToDataFieldInplace();
79 State FindRootMap();
86 State FindTargetMap();
102 // - If |target_map| == |split_map|, |target_map| is in the expected state.
107 State ConstructNewMap();
112 State CopyGeneralizeAllFields(const char* reason);
158 State state_ = kInitialized;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
GsmCdmaCall.java 72 mState = stateFromDCState (dc.state);
75 public void attachFake(Connection conn, State state) {
78 mState = state;
85 if (mState != State.DISCONNECTED) {
91 if (mConnections.get(i).getState() != State.DISCONNECTED) {
98 mState = State.DISCONNECTED;
110 mState = State.IDLE;
115 State newState;
118 newState = stateFromDCState(dc.state);
    [all...]
DriverCall.java 29 public enum State {
36 // If you add a state, make sure to look for the switch()
66 public State state; // May be null if unavail field in class:DriverCall
85 // index,isMT,state,mode,isMpty(,number,TOA)?
91 ret.state = stateFromCLCC(p.nextInt());
133 + state + ","
145 public static State
146 stateFromCLCC(int state) throws ATParseEx {
147 switch(state) {
    [all...]
  /frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
LifecycleRegistry.java 25 import static androidx.lifecycle.Lifecycle.State.CREATED;
26 import static androidx.lifecycle.Lifecycle.State.DESTROYED;
27 import static androidx.lifecycle.Lifecycle.State.INITIALIZED;
28 import static androidx.lifecycle.Lifecycle.State.RESUMED;
29 import static androidx.lifecycle.Lifecycle.State.STARTED;
58 * state(observer1) >= state(observer2),
63 * Current state
65 private State mState;
85 // newObserver should be brought only to CREATED state during the execution o
    [all...]
  /packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
CelluarTile.java 39 private State mState = State.ON;
49 mState = mAvailable && mDataUsageController.isMobileDataEnabled() ? State.ON : State.OFF;
55 mState = enabled ? State.ON : State.OFF;
80 public State getState() {
  /packages/apps/DeskClock/src/com/android/deskclock/data/
Stopwatch.java 21 import static com.android.deskclock.data.Stopwatch.State.PAUSED;
22 import static com.android.deskclock.data.Stopwatch.State.RESET;
23 import static com.android.deskclock.data.Stopwatch.State.RUNNING;
30 public enum State { RESET, RUNNING, PAUSED }
37 /** Current state of this stopwatch. */
38 private final State mState;
49 Stopwatch(State state, long lastStartTime, long lastWallClockTime, long accumulatedTime) {
50 mState = state;
56 public State getState() { return mState;
    [all...]
  /system/update_engine/update_manager/
policy_utils.h 30 // const int* my_value = ec->GetValue(state->my_provider()->var_my_value());
50 State* state,
56 (policy->*policy_method)(ec, state, error, result, args...);
73 State* state,
81 State* state,
89 State* state,
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
GsmCdmaCallTrackerTest.java 83 /* Make sure radio state is power on before dial.
84 * When radio state changed from off to on, CallTracker
100 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState());
101 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState());
102 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState());
112 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState());
113 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState());
128 logd("Pick Up MO call, expecting call state change event ");
131 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState());
132 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState())
    [all...]
  /external/libmojo/mojo/public/cpp/bindings/lib/
scoped_interface_endpoint_handle.cc 15 // ScopedInterfaceEndpointHandle::State ----------------------------------------
17 // State could be called from multiple threads.
18 class ScopedInterfaceEndpointHandle::State
19 : public base::RefCountedThreadSafe<State> {
21 State() = default;
23 State(InterfaceId id,
27 void InitPendingState(scoped_refptr<State> peer) {
39 scoped_refptr<State> cached_peer_state;
69 // is still in "pending_association" state and doesn't have a group
111 &ScopedInterfaceEndpointHandle::State::RunAssociationEventHandler
    [all...]
  /device/generic/goldfish/dhcp/client/
dhcpclient.cpp 37 // the state machine should immediately transition to the next state
56 mState(State::Init),
103 // Before waiting, polling or receiving we check the current state and
105 // also lead to instant state changes without any polling. The new state
108 case State::Init:
109 // The starting state. This is the state the client is in when
110 // it first starts. It's also the state that the client return
    [all...]
  /frameworks/native/libs/ui/
FenceTime.cpp 50 State::VALID : State::INVALID),
52 mSignalTime(mState == State::INVALID ?
58 State::VALID : State::INVALID),
60 mSignalTime(mState == State::INVALID ?
65 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID),
75 if (CC_UNLIKELY(src.state != Snapshot::State::SIGNAL_TIME))
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
BatteryDatabaseManagerTest.java 92 AnomalyDatabaseHelper.State.NEW, NOW);
94 AnomalyDatabaseHelper.State.NEW, TWO_DAYS_BEFORE);
98 AnomalyDatabaseHelper.State.NEW);
103 AnomalyDatabaseHelper.State.NEW);
110 AnomalyDatabaseHelper.State.NEW);
117 AnomalyDatabaseHelper.State.NEW, NOW);
119 AnomalyDatabaseHelper.State.NEW, NOW);
124 // Change state of PACKAGE_NAME_OLD to handled
126 AnomalyDatabaseHelper.State.HANDLED);
128 // The state of PACKAGE_NAME_NEW is still ne
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/
reporter_output_test.cc 24 void BM_basic(benchmark::State& state) {
25 while (state.KeepRunning()) {
43 void BM_bytes_per_second(benchmark::State& state) {
44 while (state.KeepRunning()) {
46 state.SetBytesProcessed(1);
65 void BM_items_per_second(benchmark::State& state) {
66 while (state.KeepRunning())
    [all...]
  /external/clang/test/SemaCXX/
constexpr-nqueens.cpp 6 uint64_t State;
9 constexpr Board() : State(0), Failed(false) {}
10 constexpr Board(const Board &O) : State(O.State), Failed(O.Failed) {}
11 constexpr Board(uint64_t State, bool Failed = false) :
12 State(State), Failed(Failed) {}
14 return Board(State | ((uint64_t)Row << (Col * 4)));
17 return (State >> (Col * 4)) & 0xf;
  /frameworks/base/core/java/com/android/internal/transition/
EpicenterTranslateClipReveal.java 150 final State startStateX = new State(startClip.left, startClip.right, startX);
151 final State endStateX = new State(endClip.left, endClip.right, endX);
152 final State startStateY = new State(startClip.top, startClip.bottom, startY);
153 final State endStateY = new State(endClip.top, endClip.bottom, endY);
182 final State startStateX = new State(startClip.left, startClip.right, startX)
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/roots/
ProvidersAccess.java 26 import com.android.documentsui.base.State;
47 Collection<RootInfo> getMatchingRootsBlocking(State state);
51 RootInfo getDefaultRootBlocking(State state);
65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) {
74 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) {
79 if (state.action == State.ACTION_PICK_COPY_DESTINATIO
    [all...]

Completed in 5010 milliseconds

1 2 3 4 5 6 7 891011>>