/frameworks/base/services/java/com/android/server/location/ |
H A D | GpsLocationProvider.java | 520 public void updateNetworkState(int state, NetworkInfo info) { argument 521 sendMessage(UPDATE_NETWORK_STATE, state, info); 524 private void handleUpdateNetworkState(int state, NetworkInfo info) { argument 525 mNetworkAvailable = (state == LocationProvider.AVAILABLE);
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 351 // TODO: traverse existing processes to know foreground state, or have 352 // activitymanager dispatch current state when new observer attached. 398 // listen for wifi state changes to catch metered hint 568 * Receiver that watches {@link WifiInfo} state changes to infer metered 569 * state. Ignores hints when policy is user-defined. 598 // metered state. 682 * current device state, such as when 989 for (NetworkState state : states) { 991 if (state.networkInfo.isConnected()) { 992 final String iface = state 1551 getNetworkQuotaInfo(NetworkState state) argument 1564 getNetworkQuotaInfoUnchecked(NetworkState state) argument 1594 isNetworkMetered(NetworkState state) argument [all...] |
H A D | NetworkStatsService.java | 827 public void onDataConnectionStateChanged(int state, int networkType) { 828 final boolean stateChanged = state != mLastPhoneState; 832 // networkType changed without a state change, which means we 842 mLastPhoneState = state; 891 for (NetworkState state : states) { 892 if (state.networkInfo.isConnected()) { 894 final String iface = state.linkProperties.getInterfaceName(); 902 ident.add(NetworkIdentity.buildNetworkIdentity(mContext, state)); 905 if (isNetworkTypeMobile(state.networkInfo.getType())) {
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageManagerService.java | 309 // Lock for state used when installing and doing other long running 327 // as the lock for the global state. Methods that must be called with 839 final PackageVerificationState state = mPendingVerification.get(verificationId); 841 if ((state != null) && !state.timeoutExtended()) { 842 final InstallArgs args = state.getInstallArgs(); 851 state.setVerifierResponse(Binder.getCallingUid(), 855 state.getInstallArgs().getUser()); 864 state.getInstallArgs().getUser()); 875 final PackageVerificationState state [all...] |
H A D | PackageSettingBase.java | 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 176 PackageUserState state = userState.get(userId); 177 if (state == null) { 178 state = new PackageUserState(); 179 userState.put(userId, state); 181 return state; 185 PackageUserState state = userState.get(userId); 186 if (state ! 192 setEnabled(int state, int userId) argument [all...] |
/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 48 * Controls the power state of the display. 54 * In particular, it does not share any state and it only communicates 79 // screen state returns. Playing the animation can also be somewhat slow. 237 // The important parts are mainly the screen state. Brightness changes may occur 242 // Set to true if a power state update is required. 246 /* The following state must only be accessed by the handler thread. */ 248 // The currently requested power state. 249 // The power controller will progressively update its internal state to match 250 // the requested power state. Initially null until the first update. 253 // The current power state 1235 proximityToString(int state) argument 1248 wantScreenOn(int state) argument [all...] |
/frameworks/base/services/java/com/android/server/usb/ |
H A D | UsbDeviceManager.java | 62 * UsbDeviceManager manages USB state in device mode. 76 "/sys/class/android_usb/android0/state"; 132 * Listens for uevent messages from the kernel to monitor the USB state 139 String state = event.get("USB_STATE"); 141 if (state != null) { 142 mHandler.updateState(state); 201 // make sure the ADB_ENABLED setting value matches the current state 300 // current USB state 345 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); 346 updateState(state); 401 updateState(String state) argument 425 waitForState(String state) argument [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 333 * This is also used as the lock for all of our state. 709 if (DEBUG_DRAG) Slog.d(TAG, "Drag ended; tearing down state"); 826 // Track changes to DevicePolicyManager state so we can enable/disable keyguard. 1837 // state. 2872 // caller's object so they see the same state. 2958 // reassign them at this point if the IM window state gets shuffled 3744 // (which holds locks while updating the input dispatcher state) and the activity manager 3941 // state mismatches the activity manager's, update it, 4291 // Propagate other interesting state between the 4581 // Already in requested state, do [all...] |
H A D | WindowStateAnimator.java | 139 static String drawStateToString(int state) { argument 140 switch (state) { 146 default: return Integer.toString(state); 247 // Save the animation state as it was before this step so WindowManagerService can tell if 447 Slog.v(TAG, "Draw state now committed in " + mWin);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_LightsService.cpp | 110 light_state_t state; local 116 memset(&state, 0, sizeof(light_state_t)); 117 state.color = colorARGB; 118 state.flashMode = flashMode; 119 state.flashOnMS = onMS; 120 state.flashOffMS = offMS; 121 state.brightnessMode = brightnessMode; 125 devices->lights[light]->set_light(devices->lights[light], &state);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | AccessibilityManagerServiceTest.java | 554 public void setState(int state) { argument 555 mState = state; 563 * Ensures accessibility is in a given state by writing the state to the 567 * @param enabled The accessibility state to write to the settings. 656 * arguments) within the {@link #TIMEOUT_BINDER_CALL}. The verified state is
|
H A D | MountServiceTests.java | 64 public int state = -1; field in class:MountServiceTests.ObbObserver 68 public void onObbStateChange(String path, int state) { argument 69 Log.d(TAG, "Received message. path=" + path + ", state=" + state); 72 this.state = state; 79 assertTrue("Expected ObbObserver to have received a state change.", done); 84 assertTrue("Expected ObbObserver to have received a state change.", done); 85 return state; 90 this.state [all...] |
H A D | NetworkPolicyManagerServiceTest.java | 561 NetworkState[] state = null; 573 state = new NetworkState[] { buildWifi() }; 574 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 587 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 637 NetworkState[] state = null; 649 state = new NetworkState[] {}; 655 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 673 state = new NetworkState[] { buildWifi() }; 679 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 744 expect(mConnManager.getAllNetworkState()).andReturn(state) [all...] |
H A D | NetworkStatsServiceTest.java | 185 // network state, and poll any existing interfaces before updating. 239 // network state, and poll any existing interfaces before updating. 330 // network state, and poll any existing interfaces before updating. 891 private void expectNetworkState(NetworkState... state) throws Exception { argument 892 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 894 final LinkProperties linkProp = state.length > 0 ? state[0].linkProperties : null;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageVerificationStateTest.java | 32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); 35 state.isVerificationComplete()); 37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); 40 state.isVerificationComplete()); 43 state.isInstallAllowed()); 47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); 50 state.isVerificationComplete()); 52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); 55 state.isVerificationComplete()); 58 state [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 1254 int state = NANP_STATE_DIGIT; 1260 if (numDigits == 0 || state == NANP_STATE_PLUS) { 1261 state = NANP_STATE_ONE; 1274 if (state == NANP_STATE_PLUS) { 1278 } else if (state == NANP_STATE_ONE) { 1281 } else if (state != NANP_STATE_DASH && (numDigits == 3 || numDigits == 6)) { 1285 state = NANP_STATE_DIGIT; 1290 state = NANP_STATE_DASH; 1296 state = NANP_STATE_PLUS; 2247 int state [all...] |
H A D | PhoneStateListener.java | 34 * on the device, including service state, signal strength, message 37 * Override the methods for the state that you wish to receive updates for, and 55 * Listen for changes to the network service state (cellular). 115 * Listen for changes to the device call state. 124 * Listen for changes to the data connection state (cellular). 172 * Callback invoked when device service state changes. 219 * Callback invoked when device call state changes. 225 public void onCallStateChanged(int state, String incomingNumber) { argument 230 * Callback invoked when connection state changes. 237 public void onDataConnectionStateChanged(int state) { argument 244 onDataConnectionStateChanged(int state, int networkType) argument [all...] |
H A D | ServiceState.java | 25 * Contains phone state and service related information. 30 * <li>Service state: IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY, POWER_OFF 170 * @param s Source service state 249 * Get current service state of phone 487 private void setNullState(int state) { argument 488 mState = state; 513 public void setState(int state) { argument 514 mState = state; 595 mState = m.getInt("state"); 611 * Set intent notifier Bundle based on service state 634 setRadioTechnology(int state) argument [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | IPhoneStateListener.aidl | 32 void onCallStateChanged(int state, String incomingNumber); 33 void onDataConnectionStateChanged(int state, int networkType);
|
H A D | ITelephonyRegistry.aidl | 31 void notifyCallState(int state, String incomingNumber); 32 void notifyServiceState(in ServiceState state); 36 void notifyDataActivity(int state); 37 void notifyDataConnection(int state, boolean isDataConnectivityPossible,
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DatePicker.java | 140 * subtract by one to ensure our internal state is always 0-11 380 protected void onRestoreInstanceState(Parcelable state) { argument 381 SavedState ss = (SavedState) state; 392 * Initialize the state. 404 * Initialize the state. 429 /* The month display uses 1-12 but our internal state stores it
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
H A D | TrackerService.java | 71 // Handlers and Receivers for phone and network state 250 // stop cell state listener 410 int state = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 414 switch (state) { 429 "state = " + stateString);
|
/frameworks/base/native/android/ |
H A D | storage_manager.cpp | 45 const int32_t state); 105 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { argument 121 target->cb(filename, state, target->data); 166 void ObbActionListener::onObbResult(const android::String16& filename, const int32_t nonce, const int32_t state) { argument 167 mStorageManager->fireCallback(String8(filename).string(), nonce, state);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 70 // Versioning of the state file. Increment this version 71 // number any time the set of state items is altered. 83 private static final int STATE_SIZE = 6; // The current number of state items 346 // restore the previous WIFI state. 511 // retain the previous WIFI state. 934 int state = mWfm.getWifiState(); 936 return state;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | CommandQueue.java | 87 public void disable(int state); argument 148 public void disable(int state) { argument 151 mHandler.obtainMessage(MSG_DISABLE, state, 0, null).sendToTarget();
|