Lines Matching refs:state

37      * Indicates the state of installation. Used by PackageManager to figure out
38 * incomplete installations. Say a package is being installed (the state is
41 * PackageManager will no longer maintain state information associated with
182 PackageUserState state = userState.get(userId);
183 if (state == null) {
184 state = new PackageUserState();
185 userState.put(userId, state);
187 return state;
191 PackageUserState state = userState.get(userId);
192 if (state != null) {
193 return state;
198 void setEnabled(int state, int userId, String callingPackage) {
200 st.enabled = state;
275 PackageUserState state = modifyUserState(userId);
276 state.enabled = enabled;
277 state.installed = installed;
278 state.stopped = stopped;
279 state.notLaunched = notLaunched;
280 state.blocked = blocked;
281 state.lastDisableAppCaller = lastDisableAppCaller;
282 state.enabledComponents = enabledComponents;
283 state.disabledComponents = disabledComponents;
313 PackageUserState state = modifyUserState(userId);
314 if (disabled && state.disabledComponents == null) {
315 state.disabledComponents = new HashSet<String>(1);
317 if (enabled && state.enabledComponents == null) {
318 state.enabledComponents = new HashSet<String>(1);
320 return state;
332 PackageUserState state = modifyUserStateComponents(userId, false, true);
333 boolean changed = state.disabledComponents != null
334 ? state.disabledComponents.remove(componentClassName) : false;
335 changed |= state.enabledComponents.add(componentClassName);
340 PackageUserState state = modifyUserStateComponents(userId, true, false);
341 boolean changed = state.enabledComponents != null
342 ? state.enabledComponents.remove(componentClassName) : false;
343 changed |= state.disabledComponents.add(componentClassName);
348 PackageUserState state = modifyUserStateComponents(userId, true, true);
349 boolean changed = state.disabledComponents != null
350 ? state.disabledComponents.remove(componentClassName) : false;
351 changed |= state.enabledComponents != null
352 ? state.enabledComponents.remove(componentClassName) : false;
357 PackageUserState state = readUserState(userId);
358 if (state.enabledComponents != null && state.enabledComponents.contains(componentName)) {
360 } else if (state.disabledComponents != null
361 && state.disabledComponents.contains(componentName)) {