/packages/apps/InCallUI/tests/src/com/android/incallui/ |
H A D | MockCallListWrapper.java | 46 final int state = (int) args[0]; 47 if (mCallSet.contains(state)) { 48 return getMockCall(state); 60 public void setHasCall(int state, boolean hasCall) { argument 62 mCallSet.add(state); 64 mCallSet.remove(state); 68 private static Call getMockCall(int state) { argument 69 return getMockCall(state, state != Call.State.SELECT_PHONE_ACCOUNT); 72 private static Call getMockCall(int state, boolea argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | DictionaryListInterfaceState.java | 25 * Helper class to maintain the interface state of word list preferences. 29 * when scrolling, the view is reused so it doesn't keep its state, which means we need to keep 44 final State state = mWordlistToState.get(wordlistId); 45 if (null == state) return false; 46 return state.mOpen; 50 final State state = mWordlistToState.get(wordlistId); 51 if (null == state) return MetadataDbHelper.STATUS_UNKNOWN; 52 return state.mStatus; 57 final State state = mWordlistToState.get(wordlistId); 58 newState = null == state [all...] |
/packages/providers/CallLogProvider/tests/src/com/android/providers/calllogbackup/ |
H A D | CallLogBackupAgentTest.java | 80 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); 82 assertEquals(state.version, CallLogBackupAgent.VERSION_NO_PREVIOUS_STATE); 83 assertEquals(state.callIds.size(), 0); 92 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); 94 assertEquals(1, state.version); 95 assertEquals(1, state.callIds.size()); 96 assertTrue(state.callIds.contains(101)); 106 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); 108 assertEquals(1, state.version); 109 assertEquals(2, state [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | StateManager.java | 38 private static final String KEY_MAIN = "activity-state"; 54 ActivityState state = null; 56 state = klass.newInstance(); 70 state.initialize(mActivity, data); 72 mStack.push(new StateEntry(data, state)); 73 state.onCreate(data, null); 74 if (mIsResumed) state.resume(); 80 ActivityState state = null; 82 state = klass.newInstance(); 86 state 165 finishState(ActivityState state) argument 176 finishState(ActivityState state, boolean fireOnPause) argument 333 StateEntry(Bundle data, ActivityState state) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | State.java | 17 package com.android.gallery3d.filtershow.state; 27 public State(State state) { argument 28 this(state.getText(), state.getType()); 40 public boolean equals(State state) { argument 42 != state.mFilterRepresentation.getFilterClass()) { 46 return mFilterRepresentation.equals(state.getFilterRepresentation());
|
H A D | StateAdapter.java | 17 package com.android.gallery3d.filtershow.state; 52 State state = getItem(position); 53 view.setState(state); 56 FilterRepresentation stateRep = state.getFilterRepresentation(); 67 public boolean contains(State state) { argument 69 if (state == getItem(i)) { 85 // we have the original state in addition 90 State state = getItem(i); 91 if (!state.equals(states.elementAt(i-1))) { 109 public void remove(State state) { argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
H A D | QuotedPrintableInputStream.java | 43 private byte state = 0; field in class:QuotedPrintableInputStream 128 switch (state) { 129 case 0: // start state, no bytes pending 132 break; // state remains 0 134 state = 1; 139 state = 2; 142 state = 3; 148 * Emit one = and stay in this state. 160 state = 0; 167 state [all...] |
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/ |
H A D | QuotedPrintableInputStream.java | 43 private byte state = 0; field in class:QuotedPrintableInputStream 128 switch (state) { 129 case 0: // start state, no bytes pending 132 break; // state remains 0 134 state = 1; 139 state = 2; 142 state = 3; 148 * Emit one = and stay in this state. 160 state = 0; 167 state [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
H A D | PackageInstallerCompat.java | 57 public int state; field in class:PackageInstallerCompat.PackageInstallInfo 64 public PackageInstallInfo(String packageName, int state, int progress) { argument 66 this.state = state;
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | CallUtils.java | 50 final int state = call.getState(); 51 return (state == Call.State.INCOMING) || (state == Call.State.CALL_WAITING); 62 final int state = call.getState(); 63 return Call.State.isDialing(state) || state == Call.State.CONNECTING 64 || state == Call.State.SELECT_PHONE_ACCOUNT;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapReceiver.java | 60 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); 61 in.putExtra(BluetoothAdapter.EXTRA_STATE, state); 62 if (V) Log.v(TAG,"***********state = " + state); 63 if ((state == BluetoothAdapter.STATE_TURNING_ON) 64 || (state == BluetoothAdapter.STATE_OFF)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | ShiftKeyState.java | 62 protected String toString(int state) { argument 63 switch (state) { 66 default: return super.toString(state);
|
/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | MemoryManager.java | 32 * Called when the app is experiencing a change in memory state. Modules 35 * @param state the new state, one of {@link MemoryManager#STATE_OK}, 38 public void onMemoryStateChanged(int state); argument
|
/packages/apps/Stk/src/com/android/stk/ |
H A D | StkAppInstaller.java | 61 int state = install ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED 64 if (((PackageManager.COMPONENT_ENABLED_STATE_ENABLED == state) && 67 ((PackageManager.COMPONENT_ENABLED_STATE_DISABLED == state) && 70 CatLog.d(LOG_TAG, "Need not change app state!!"); 72 CatLog.d(LOG_TAG, "Change app state[" + install + "]"); 74 pm.setComponentEnabledSetting(cName, state, PackageManager.DONT_KILL_APP); 76 CatLog.d(LOG_TAG, "Could not change STK app state");
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | MultiToggleImageButton.java | 40 * for each state. 43 * Each image in the referenced array represents a single integer state. 44 * Every time the user touches the button it gets set to next state in line, 46 * State wraps back to 0 on user touch when button is already at n-1 state. 50 * Listener interface for button state changes. 55 * @param state the new state the button is in 57 public abstract void stateChanged(View view, int state); argument 98 * Set the state change listener. 108 * all the operations required to change the state o 132 setState(int state) argument 142 setState(final int state, final boolean callListener) argument 152 setStateAnimatedInternal(final int state, final boolean callListener) argument 219 setStateInternal(int state, boolean callListener) argument 360 setImageByState(int state) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterProperties.java | 210 debugLog("Setting state to " + mState); 293 // state changes. 294 void onBondStateChanged(BluetoothDevice device, int state) argument 303 prop.setBondState(state); 305 if (state == BluetoothDevice.BOND_BONDED) { 311 } else if (state == BluetoothDevice.BOND_NONE) { 352 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument 353 if (!validateProfileConnectionState(state) || 355 // Previously, an invalid state was broadcast anyway, 356 // with the invalid state converte 385 validateProfileConnectionState(int state) argument 393 convertToAdapterState(int state) argument 408 updateCountersAndCheckForConnectionStateChange(int state, int prevState) argument 652 discoveryStateChangeCallback(int state) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
H A D | BodyDescriptor.java | 179 byte state = READY_FOR_NAME; 184 switch (state) { 187 state = READY_FOR_NAME; 193 state = ERROR; 200 state = IN_NAME; 206 state = ERROR; 208 state = READY_FOR_VALUE; 224 state = IN_QUOTED_VALUE; 228 state = IN_VALUE; 246 state [all...] |
/packages/services/Telephony/src/org/apache/james/mime4j/ |
H A D | BodyDescriptor.java | 179 byte state = READY_FOR_NAME; 184 switch (state) { 187 state = READY_FOR_NAME; 193 state = ERROR; 200 state = IN_NAME; 206 state = ERROR; 208 state = READY_FOR_VALUE; 224 state = IN_QUOTED_VALUE; 228 state = IN_VALUE; 246 state [all...] |
/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | ExternalViewerButton.java | 88 * Sets the current state of the button, which affects the visibility and image 91 public void setState(int state) { argument 92 mState = state; 94 if (state == CameraAppUI.BottomPanel.VIEWER_NONE) { 97 setImageResource(getViewButtonResource(state)); 120 * Gets the image resource for a specific state. 122 private int getViewButtonResource(int state) { argument 123 switch (state) {
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
H A D | VvmPhoneStateListener.java | 50 int state = serviceState.getState(); 51 if (state == mPreviousState || (state != ServiceState.STATE_IN_SERVICE 53 // Only interested in state changes or transitioning into or out of "in service". 55 mPreviousState = state; 59 if (state == ServiceState.STATE_IN_SERVICE) { 110 mPreviousState = state;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 195 // in English, state that a sentence terminator immediately following a quotation mark 243 // To find out, we will have a simple state machine with the following states : 277 int state = START; 280 switch (state) { 283 state = WORD; 287 state = NUMBER; 294 state = WORD; 296 state = PERIOD; 303 state = LETTER; 310 state [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
H A D | RawContactModifierTests.java | 216 final RawContactDelta state = getRawContact(TEST_ID); 217 RawContactModifier.insertChild(state, kindPhone, typeHome); 218 RawContactModifier.insertChild(state, kindPhone, typeWork); 221 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 227 RawContactModifier.insertChild(state, kindPhone, typeHome); 230 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 236 RawContactModifier.insertChild(state, kindPhone, typeHome); 237 RawContactModifier.insertChild(state, kindPhone, typeHome); 240 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 259 final RawContactDelta state [all...] |
/packages/apps/Camera2/src/com/android/camera/async/ |
H A D | Listenable.java | 32 public Listenable(ConcurrentState<T> state, MainThread mainThread) { argument 33 mState = state;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | RawContactEditorView.java | 57 * source {@link RawContact} can be swapped out. Any state-based changes, such as 159 protected void onRestoreInstanceState(Parcelable state) { argument 160 if (state instanceof Bundle) { 161 Bundle bundle = (Bundle) state; 165 super.onRestoreInstanceState(state); 169 * Set the internal state for this view, given a current 170 * {@link RawContactDelta} state and the {@link AccountType} that 171 * apply to that state. 174 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, argument 177 mState = state; [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
H A D | PanService.java | 172 log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); 175 convertHalState(cs.state), cs.local_role, cs.remote_role); 233 // TODO(BT) have a variable marking the on/off state 293 // TODO(BT) have a variable marking the on/off state 306 //drop any existing panu or pan-nap connection when changing the tethering state 327 for (int state : states) { 328 if (state == panDeviceState) { 338 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { argument 340 this.state 346 int state; field in class:PanService.ConnectState 351 onConnectStateChanged(byte[] address, int state, int error, int local_role, int remote_role) argument 361 onControlStateChanged(int local_role, int state, int error, String ifname) argument 384 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int local_role, int remote_role) argument 587 BluetoothPanDevice(int state, String ifaceAddr, String iface, int localRole) argument [all...] |