Home
last modified time | relevance | path

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

12345

/development/tools/otagui/src/store/
Dindex.js5 state: { property
11 REUSE_CONFIG(state, config) { argument
12 state.otaConfig.verbose = config.verbose
13 state.otaConfig.isIncremental = config.isIncremental
14 state.otaConfig.partial = config.partial
15 state.otaConfig.isPartial = config.isPartial
16 state.targetBuilds = [config.target]
18 state.sourceBuilds = [config.incremental]
25 state.otaConfig[key] = true
27 state.extra += key
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DQueueFragment.java107 public void onPlaybackStateChanged(PlaybackState state) {
108 if (state == null) {
111 LogHelper.d(TAG, "Received playback state change to state ", state.getState());
112 mPlaybackState = state;
113 QueueFragment.this.onPlaybackStateChanged(state);
189 private void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged() argument
190 LogHelper.d(TAG, "onPlaybackStateChanged ", state); in onPlaybackStateChanged()
191 if (state == null) { in onPlaybackStateChanged()
194 mQueueAdapter.setActiveQueueItemId(state.getActiveQueueItemId()); in onPlaybackStateChanged()
198 switch (state.getState()) { in onPlaybackStateChanged()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java123 InputDeviceState state = getInputDeviceState(event.getDeviceId()); in dispatchKeyEvent() local
124 if (state != null) { in dispatchKeyEvent()
127 if (state.onKeyDown(event)) { in dispatchKeyEvent()
128 mSummaryAdapter.show(state); in dispatchKeyEvent()
132 if (state.onKeyUp(event)) { in dispatchKeyEvent()
133 mSummaryAdapter.show(state); in dispatchKeyEvent()
148 InputDeviceState state = getInputDeviceState(event.getDeviceId()); in dispatchGenericMotionEvent() local
149 if (state != null && state.onJoystickMotion(event)) { in dispatchGenericMotionEvent()
150 mSummaryAdapter.show(state); in dispatchGenericMotionEvent()
157 InputDeviceState state = mInputDeviceStates.get(deviceId); in getInputDeviceState() local
[all …]
/development/samples/Obb/src/com/example/android/obbapp/
DObbMountActivity.java64 ObbState state = (ObbState) getLastNonConfigurationInstance(); in onCreate() local
66 if (state != null) { in onCreate()
67 mSM = state.storageManager; in onCreate()
68 mStatus.setText(state.status); in onCreate()
69 mPath.setText(state.path); in onCreate()
80 public void onObbStateChange(String path, int state) {
81 Log.d(TAG, "path=" + path + "; state=" + state);
82 mStatus.setText(String.valueOf(state));
83 if (state == OnObbStateChangeListener.MOUNTED) {
133 ObbState state = new ObbState(mSM, mStatus.getText(), mPath.getText()); in onRetainNonConfigurationInstance() local
[all …]
/development/tools/winscope/src/trace_collection/
Dproxy_connection.ts44 private proxyStateChangeCallback: (state: ProxyState) => void,
71 state() { method in ProxyConnection
72 return this.proxy.state;
76 return this.state() === ProxyState.DEVICES;
80 return this.state() === ProxyState.START_TRACE;
84 return this.state() === ProxyState.ERROR;
88 return this.state() === ProxyState.STARTING_TRACE;
92 return this.state() === ProxyState.END_TRACE;
96 return this.state() === ProxyState.LOAD_DATA;
100 return this.state() === ProxyState.CONNECTING;
[all …]
Dproxy_client.ts308 state: ProxyState = ProxyState.CONNECTING; property in ProxyClient
321 async setState(state: ProxyState, errorText = '') {
322 this.state = state;
325 await listener(state, errorText);
329 onProxyChange(fn: (state: ProxyState, errorText: string) => Promise<void>) {
335 removeFn: (state: ProxyState, errorText: string) => Promise<void>,
344 proxyClient.state !== ProxyState.DEVICES &&
345 proxyClient.state !== ProxyState.CONNECTING &&
346 proxyClient.state !== ProxyState.START_TRACE
/development/tools/logblame/
Dlogs.py87 state = STATE_BEGIN
109 state = STATE_BUFFER
118 state = STATE_BUFFER
136 state = STATE_HEADER
155 state = STATE_BEGIN
159 if state == STATE_BLANK:
162 state = STATE_BLANK
166 if state == STATE_HEADER:
168 elif state == STATE_TEXT:
171 elif state == STATE_BLANK:
[all …]
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoTask.java182 void handleState(int state) { in handleState() argument
183 sPhotoManager.handleState(this, state); in handleState()
249 public void handleDownloadState(int state) { in handleDownloadState() argument
253 switch(state) { in handleDownloadState()
279 public void handleDecodeState(int state) { in handleDecodeState() argument
283 switch(state) { in handleDecodeState()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DMainActivity.java80 public void onUIStateChanged(UIAnimation.UIState state) { in onUIStateChanged() argument
81 Log.d(TAG, "UI State is: " + state); in onUIStateChanged()
82 if (mUiState == state) { in onUIStateChanged()
85 switch (state) { in onUIStateChanged()
88 mUiState = state; in onUIStateChanged()
93 mUiState = state; in onUIStateChanged()
119 mUiState = state; in onUIStateChanged()
126 mUiState = state; in onUIStateChanged()
131 mUiState = state; in onUIStateChanged()
136 mUiState = state; in onUIStateChanged()
DUIAnimation.java195 UIState(int state) { in UIState() argument
196 mState = state; in UIState()
199 static UIState getUIState(int state) { in getUIState() argument
201 if (uiState.mState == state) { in getUIState()
210 void onUIStateChanged(UIState state); in onUIStateChanged() argument
/development/tools/otagui/src/components/
DSingleOTAOptions.vue49 return this.$store.state.otaConfig.isIncremental
53 return this.$store.state.sourceBuilds[0]
61 return this.$store.state.targetBuilds[0]
77 let data = await this.$store.state.otaConfig.sendForm(
80 this.$store.state.otaConfig.reset()
DBatchOTAOptions.vue49 return this.$store.state.otaConfig.isIncremental
53 return this.$store.state.sourceBuilds
61 return this.$store.state.targetBuilds
77 let response_data = await this.$store.state.otaConfig.sendForms(
81 this.$store.state.otaConfig.reset()
DChainOTAOptions.vue44 return this.$store.state.otaConfig.isIncremental
48 return this.$store.state.targetBuilds
81 let response_data = await this.$store.state.otaConfig
85 this.$store.state.otaConfig.reset()
/development/tools/bugreport/src/com/android/bugreport/monkey/
DMonkeyLogParser.java83 int state = STATE_INITIAL; in extractAnrLines() local
85 while (state != STATE_DONE && lines.hasNext()) { in extractAnrLines()
88 switch (state) { in extractAnrLines()
92 state = STATE_ANR; in extractAnrLines()
99 state = STATE_DONE; in extractAnrLines()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DPlaylistItem.java54 public void setState(int state) { in setState() argument
55 mPlaybackState = state; in setState()
116 String state[] = { in toString() local
128 + state[mPlaybackState] + "] " + mUri.toString(); in toString()
/development/tools/bugreport/src/com/android/bugreport/stacks/
DProcessSnapshotParser.java68 int state = STATE_INITIAL; in parse() local
78 state = STATE_THREADS; in parse()
82 state = STATE_THREADS; in parse()
86 state = STATE_THREADS; in parse()
101 if (state == STATE_THREADS) { in parse()
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DMainActivity.java72 CardStreamState state = mRetentionFragment.getCardStream(); in onCreate() local
77 mCardStreamFragment.restoreState(state, clickListener); in onCreate()
92 CardStreamState state = getCardStream().dumpState(); in onSaveInstanceState() local
93 mRetentionFragment.storeCardStream(state); in onSaveInstanceState()
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DUtils.java30 String state = Environment.getExternalStorageState(); in isExternalStorageAvailable() local
31 if (!Environment.MEDIA_MOUNTED.equals(state)) { in isExternalStorageAvailable()
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DStreamRetentionFragment.java32 public void storeCardStream(CardStreamState state) { in storeCardStream() argument
33 mState = state; in storeCardStream()
DCardStreamFragment.java228 public void restoreState(CardStreamState state, OnCardClickListener callback) { in restoreState() argument
230 for (Card c : state.hiddenCards) { in restoreState()
236 final HashSet<String> dismissibleCards = state.dismissibleCards; in restoreState()
239 for (Card c : state.visibleCards) { in restoreState()
247 final String firstShown = state.shownTag; in restoreState()
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java440 protected void onRestoreInstanceState(Bundle state) { in onRestoreInstanceState() argument
441 super.onRestoreInstanceState(state); in onRestoreInstanceState()
444 if (state == null) return; in onRestoreInstanceState()
447 List<CharSequence> strings = (ArrayList<CharSequence>)state.getSerializable(STRINGS_KEY); in onRestoreInstanceState()
458 if (state.containsKey(SELECTION_KEY)) { in onRestoreInstanceState()
461 getListView().setSelection(state.getInt(SELECTION_KEY)); in onRestoreInstanceState()
465 mUrlText.setText(state.getCharSequence(URL_KEY)); in onRestoreInstanceState()
468 mStatusText.setText(state.getCharSequence(STATUS_KEY)); in onRestoreInstanceState()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectBroadcastReceiver.java62 int state = intent.getIntExtra(WifiP2pManager.EXTRA_WIFI_STATE, -1); in onReceive() local
63 if (state == WifiP2pManager.WIFI_P2P_STATE_ENABLED) { in onReceive()
71 Log.d(WiFiDirectActivity.TAG, "P2P state changed - " + state); in onReceive()
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java133 private transient int state; field in InsecureSHA1PRNGKeyDerivator
214 state = UNDEFINED; in InsecureSHA1PRNGKeyDerivator()
251 if (state == NEXT_BYTES) { // first setSeed after NextBytes; restoring hash in setSeed()
255 state = SET_SEED; in setSeed()
299 if (state == UNDEFINED) { in nextBytes()
303 } else if (state == SET_SEED) { in nextBytes()
339 state = NEXT_BYTES; in nextBytes()
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java311 State state = cell == mSelectedCell ? mSelectedValue : mData[cell];
312 state = state == State.EMPTY ? mCurrentPlayer : State.EMPTY;
317 mSelectedValue = state;
322 if (state != State.EMPTY) {
384 protected void onRestoreInstanceState(Parcelable state) {
386 if (!(state instanceof Bundle)) {
388 super.onRestoreInstanceState(state);
392 Bundle b = (Bundle) state;
/development/samples/VirtualDeviceManager/common/src/com/example/android/vdmdemo/common/
DConnectionManager.java83 public State state = State.DISCONNECTED; field in ConnectionManager.ConnectionStatus
153 return mConnectionStatus.state == ConnectionStatus.State.CONNECTED; in isConnected()
209 mConnectionStatus.state = ConnectionStatus.State.CONNECTED; in onSocketAvailable()
216 mConnectionStatus.state = ConnectionStatus.State.INITIALIZED; in onInitialized()
223 mConnectionStatus.state = ConnectionStatus.State.CONNECTING; in onConnecting()
233 mConnectionStatus.state = ConnectionStatus.State.ERROR; in onError()
241 Log.d(TAG, "Connection state changed: " + mConnectionStatus.state); in notifyStateChangedLocked()

12345