/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BroadcastRecord.java | 71 int state; field in class:BroadcastRecord 164 if (state != IDLE) { 166 switch (state) { 172 pw.print(prefix); pw.print("state="); pw.print(state); pw.println(stateStr); 216 state = IDLE;
|
H A D | BroadcastQueue.java | 305 // We need to reset the state if we failed to start the receiver. 306 br.state = BroadcastRecord.IDLE; 316 br.state = BroadcastRecord.IDLE; 369 final int state = r.state; 371 r.state = BroadcastRecord.IDLE; 372 if (state == BroadcastRecord.IDLE) { 373 Slog.w(TAG, "finishReceiver [" + mQueueName + "] called but state is IDLE"); 414 // special state where we hold off on continuing this broadcast until they are done. 417 r.state [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | GuidedStepFragment.java | 181 * @param savedInstanceState The saved instance state from onCreateView. 192 * @param savedInstanceState The saved instance state from onCreate. 323 Bundle state = (savedInstanceState != null) ? savedInstanceState : getArguments(); 324 if (state != null) { 326 mSelectedIndex = state.getInt(EXTRA_ACTION_SELECTED_INDEX, -1); 328 mEntryTransitionEnabled = state.getBoolean(EXTRA_ACTION_ENTRY_TRANSITION_ENABLED, true); 329 mEntryTransitionPerformed = state.getBoolean(EXTRA_ENTRY_TRANSITION_PERFORMED, false);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 331 TvInputState state = userState.inputMap.get(info.getId()); 332 if (state == null) { 333 state = new TvInputState(); 335 state.info = info; 336 inputMap.put(info.getId(), state); 435 for (SessionState state : userState.sessionStateMap.values()) { 436 if (state.session != null) { 438 state.session.release(); 485 throw new IllegalStateException("Service state not found for " + component + " (userId=" 495 throw new SessionNotFoundException("Session state no 744 notifyInputStateChangedLocked(UserState userState, String inputId, int state, ITvInputManagerCallback targetCallback) argument 767 setStateLocked(String inputId, int state, int userId) argument 1903 private int state = INPUT_STATE_CONNECTED; field in class:TvInputManagerService.TvInputState 2500 onStateChanged(String inputId, int state) argument [all...] |
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 50 // Session state 56 // Effect/Preprocessor state 88 uint32_t state; // current state (enum preproc_effect_state) member in struct:preproc_effect_s 101 uint32_t state; // current state (enum preproc_session_state) member in struct:preproc_session_s 638 LOG_ALWAYS_FATAL("Bad state transition from %d to %d", from, to); 640 int Effect_SetState(preproc_effect_t *effect, uint32_t state) argument 643 ALOGV("Effect_SetState proc %d, new %d old %d", effect->procId, state, effect->state); [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | DrawableContainer.java | 314 protected boolean onStateChange(int[] state) { argument 316 return mLastDrawable.setState(state); 319 return mCurrDrawable.setState(state); 606 * Returns a shallow copy of the container's constant state to be used as 607 * the base state for {@link #mutate()}. 609 * @return a shallow copy of the constant state 724 // sure that we're done computing values for the original state. 737 // drawable doesn't have a constant state, then we can't clone 1113 final ConstantState state = getChild(i).getConstantState(); 1114 if (state ! 1138 get(DrawableContainerState state) argument 1165 setConstantState(DrawableContainerState state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSPanel.java | 268 private void drawTile(TileRecord r, QSTile.State state) { argument 269 final int visibility = state.visible ? VISIBLE : GONE; 271 r.tileView.onStateChanged(state); 281 public void onStateChanged(QSTile.State state) { 283 drawTile(r, state); 291 public void onToggleStateChanged(boolean state) { 293 fireToggleStateChanged(state); 297 public void onScanStateChanged(boolean state) { 298 r.scanState = state; 383 if (!visibleDiff && mDetailRecord == r) return; // already in right state 559 fireToggleStateChanged(boolean state) argument 565 fireScanStateChanged(boolean state) argument 644 onToggleStateChanged(boolean state) argument 645 onScanStateChanged(boolean state) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 579 * Reset all pattern state. 601 * timeout so user doesn't get view into messy state). 737 private void startLineEndAnimation(final CellState state, argument 744 state.lineEndX = (1 - t) * startX + t * targetX; 745 state.lineEndY = (1 - t) * startY + t * targetY; 752 state.lineAnimator = null; 758 state.lineAnimator = valueAnimator; 762 Interpolator interpolator, final CellState state, final Runnable endRunnable) { 767 state.radius = (float) animation.getAnimatedValue(); 989 CellState state 761 startRadiusAnimation(float start, float end, long duration, Interpolator interpolator, final CellState state, final Runnable endRunnable) argument 1205 onRestoreInstanceState(Parcelable state) argument [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | SimpleSoftOMXComponent.cpp | 326 OMX_ERRORTYPE SimpleSoftOMXComponent::getState(OMX_STATETYPE *state) { 329 *state = mState; 420 void SimpleSoftOMXComponent::onChangeState(OMX_STATETYPE state) { 421 // We shouldn't be in a state transition already. 426 CHECK_EQ((int)state, (int)OMX_StateIdle); 429 CHECK(state == OMX_StateLoaded || state == OMX_StateExecuting); 433 CHECK_EQ((int)state, (int)OMX_StateIdle); 440 notify(OMX_EventCmdComplete, OMX_CommandStateSet, state, NULL); 448 mTargetState = state; [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerDyn.cpp | 45 * Layout of the state buffer for halfNumCoefs=8. 80 // resizes the state buffer to accommodate the appropriate filter length 84 // calculate desired state size 95 TI* state = NULL; local 96 (void)posix_memalign(reinterpret_cast<void**>(&state), 32, stateCount*sizeof(*state)); 97 memset(state, 0, stateCount*sizeof(*state)); 99 // attempt to preserve state 103 TI* dst = state; [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyInterfaceImpl.cpp | 30 audio_policy_dev_state_t state, 43 if (state != AUDIO_POLICY_DEVICE_STATE_AVAILABLE && 44 state != AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE) { 50 return mAudioPolicyManager->setDeviceConnectionState(device, state, 65 status_t AudioPolicyService::setPhoneState(audio_mode_t state) argument 73 if (uint32_t(state) >= AUDIO_MODE_CNT) { 80 AudioSystem::setMode(state); 83 mAudioPolicyManager->setPhoneState(state); 84 mPhoneState = state; 29 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address, const char *device_name) argument
|
H A D | AudioPolicyInterfaceImplLegacy.cpp | 35 audio_policy_dev_state_t state, 48 if (state != AUDIO_POLICY_DEVICE_STATE_AVAILABLE && 49 state != AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE) { 56 state, device_address); 70 status_t AudioPolicyService::setPhoneState(audio_mode_t state) argument 78 if (uint32_t(state) >= AUDIO_MODE_CNT) { 85 AudioSystem::setMode(state); 88 mpAudioPolicy->set_phone_state(mpAudioPolicy, state); 89 mPhoneState = state; 34 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address, const char *device_name __unused) argument
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | CaptureSequencer.cpp | 157 result = String8::format(" Current capture state: %s\n", 223 ALOGV("Camera %d: New capture state %s", 269 switch (l.mParameters.state) { 282 l.mParameters.state = Parameters::STOPPED; 285 l.mParameters.state = Parameters::RECORD; 289 "in state %s!", 291 Parameters::getStateName(l.mParameters.state)); 340 l.mParameters.state == Parameters::STILL_CAPTURE) { 344 l.mParameters.state == Parameters::STILL_CAPTURE && 464 // Waiting to see PRECAPTURE state [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 53 * Invoked when the state of this {@code RemoteConnection} has changed. See 57 * @param state The new state of the {@code RemoteConnection}. 59 public void onStateChanged(RemoteConnection connection, int state) {} argument 117 * @param isVoip Whether the new audio state of the {@code RemoteConnection} is VOIP. 154 * Indicates that the video state of this {@code RemoteConnection} has changed. 158 * @param videoState The new video state of the {@code RemoteConnection}. 406 * Registers a callback to receive commands and state changes for video calls. 681 * Obtains the state of this {@code RemoteConnection}. 683 * @return A state valu 964 setAudioState(AudioState state) argument 973 setCallAudioState(CallAudioState state) argument 1016 setState(final int state) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseCardView.java | 36 * A card style layout that responds to certain state changes. It arranges its 42 * visibilities of the child types, and the state of the widget. A child may be 45 * display based on the activated or selected state of the View. The card states 302 * Sets the Activated state of this Card. This can trigger changes in the 304 * normally set to Activated state when its parent container (like a Row) 319 * Sets the Selected state of this Card. This can trigger changes in the 321 * normally set to Selected state when it receives input focus. 343 int state = 0; 358 state = View.combineMeasuredStates(state, mainVie [all...] |
H A D | GridLayoutManager.java | 215 RecyclerView.State state, Action action) { 949 private void saveContext(Recycler recycler, State state) { argument 954 mState = state; 1180 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) { argument 1181 saveContext(recycler, state); 1676 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { argument 1680 + " inPreLayout " + state.isPreLayout() 1681 + " didStructureChange " + state.didStructureChange() 1690 final int itemCount = state.getItemCount(); 1702 if (state 214 onTargetFound(View targetView, RecyclerView.State state, Action action) argument 1845 scrollHorizontallyBy(int dx, Recycler recycler, RecyclerView.State state) argument 1864 scrollVerticallyBy(int dy, Recycler recycler, RecyclerView.State state) argument 2719 onFocusSearchFailed(View focused, int direction, Recycler recycler, RecyclerView.State state) argument 2975 onRestoreInstanceState(Parcelable state) argument 2989 getRowCountForAccessibility(RecyclerView.Recycler recycler, RecyclerView.State state) argument 2998 getColumnCountForAccessibility(RecyclerView.Recycler recycler, RecyclerView.State state) argument 3007 onInitializeAccessibilityNodeInfoForItem(RecyclerView.Recycler recycler, RecyclerView.State state, View host, AccessibilityNodeInfoCompat info) argument 3032 performAccessibilityAction(Recycler recycler, State state, int action, Bundle args) argument 3103 onInitializeAccessibilityNodeInfo(Recycler recycler, State state, AccessibilityNodeInfoCompat info) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | Preference.java | 149 * called before the state of the Preference is about to be updated and 150 * before the state is persisted. 154 * @return True to update the state of the Preference with the new value. 522 * Makes sure the view (and any children) get the enabled state changed. 682 // Enabled state can change dependent preferences' states, so notify 725 * clickable 2) should not have the view set to the disabled state. 781 * update the preference's state with the new value. 871 * internal state is set. This allows the client to ignore the user value. 883 * user (but before the internal state has been updated). 894 * user (but before the internal state ha 1656 onRestoreInstanceState(Parcelable state) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 513 // initialize our drawing state 892 // Signal a refresh if a transaction modified the window state, 1273 // here we keep a copy of the drawing state (that is the state that's 1336 // (ie: in drawing state but not in current state) 1342 // in drawing state but not in current state 1360 const DisplayDeviceState& state(curr[j]); 1362 const sp<IBinder> state_binder = IInterface::asBinder(state 2070 setTransactionState( const Vector<ComposerState>& state, const Vector<DisplayState>& displays, uint32_t flags) argument [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 133 * will update our internal state, but in a separate thread will set the system 135 * will update the state and broadcast a change and in a separate thread later 446 // SCO audio state is not active 450 // SCO audio state is active or starting due to a request from AudioManager API 455 // SCO audio state is active due to an action in BT handsfree (either voice recognition or 476 // Current connection state indicated by bluetooth headset 559 public static final String CONNECT_INTENT_KEY_STATE = "state"; 647 // state on streams affected by ringer mode. 785 // Restore call state 1252 boolean state; 1637 setSystemAudioMute(boolean state) argument 2713 requestScoState(int state, int scoAudioMode) argument 2897 broadcastScoConnectionState(int state) argument 2902 onBroadcastScoConnectionState(int state) argument 2913 setBtScoDeviceConnectionState(BluetoothDevice btDevice, int state) argument 3592 WiredDeviceConnectionState(int type, int state, String address, String name, String caller) argument 3602 setWiredDeviceConnectionState(int type, int state, String address, String name, String caller) argument 3619 setBluetoothA2dpDeviceConnectionState(BluetoothDevice device, int state, int profile) argument 3912 mute(boolean state) argument 4330 onPersistSafeVolumeState(int state) argument 4613 onSetA2dpSinkConnectionState(BluetoothDevice btDevice, int state) argument 4677 onSetA2dpSourceConnectionState(BluetoothDevice btDevice, int state) argument 4764 checkSendBecomingNoisyIntent(int device, int state) argument 4800 sendDeviceConnectionIntent(int device, int state, String address, String deviceName) argument 4859 onSetWiredDeviceConnectionState(int device, int state, String address, String deviceName, String caller) argument 4925 configureHdmiPlugIntent(Intent intent, int state) argument 5717 safeMediaVolumeStateToString(Integer state) argument 6088 onDynPolicyMixStateUpdate(String regId, int state) argument [all...] |
/frameworks/base/services/print/java/com/android/server/print/ |
H A D | RemotePrintSpooler.java | 107 public final List<PrintJobInfo> getPrintJobInfos(ComponentName componentName, int state, argument 116 componentName, state, appId); 207 public final boolean setPrintJobState(PrintJobId printJobId, int state, String error) { argument 215 printJobId, state, error); 217 Slog.e(LOG_TAG, "Error setting print job state.", re); 219 Slog.e(LOG_TAG, "Error setting print job state.", te); 477 ComponentName componentName, int state, int appId) 480 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence); 476 getPrintJobInfos(IPrintSpooler target, ComponentName componentName, int state, int appId) argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | SoundTriggerHelper.java | 140 // Get the current call state synchronously for the first recognition. 142 // Register for call state changes when the first call to start recognition occurs. 275 // Also clear the internal state once the recognition has been stopped. 282 * Stops all recognitions active currently and clears the internal state. 342 public void onServiceStateChange(int state) { argument 343 if (DBG) Slog.d(TAG, "onServiceStateChange, state: " + state); 345 onServiceStateChangedLocked(SoundTrigger.SERVICE_STATE_DISABLED == state); 390 // This is handled via service state changes instead. 527 // Unregister from call state change 544 onCallStateChanged(int state, String arg1) argument [all...] |
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
H A D | AnimatedVectorDrawableCompat.java | 146 private AnimatedVectorDrawableCompat(Context context, AnimatedVectorDrawableCompatState state, argument 149 if (state != null) { 150 mAnimatedVectorState = state; 152 mAnimatedVectorState = new AnimatedVectorDrawableCompatState(context, state, mCallback, 229 protected boolean onStateChange(int[] state) { argument 230 return mAnimatedVectorState.mVectorDrawable.setState(state);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 194 RecyclerView.State state) { 496 RecyclerView.State state = new RecyclerView.State(); 498 state.mItemCount = 1000; 499 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); 503 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); 507 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); 511 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); 696 assertTrue("control against adding too many children due to bad layout state preparation." 732 public void onBeforeLayout(RecyclerView.Recycler recycler, RecyclerView.State state) { 733 if (!state 999 onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) argument 1113 onBeforeLayout(RecyclerView.Recycler recycler, RecyclerView.State state) argument 1116 onAfterLayout(RecyclerView.Recycler recycler, RecyclerView.State state) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 580 NetworkState[] state = null; 592 state = new NetworkState[] { buildWifi() }; 593 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 606 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 656 NetworkState[] state = null; 668 state = new NetworkState[] {}; 674 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 692 state = new NetworkState[] { buildWifi() }; 698 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 763 expect(mConnManager.getAllNetworkState()).andReturn(state) [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbDeviceManager.java | 62 * UsbDeviceManager manages USB state in device mode. 81 * The non-persistent property which stores the current USB actual state. 83 private static final String USB_STATE_PROPERTY = "sys.usb.state"; 92 "/sys/class/android_usb/android0/state"; 160 * Listens for uevent messages from the kernel to monitor the USB state 167 String state = event.get("USB_STATE"); 169 if (state != null) { 170 mHandler.updateState(state); 222 // make sure the ADB_ENABLED setting value matches the current state 300 // current USB state 356 updateState(String state) argument 380 waitForState(String state) argument [all...] |