Searched refs:state (Results 401 - 425 of 1016) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java315 * and other related state. It is a fine-grained lock that should only be held
561 // Lock for state used when installing and doing other long running
569 // as the lock for the global state. Methods that must be called with
1092 // XML tags for backup/restore of various bits of state
1685 final PackageVerificationState state = mPendingVerification.get(verificationId);
1687 if ((state != null) && !state.timeoutExtended()) {
1688 final InstallArgs args = state.getInstallArgs();
1698 state.setVerifierResponse(Binder.getCallingUid(),
1702 state
[all...]
H A DPackageSettingBase.java40 * Indicates the state of installation. Used by PackageManager to figure out
41 * incomplete installations. Say a package is being installed (the state is
44 * PackageManager will no longer maintain state information associated with
264 PackageUserState state = userState.get(userId);
265 if (state == null) {
266 state = new PackageUserState();
267 userState.put(userId, state);
269 return state;
273 PackageUserState state = userState.get(userId);
274 if (state !
280 setEnabled(int state, int userId, String callingPackage) argument
[all...]
H A DShortcutService.java362 Slog.d(TAG, "onUidStateChanged: uid=" + uid + " state=" + procState);
382 // IUidObserver doesn't report the state of SYSTEM, but it always has bound services,
472 /** Return the base state file name */
480 * Init the instance. (load the state file, etc)
859 scheduleSaveInner(UserHandle.USER_NULL); // Special case -- use USER_NULL for base state.
891 if (userId == UserHandle.USER_NULL) { // USER_NULL for base state.
953 /** Return the per-user state. */
974 /** Return the per-user per-package state. */
2294 pw.println(" UID state:");
2298 final int state
[all...]
H A DUserManagerService.java205 // Short-term lock for internal state, when interaction/sync with PM is not required
1325 // Note this method doesn't touch any state, meaning it doesn't require mRestrictionsLock
2366 // We set this to a guest user that is to be removed. This is a temporary state
2464 // Let other services shutdown any activity and clean up their state before completely
2484 // Clean up any ActivityManager state
3206 pw.println(" Started users state: " + mUserStates);
3417 int state = mUserStates.get(userId, -1);
3418 return (state == UserState.STATE_RUNNING_UNLOCKING)
3419 || (state == UserState.STATE_RUNNING_UNLOCKED);
/frameworks/base/services/core/java/com/android/server/policy/
H A DBarController.java34 * Controls state/behavior specific to a system bar window.
154 final int state = computeStateLw(wasVis, wasAnim, mWin, change);
155 final boolean stateChanged = updateStateLw(state);
182 private boolean updateStateLw(final int state) { argument
183 if (state != mState) {
184 mState = state;
185 if (DEBUG) Slog.d(mTag, "mState: " + StatusBarManager.windowStateToString(state));
191 statusbar.setWindowState(mStatusBarManagerId, state);
267 private void setTransientBarState(int state) { argument
268 if (mWin != null && state !
286 transientBarStateToString(int state) argument
[all...]
H A DGlobalActions.java149 // get notified of phone state changes
216 // Simple toggle style if there's no vibrator, otherwise use a tri-state
247 // In ECM mode airplane state cannot be changed
734 * A single press action maintains no state, just responds to a press
919 * Implementations may override this if their state can be in on of the intermediate
930 public void updateState(State state) { argument
931 mState = state;
1106 // Let the service state callbacks handle the state.
1127 intent.putExtra("state", o
[all...]
/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java105 // Message: Sent when a user activity timeout occurs to update the power state.
107 // Message: Sent when the device enters or exits a dreaming or dozing state.
118 // Dirty bit: actual display power state was updated asynchronously
128 // Dirty bit: battery state changed
130 // Dirty bit: proximity state changed
132 // Dirty bit: dock state changed
137 // Summarizes the state of all active wakelocks.
147 // Summarizes the user activity state.
198 // A bitfield that indicates what parts of the power state have
203 // This is distinct from the screen power state, whic
[all...]
/frameworks/base/services/core/java/com/android/server/statusbar/
H A DStatusBarManagerInternal.java48 void setWindowState(int window, int state); argument
H A DStatusBarManagerService.java307 public void setWindowState(int window, int state) {
310 mBar.setWindowState(window, state);
464 // Ensure state for the current user is applied, even if passed a non-current user.
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java285 // Process pending state changes
866 * Update audio configuration (source, sink, patch) all up to current state.
1119 void onStateChanged(String inputId, int state); argument
1140 int state = msg.arg1;
1141 mListener.onStateChanged(inputId, state);
H A DTvInputManagerService.java460 private void clearSessionAndNotifyClientLocked(SessionState state) { argument
461 if (state.client != null) {
463 state.client.onSessionReleased(state.seq);
469 UserState userState = getOrCreateUserStateLocked(state.userId);
471 if (state.sessionToken == sessionState.hardwareSessionToken) {
472 releaseSessionLocked(sessionState.sessionToken, Process.SYSTEM_UID, state.userId);
480 removeSessionStateLocked(state.sessionToken, state.userId);
490 for (SessionState state
819 notifyInputStateChangedLocked(UserState userState, String inputId, int state, ITvInputManagerCallback targetCallback) argument
863 setStateLocked(String inputId, int state, int userId) argument
2100 private int state = INPUT_STATE_CONNECTED; field in class:TvInputManagerService.TvInputState
2736 onStateChanged(String inputId, int state) argument
[all...]
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java75 // Amount of time the TwilightService will stay locked in an override state before switching
139 private void setLockedState(TwilightState state) { argument
141 // Make sure we aren't locked so we can set the state.
143 setTwilightState(state);
144 // Make sure we leave the state locked, so it cant be changed.
146 // TODO: Don't bother updating state when locked.
150 private void setTwilightState(TwilightState state) { argument
156 if (!Objects.equal(mTwilightState, state)) {
158 Slog.d(TAG, "Twilight state changed: " + state);
[all...]
/frameworks/base/services/core/java/com/android/server/vr/
H A DVrManagerService.java75 * Service tracking whether VR mode is active, and notifying listening services of state changes.
77 * Services running in system server may modify the state of VrManagerService via the interface in
81 * Device vendors may choose to receive VR state changes by implementing the VR mode HAL, e.g.:
136 boolean state = (msg.arg1 == 1);
141 mRemoteCallbacks.getBroadcastItem(i).onVrStateChanged(state);
271 // If there is a pending state change, we'd better deal with that first
320 pw.println("Previous state transitions:\n");
473 int state = enabled ?
480 // to set its enabled state. This is to prevent PackageManager from throwing
485 pm.setApplicationEnabledSetting(componentName.getPackageName(), state ,
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDimLayerController.java51 final DimLayerState state = getOrCreateDimLayerState(dimLayerUser);
52 final boolean previousFullscreen = state.dimLayer != null
53 && state.dimLayer == mSharedFullScreenDimLayer;
65 if (state.dimLayer != null) {
67 newDimLayer = state.dimLayer;
76 } else if (state.dimLayer != null) {
77 state.dimLayer.destroySurface();
80 newDimLayer = (state.dimLayer == null || previousFullscreen)
83 : state.dimLayer;
87 state
[all...]
H A DWindowManagerService.java402 * This is also used as the lock for all of our state.
753 // Indicates the first event to check for button state.
820 if (DEBUG_DRAG) Slog.d(TAG_WM, "Drag ended; tearing down state");
1019 // Track changes to DevicePolicyManager state so we can enable/disable keyguard.
2354 // TODO: We are overloading mAnimatingExit flag to prevent the window state from
2917 // reassign them at this point if the IM window state gets shuffled
3038 // caller's object so they see the same state.
3433 // (which holds locks while updating the input dispatcher state) and the activity manager
3688 // state mismatches the activity manager's, update it,
4193 // Propagate other interesting state betwee
[all...]
H A DWindowState.java681 // want to apply any more changes to it, so it remains in this state until new window
1180 * "hidden behind keyguard" state rather than overloading mPolicyVisibility. Ungh.
1205 * The same as isVisible(), but follows the current hidden state of the associated app token,
1206 * not the pending requested hidden state.
1261 * Whether this window's drawn state might affect the drawn states of the app token.
1784 // also reset drag resizing state, because the owner can't do it
1930 public void setAppOpVisibilityLw(boolean state) { argument
1931 if (mAppOpVisibility != state) {
1932 mAppOpVisibility = state;
1933 if (state) {
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_lights_LightsService.cpp110 light_state_t state; local
118 memset(&state, 0, sizeof(light_state_t));
131 state.color = colorARGB;
132 state.flashMode = flashMode;
133 state.flashOnMS = onMS;
134 state.flashOffMS = offMS;
137 state.brightnessMode = brightnessMode;
141 devices->lights[light]->set_light(devices->lights[light], &state);
H A Dcom_android_server_location_GnssLocationProvider.cpp1235 SET(State, static_cast<int32_t>(measurement->state));
1276 SET(State, static_cast<int32_t>(measurement->state));
/frameworks/base/services/print/java/com/android/server/print/
H A DRemotePrintService.java617 // We did a best effort to get to the last state if we crashed.
749 public boolean setPrintJobState(PrintJobId printJobId, int state, String error) { argument
754 return service.mSpooler.setPrintJobState(printJobId, state, error);
H A DRemotePrintSpooler.java151 public final List<PrintJobInfo> getPrintJobInfos(ComponentName componentName, int state, argument
160 componentName, state, appId);
251 public final boolean setPrintJobState(PrintJobId printJobId, int state, String error) { argument
259 printJobId, state, error);
261 Slog.e(LOG_TAG, "Error setting print job state.", re);
263 Slog.e(LOG_TAG, "Error setting print job state.", te);
729 ComponentName componentName, int state, int appId)
732 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence);
728 getPrintJobInfos(IPrintSpooler target, ComponentName componentName, int state, int appId) argument
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DAccessibilityManagerServiceTest.java72 // Reset the state.
569 public void setState(int state) { argument
570 mState = state;
578 * Ensures accessibility is in a given state by writing the state to the
582 * @param enabled The accessibility state to write to the settings.
672 * arguments) within the {@link #TIMEOUT_BINDER_CALL}. The verified state is
H A DConnectivityServiceTest.java102 // reflect the state of our test ConnectivityService.
317 * Transition this NetworkAgent to CONNECTED state with NET_CAPABILITY_INTERNET.
1057 void expectCallback(CallbackState state) { argument
1058 expectCallback(state, null);
1061 void expectCallback(CallbackState state, MockNetworkAgent mockAgent) { argument
1063 assertEquals(state, mLastCallback);
H A DMountServiceTests.java52 public int state = -1; field in class:MountServiceTests.ObbObserver
56 public void onObbStateChange(String path, int state) { argument
57 Log.d(TAG, "Received message. path=" + path + ", state=" + state);
60 this.state = state;
67 assertTrue("Expected ObbObserver to have received a state change.", done);
72 assertTrue("Expected ObbObserver to have received a state change.", done);
73 return state;
78 this.state
[all...]
H A DNetworkPolicyManagerServiceTest.java580 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/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java1532 // Set current call state of device to ringing.
1542 // Set current call state of device to dialing/active.
1552 // Set current call state of device to idle.
1747 MoreAsserts.assertContainsRegex("change provisioning state unless a .* owner is set",
1821 MoreAsserts.assertContainsRegex("Cannot move to user provisioning state",
1837 MoreAsserts.assertContainsRegex("Cannot move to user provisioning state",
1844 for (int state : states) {
1845 dpm.setUserProvisioningState(state, userId);
1846 assertEquals(state, dpm.getUserProvisioningState());

Completed in 417 milliseconds

<<11121314151617181920>>