/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | QueueFragment.java | 107 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 …]
|
D | MediaNotificationManager.java | 194 public void onPlaybackStateChanged(PlaybackState state) { 195 mPlaybackState = state; 196 LogHelper.d(TAG, "Received new playback state", state); 197 if (state != null && (state.getState() == PlaybackState.STATE_STOPPED || 198 state.getState() == PlaybackState.STATE_NONE)) {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | GameControllerInput.java | 123 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/ |
D | ObbMountActivity.java | 64 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/ |
D | logs.py | 87 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/ |
D | PhotoTask.java | 182 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()
|
D | PhotoManager.java | 274 public void handleState(PhotoTask photoTask, int state) { in handleState() argument 275 switch (state) { in handleState() 289 Message completeMessage = mHandler.obtainMessage(state, photoTask); in handleState() 303 mHandler.obtainMessage(state, photoTask).sendToTarget(); in handleState()
|
/development/tools/bugreport/src/com/android/bugreport/monkey/ |
D | MonkeyLogParser.java | 83 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/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | MainActivity.java | 80 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()
|
D | UIAnimation.java | 195 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/MediaRouter/src/com.example.android.mediarouter/player/ |
D | PlaylistItem.java | 54 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/AutoBackupForApps/src/com.example.android.autobackupsample/ |
D | Utils.java | 30 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/ |
D | StreamRetentionFragment.java | 32 public void storeCardStream(CardStreamState state) { in storeCardStream() argument 33 mState = state; in storeCardStream()
|
D | CardStreamFragment.java | 228 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/ |
D | ProcessSnapshotParser.java | 68 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/ |
D | MainActivity.java | 72 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/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/ |
D | InputMethodDebug.java | 44 final int state = softInputMode & WindowManager.LayoutParams.SOFT_INPUT_MASK_STATE; in softInputModeToString() local 49 switch (state) { in softInputModeToString() 69 joiner.add("STATE_UNKNOWN(" + state + ")"); in softInputModeToString()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectBroadcastReceiver.java | 62 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/RSSReader/src/com/example/android/rssreader/ |
D | RssReader.java | 440 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/ |
D | InsecureSHA1PRNGKeyDerivator.java | 133 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/ |
D | GameView.java | 311 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/scripts/ |
D | reverse_tether.sh | 165 sudo iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT 166 sudo iptables -A FORWARD -m state --state NEW -i $HOST_DEV -j ACCEPT
|
/development/samples/browseable/ActivityInstrumentation/ |
D | _index.jd | 9 internal state of an Activity.
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
D | IncomingRequestPhoneService.java | 171 String state = Environment.getExternalStorageState(); in isExternalStorageReadable() local 173 return Environment.MEDIA_MOUNTED.equals(state) in isExternalStorageReadable() 174 || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state); in isExternalStorageReadable()
|
/development/samples/browseable/DocumentCentricApps/ |
D | _index.jd | 10 state through reboots. If \"Task per document\" is checked a new task will be
|