/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
H A D | TopRow.java | 62 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { argument 64 Drawable icon = state.connectionIcon; 67 if (state.isWifi && icon == null) { 71 if (state.state == State.INCOMING || state.state == State.CALL_WAITING) { 75 if (!TextUtils.isEmpty(state.callSubject)) { 76 label = state.callSubject; 79 label = getLabelForIncoming(context, state); 126 getLabelForIncoming(Context context, PrimaryCallState state) argument 157 getLabelForDialing(Context context, PrimaryCallState state) argument 172 getConnectionLabel(PrimaryCallState state) argument 183 getLabelForVideoRequest(Context context, PrimaryCallState state) argument 203 isAccount(PrimaryCallState state) argument [all...] |
H A D | BottomRow.java | 75 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { argument 77 boolean isTimerVisible = state.state == State.ACTIVE; 78 boolean isForwardIconVisible = state.isForwardedNumber; 79 boolean isWorkIconVisible = state.isWorkCall; 80 boolean isHdIconVisible = state.isHdAudioCall && !isForwardIconVisible; 81 boolean isHdAttemptingIconVisible = state.isHdAttempting; 85 if (isIncoming(state) && primaryInfo.isSpam) { 89 } else if (state.state 143 isIncoming(PrimaryCallState state) argument [all...] |
/packages/providers/CallLogProvider/tests/src/com/android/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/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/apps/Dialer/java/com/android/incallui/videotech/utils/ |
H A D | VideoUtils.java | 27 public static boolean hasSentVideoUpgradeRequest(@SessionModificationState int state) { argument 28 return state == SessionModificationState.WAITING_FOR_UPGRADE_TO_VIDEO_RESPONSE 29 || state == SessionModificationState.UPGRADE_TO_VIDEO_REQUEST_FAILED 30 || state == SessionModificationState.REQUEST_REJECTED 31 || state == SessionModificationState.UPGRADE_TO_VIDEO_REQUEST_TIMED_OUT; 34 public static boolean hasReceivedVideoUpgradeRequest(@SessionModificationState int state) { argument 35 return state == SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
H A D | ProvidersAccess.java | 47 Collection<RootInfo> getMatchingRootsBlocking(State state); argument 51 RootInfo getDefaultRootBlocking(State state); argument 65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { argument 74 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { 79 if (state.action == State.ACTION_PICK_COPY_DESTINATION 86 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { 92 if (!state.showAdvanced && root.isAdvanced()) { 97 if (state.localOnly && !root.isLocalOnly()) { 102 if (state.directoryCopy && root.isDownloads()) { 108 if (state [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | ActivityConfig.java | 31 public boolean canSelectType(String docMimeType, int docFlags, State state) { argument 35 public boolean isDocumentEnabled(String docMimeType, int docFlags, State state) { argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
H A D | Config.java | 37 public boolean canSelectType(String docMimeType, int docFlags, State state) { argument 38 if (!isDocumentEnabled(docMimeType, docFlags, state)) { 46 if (state.action == ACTION_OPEN_TREE || state.action == ACTION_PICK_COPY_DESTINATION) { 57 public boolean isDocumentEnabled(String mimeType, int docFlags, State state) { argument 63 switch (state.action) { 72 if (isVirtual && state.openableOnly) { 77 return MimeTypes.mimeMatches(state.acceptMimes, mimeType);
|
/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/Launcher3/src/com/android/launcher3/compat/ |
H A D | PackageInstallerCompat.java | 55 public final int state; field in class:PackageInstallerCompat.PackageInstallInfo 59 this.state = STATUS_INSTALLING; 65 public PackageInstallInfo(String packageName, int state, int progress) { argument 66 this.state = state; 76 public static PackageInstallInfo fromState(int state, String packageName) { argument 77 return new PackageInstallInfo(packageName, state, 0 /* progress */);
|
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/ |
H A D | CheckboxWrapperView.java | 24 * A wrapper class for CheckBox that is required because the state is created by two different 25 * class loaders, which causes a crash. When the state and class are created by different class 26 * loaders, the default state will be restored instead of the saved state. 27 * Reflection cannot be used to recreate the state because the class that stores the state 46 public void onRestoreInstanceState(Parcelable state) { argument 47 // If the class loaders are different, just restore the default state. This is fine 48 // since we refetch the menus anyways and any state will be restored then. 49 if (state [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/Telecomm/src/com/android/server/telecom/ |
H A D | HandoverState.java | 20 * Defines handover state constants for calls undergoing handover. 41 public static String stateToString(int state) { argument 42 switch (state) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
H A D | State.java | 78 /** Current sort state */ 163 final State state = new State(); 164 state.action = in.readInt(); 165 state.acceptMimes = in.readStringArray(); 166 state.allowMultiple = in.readInt() != 0; 167 state.localOnly = in.readInt() != 0; 168 state.showDeviceStorageOption = in.readInt() != 0; 169 state.showAdvanced = in.readInt() != 0; 170 DurableUtils.readFromParcel(in, state.stack); 171 in.readMap(state [all...] |
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
H A D | EmergencyCallStateListenerTest.java | 48 * state changes to accepting emergency calls or in service. If it can not find a tower to camp onto 100 ServiceState state = new ServiceState(); 101 state.setState(ServiceState.STATE_IN_SERVICE); 109 new AsyncResult(null, state, null)).sendToTarget(); 127 ServiceState state = new ServiceState(); 128 state.setState(ServiceState.STATE_OUT_OF_SERVICE); 129 state.setEmergencyOnly(true); 131 when(mMockPhone.getServiceState()).thenReturn(state); 138 new AsyncResult(null, state, null)).sendToTarget(); 158 ServiceState state [all...] |
/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/Dialer/java/com/android/voicemail/impl/ |
H A D | VvmPhoneStateListener.java | 58 int state = serviceState.getState(); 59 if (state == mPreviousState 60 || (state != ServiceState.STATE_IN_SERVICE 62 // Only interested in state changes or transitioning into or out of "in service". 64 mPreviousState = state; 70 if (state == ServiceState.STATE_IN_SERVICE) { 102 mPreviousState = state;
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
H A D | ClusterInCallService.java | 32 * Monitors call state and reports it to the listeners that was registered using 61 private void doStateChanged(Call call, int state) { argument 63 Log.d(TAG, "doStateChanged, call: " + call + ", state: " + state); 66 mListener.onStateChanged(call, state); 96 public void onStateChanged(Call call, int state) { argument 97 Log.d(TAG, "PhoneCallback#onStateChanged, call: " + call + ", state: " + state); 100 service.doStateChanged(call, state);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestActivityConfig.java | 30 public boolean canSelectType(String docMimeType, int docFlags, State state) { argument 34 public boolean isDocumentEnabled(String docMimeType, int docFlags, State state) { argument
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
H A D | ActionHandlerTest.java | 72 mEnv.state, 95 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); 96 mEnv.state.stack.push(TestEnv.FOLDER_0); 104 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); 155 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, 169 assertEquals(stack, mEnv.state.stack); 190 mEnv.state.action = State.ACTION_CREATE; 204 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); 213 mEnv.state.action = State.ACTION_PICK_COPY_DESTINATION; 214 mEnv.state [all...] |
/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/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | MockedPowerHalService.java | 98 private synchronized void doSendState(int state, int param) { argument 99 int[] toSend = new int[] {state, param}; 124 public void setCurrentPowerState(PowerState state) { argument 125 setCurrentPowerState(state, true); 128 public void setCurrentPowerState(PowerState state, boolean notify) { argument 131 mCurrentPowerState = state; 135 listener.onApPowerStateChange(state);
|