Home
last modified time | relevance | path

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

123456

/development/ndk/platforms/android-9/include/linux/mmc/
Dcard.h58 unsigned int state; member
72 #define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT)
73 #define mmc_card_dead(c) ((c)->state & MMC_STATE_DEAD)
74 #define mmc_card_bad(c) ((c)->state & MMC_STATE_BAD)
75 #define mmc_card_sd(c) ((c)->state & MMC_STATE_SDCARD)
76 #define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY)
78 #define mmc_card_set_present(c) ((c)->state |= MMC_STATE_PRESENT)
79 #define mmc_card_set_dead(c) ((c)->state |= MMC_STATE_DEAD)
80 #define mmc_card_set_bad(c) ((c)->state |= MMC_STATE_BAD)
81 #define mmc_card_set_sd(c) ((c)->state |= MMC_STATE_SDCARD)
[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/logblame/
Dlogs.py86 state = STATE_BEGIN
108 state = STATE_BUFFER
117 state = STATE_BUFFER
135 state = STATE_HEADER
139 if state == STATE_BLANK:
142 state = STATE_BLANK
146 if state == STATE_HEADER:
148 elif state == STATE_TEXT:
151 elif state == STATE_BLANK:
156 state = STATE_TEXT
/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/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/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/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/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/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/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/ndk/platforms/android-9/include/linux/raid/
Dmd_u.h61 int state; member
78 int state; member
87 int state; member
/development/samples/ApiDemos/src/com/example/android/apis/preference/
DMyPreference.java117 protected void onRestoreInstanceState(Parcelable state) { in onRestoreInstanceState() argument
118 if (!state.getClass().equals(SavedState.class)) { in onRestoreInstanceState()
120 super.onRestoreInstanceState(state); in onRestoreInstanceState()
125 SavedState myState = (SavedState) state; in onRestoreInstanceState()
/development/ndk/platforms/android-21/include/linux/raid/
Dmd_u.h75 int state; member
96 int state; member
104 int state; member
/development/ndk/platforms/android-9/include/linux/lockd/
Dxdr.h48 u32 state; member
65 u32 state; member
/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/ndk/platforms/android-9/include/linux/
Dsysdev.h24 int (*suspend)(struct sys_device *, pm_message_t state);
42 int (*suspend)(struct sys_device *, pm_message_t state);
/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/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/ndk/platforms/android-21/include/linux/netfilter/
Dnf_conntrack_sctp.h37 enum sctp_conntrack state; member
/development/ndk/platforms/android-9/arch-arm/include/asm/arch/
Dgpio-switch.h33 void (* notify)(void *data, int state);

123456