Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 930) sorted by relevance

12345678910>>...38

/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java32 import com.android.incallui.call.state.DialerCallState;
67 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
69 Drawable icon = state.connectionIcon(); in getInfo()
72 if (state.isWifi() && icon == null) { in getInfo()
76 if (state.state() == DialerCallState.INCOMING in getInfo()
77 || state.state() == DialerCallState.CALL_WAITING) { in getInfo()
81 if (!TextUtils.isEmpty(state.callSubject())) { in getInfo()
82 label = state.callSubject(); in getInfo()
85 label = getLabelForIncoming(context, state); in getInfo()
92 } else if (VideoUtils.hasSentVideoUpgradeRequest(state.sessionModificationState()) in getInfo()
[all …]
DBottomRow.java22 import com.android.incallui.call.state.DialerCallState;
72 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
74 boolean isTimerVisible = state.state() == DialerCallState.ACTIVE; in getInfo()
75 boolean isForwardIconVisible = state.isForwardedNumber(); in getInfo()
76 boolean isWorkIconVisible = state.isWorkCall(); in getInfo()
77 boolean isHdIconVisible = state.isHdAudioCall() && !isForwardIconVisible; in getInfo()
78 boolean isHdAttemptingIconVisible = state.isHdAttempting(); in getInfo()
82 if (isIncoming(state) && primaryInfo.isSpam()) { in getInfo()
86 } else if (state.state() == DialerCallState.DISCONNECTING) { in getInfo()
92 } else if (state.state() == DialerCallState.DISCONNECTED) { in getInfo()
[all …]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java80 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); in testReadState_NoCall() local
82 assertEquals(state.version, CallLogBackupAgent.VERSION_NO_PREVIOUS_STATE); in testReadState_NoCall()
83 assertEquals(state.callIds.size(), 0); in testReadState_NoCall()
92 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); in testReadState_OneCall() local
94 assertEquals(1, state.version); in testReadState_OneCall()
95 assertEquals(1, state.callIds.size()); in testReadState_OneCall()
96 assertTrue(state.callIds.contains(101)); in testReadState_OneCall()
106 CallLogBackupState state = mCallLogBackupAgent.readState(mDataInput); in testReadState_MultipleCalls() local
108 assertEquals(1, state.version); in testReadState_MultipleCalls()
109 assertEquals(2, state.callIds.size()); in testReadState_MultipleCalls()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DStateManager.java116 public boolean isInStableState(STATE_TYPE state) { in isInStableState() argument
117 return mState == state && mCurrentStableState == state in isInStableState()
118 && (mConfig.targetState == null || mConfig.targetState == state); in isInStableState()
124 public void goToState(STATE_TYPE state) { in goToState() argument
125 goToState(state, shouldAnimateStateChange()); in goToState()
131 public void goToState(STATE_TYPE state, boolean animated) { in goToState() argument
132 goToState(state, animated, 0, null); in goToState()
142 public void goToState(STATE_TYPE state, boolean animated, Runnable onCompleteRunnable) { in goToState() argument
143 goToState(state, animated, 0, onCompleteRunnable); in goToState()
149 public void goToState(STATE_TYPE state, long delay, Runnable onCompleteRunnable) { in goToState() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java54 ActivityState state = null; in startState() local
56 state = klass.newInstance(); in startState()
70 state.initialize(mActivity, data); in startState()
72 mStack.push(new StateEntry(data, state)); in startState()
73 state.onCreate(data, null); in startState()
74 if (mIsResumed) state.resume(); in startState()
80 ActivityState state = null; in startStateForResult() local
82 state = klass.newInstance(); in startStateForResult()
86 state.initialize(mActivity, data); in startStateForResult()
87 state.mResult = new ActivityState.ResultEntry(); in startStateForResult()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java209 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypes() local
210 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
211 RawContactModifier.insertChild(state, kindPhone, typeWork); in testValidTypes()
214 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
220 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
223 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
229 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
230 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
233 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
254 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypesWhenUpdating() local
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java78 mEnv.state, in setUp()
139 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
140 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
141 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
158 assertEquals(2, mEnv.state.stack.size()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
159 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
160 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
186 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
187 assertEquals(TestEnv.FILE_IN_ARCHIVE, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
188 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java96 mEnv.state, in setUp()
119 State state, in TestableActionHandler() argument
128 super(activity, state, providers, docs, searchMgr, executors, injector, lastAccessed, in TestableActionHandler()
147 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
148 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded()
156 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
194 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
208 assertEquals(stack, mEnv.state.stack); in testInitLocation_RestoresLastAccessedStack()
229 mEnv.state.action = State.ACTION_OPEN_TREE; in testInitLocation_DefaultToDeviceRoot_ActionOpenTree()
239 mEnv.state.action = State.ACTION_OPEN_TREE; in testInitLocation_DefaultToDeviceRoot_ActionOpenTree_RootDoesNotSupportChildren()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java405 void setState(int state) { in setState() argument
406 debugLog("Setting state to " + BluetoothAdapter.nameForState(state)); in setState()
407 mState = state; in setState()
532 void onBondStateChanged(BluetoothDevice device, int state) { in onBondStateChanged() argument
543 prop.setBondState(state); in onBondStateChanged()
545 if (state == BluetoothDevice.BOND_BONDED) { in onBondStateChanged()
551 } else if (state == BluetoothDevice.BOND_NONE) { in onBondStateChanged()
598 int state = connIntent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in sendConnectionStateChange() local
601 + prevState + " -> " + state); in sendConnectionStateChange()
602 BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_CONNECTION_STATE_CHANGED, state, in sendConnectionStateChange()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersAccess.java50 Collection<RootInfo> getMatchingRootsBlocking(State state); in getMatchingRootsBlocking() argument
54 RootInfo getDefaultRootBlocking(State state); in getDefaultRootBlocking() argument
68 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() argument
77 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { in getMatchingRoots()
82 if (state.action == State.ACTION_PICK_COPY_DESTINATION in getMatchingRoots()
89 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { in getMatchingRoots()
95 if (state.action == State.ACTION_OPEN_TREE && root.isRecents()) { in getMatchingRoots()
101 if (state.localOnly && !root.isLocalOnly()) { in getMatchingRoots()
106 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots()
111 if (state.action == State.ACTION_GET_CONTENT && root.isEmpty()) { in getMatchingRoots()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java75 public void setState(State state) { in setState() argument
76 if (DEBUG) Log.d(TAG, "Setting state=" + state); in setState()
77 mPrefs.edit().putString(STATE_KEY, state.name()).apply(); in setState()
121 State state = getState(); in request() local
123 if (DEBUG) Log.d(TAG, "request() state=" + state); in request()
125 if (state.isTerminal()) { in request()
126 listener.onP2pPermissionComplete(state == State.ALLOWED); in request()
181 State state = getState(); in listenForPreferenceChanges()
182 if (state.isTerminal() || state == State.DENIED) { in listenForPreferenceChanges()
183 listener.onP2pPermissionComplete(state == State.ALLOWED); in listenForPreferenceChanges()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java88 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() argument
90 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert()
91 final boolean validTypes = hasValidTypes(state, kind); in canInsert()
97 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() argument
99 return (getValidTypes(state, kind, null, true, null, true).size() > 0); in hasValidTypes()
112 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument
114 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0; in ensureKindExists()
119 return state.getMimeEntries(mimeType).get(0); in ensureKindExists()
122 final ValuesDelta child = insertChild(state, kind); in ensureKindExists()
147 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes() argument
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt56 private val state: SavedStateHandle, in <lambda>() constant in com.android.permissioncontroller.permission.ui.model.PermissionAppsViewModel
68 val shouldShowSystemLiveData = state.getLiveData(SHOULD_SHOW_SYSTEM_KEY, false) in <lambda>()
69 val hasSystemAppsLiveData = state.getLiveData(HAS_SYSTEM_APPS_KEY, true) in <lambda>()
70 val showAllowAlwaysStringLiveData = state.getLiveData(SHOW_ALWAYS_ALLOWED, false) in <lambda>()
74 if (showSystem != state.get(SHOULD_SHOW_SYSTEM_KEY)) { in <lambda>()
75 state.set(SHOULD_SHOW_SYSTEM_KEY, showSystem) in <lambda>()
80 get() = state.get(CREATION_LOGGED_KEY) ?: false in <lambda>()
81 set(value) = state.set(CREATION_LOGGED_KEY, value) in <lambda>()
124 val showSystem: Boolean = state.get(SHOULD_SHOW_SYSTEM_KEY) ?: false in <lambda>()
139 if (hasSystem != state.get(HAS_SYSTEM_APPS_KEY)) { in <lambda>()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java57 private int state = STATE_IDLE; field in FocusOverlayManager
172 if (state == STATE_FOCUSING_SNAP_ON_FINISH) { in onAutoFocus()
177 state = STATE_SUCCESS; in onAutoFocus()
179 state = STATE_FAIL; in onAutoFocus()
183 } else if (state == STATE_FOCUSING) { in onAutoFocus()
188 state = STATE_SUCCESS; in onAutoFocus()
190 state = STATE_FAIL; in onAutoFocus()
202 } else if (state == STATE_IDLE) { in onAutoFocus()
215 if (state != STATE_IDLE) { in onAutoFocusMoving()
253 if (!initialized || state == STATE_FOCUSING_SNAP_ON_FINISH) { in onSingleTapUp()
[all …]
DPieRenderer.java46 private volatile int state; field in PieRenderer
179 state = STATE_IDLE; in init()
204 if ((state == STATE_PIE) && isVisible()) { in showInCenter()
208 if (state != STATE_IDLE) { in showInCenter()
211 state = STATE_PIE; in showInCenter()
229 state = STATE_PIE; in show()
239 state = STATE_IDLE; in show()
366 int state = canvas.save(); in onDraw() local
372 if (this.state == STATE_FINISHING) { in onDraw()
373 canvas.restoreToCount(state); in onDraw()
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaButtonController.java152 private void onPlaybackStateChanged(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in onPlaybackStateChanged() argument
154 boolean hasState = (state != null); in onPlaybackStateChanged()
155 mPlayPauseStopImageView.setAction(convertMainAction(state)); in onPlaybackStateChanged()
156 boolean isLoading = hasState && state.isLoading(); in onPlaybackStateChanged()
165 boolean skipPreviousReserved = hasState && state.iSkipPreviousReserved(); in onPlaybackStateChanged()
166 boolean skipPreviousEnabled = hasState && state.isSkipPreviousEnabled(); in onPlaybackStateChanged()
179 boolean skipNextReserved = hasState && state.isSkipNextReserved(); in onPlaybackStateChanged()
180 boolean skipNextEnabled = hasState && state.isSkipNextEnabled(); in onPlaybackStateChanged()
193 updateCustomActions(state); in onPlaybackStateChanged()
197 private int convertMainAction(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in convertMainAction() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java207 "MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state);
210 convertHalState(cs.state), cs.local_role, cs.remote_role);
482 for (int state : states) { in getDevicesMatchingConnectionStates()
483 if (state == panDeviceState) { in getDevicesMatchingConnectionStates()
493 public ConnectState(byte[] address, int state, int error, int localRole, int remoteRole) { in ConnectState() argument
495 this.state = state; in ConnectState()
502 public int state; field in PanService.ConnectState
510 private void onConnectStateChanged(byte[] address, int state, int error, int localRole, in onConnectStateChanged() argument
513 Log.d(TAG, "onConnectStateChanged: " + state + ", local role:" + localRole in onConnectStateChanged()
517 msg.obj = new ConnectState(address, state, error, localRole, remoteRole); in onConnectStateChanged()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/statemachine/
DStateMachine.java469 LogRec(StateMachine sm, Message msg, String info, IState state, IState orgState, in LogRec() argument
471 update(sm, msg, info, state, orgState, transToState); in LogRec()
480 public void update(StateMachine sm, Message msg, String info, IState state, IState orgState, in update() argument
486 mState = state; in update()
664 synchronized void add(StateMachine sm, Message msg, String messageInfo, IState state, in add() argument
668 mLogRecVector.add(new LogRec(sm, msg, messageInfo, state, orgState, transToState)); in add()
675 pmi.update(sm, msg, messageInfo, state, orgState, transToState); in add()
727 State state; field in StateMachine.SmHandler.StateInfo
740 return "state=" + state.getName() + ",active=" + active + ",parent=" in toString()
741 + ((parentStateInfo == null) ? "null" : parentStateInfo.state.getName()); in toString()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java57 public abstract void stateChanged(View view, int state); in stateChanged() argument
132 public void setState(int state) { in setState() argument
133 setState(state, true); in setState()
142 public void setState(final int state, final boolean callListener) { in setState() argument
143 setStateAnimatedInternal(state, callListener); in setState()
152 private void setStateAnimatedInternal(final int state, final boolean callListener) { in setStateAnimatedInternal() argument
157 if (mState == state || mState == UNSET) { in setStateAnimatedInternal()
158 setStateInternal(state, callListener); in setStateAnimatedInternal()
175 setStateInternal(state, callListener); in setStateAnimatedInternal()
199 setStateInternal(state, callListener); in setStateAnimatedInternal()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryListInterfaceState.java44 final State state = mWordlistToState.get(wordlistId); in isOpen() local
45 if (null == state) return false; in isOpen()
46 return state.mOpen; in isOpen()
50 final State state = mWordlistToState.get(wordlistId); in getStatus() local
51 if (null == state) return MetadataDbHelper.STATUS_UNKNOWN; in getStatus()
52 return state.mStatus; in getStatus()
57 final State state = mWordlistToState.get(wordlistId); in setOpen() local
58 newState = null == state ? new State() : state; in setOpen()
65 for (final State state : mWordlistToState.values()) { in closeAll()
66 state.mOpen = false; in closeAll()
/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java82 private static String powerStateReportName(int state) { in powerStateReportName() argument
84 switch(state) { in powerStateReportName()
95 return baseName + "(" + state + ")"; in powerStateReportName()
98 private static String powerStateReqName(int state) { in powerStateReqName() argument
100 switch(state) { in powerStateReqName()
107 return baseName + "(" + state + ")"; in powerStateReqName()
115 void onApPowerStateChange(PowerState state); in onApPowerStateChange() argument
130 public PowerState(int state, int param) { in PowerState() argument
131 this.mState = state; in PowerState()
298 private void setPowerState(int state, int additionalParam) { in setPowerState() argument
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceStateTransitionAnimation.java91 private void setWorkspaceProperty(LauncherState state, PropertySetter propertySetter, in setWorkspaceProperty() argument
93 ScaleAndTranslation scaleAndTranslation = state.getWorkspaceScaleAndTranslation(mLauncher); in setWorkspaceProperty()
94 ScaleAndTranslation hotseatScaleAndTranslation = state.getHotseatScaleAndTranslation( in setWorkspaceProperty()
96 ScaleAndTranslation qsbScaleAndTranslation = state.getQsbScaleAndTranslation(mLauncher); in setWorkspaceProperty()
98 PageAlphaProvider pageAlphaProvider = state.getWorkspacePageAlphaProvider(mLauncher); in setWorkspaceProperty()
101 applyChildState(state, (CellLayout) mWorkspace.getChildAt(i), i, pageAlphaProvider, in setWorkspaceProperty()
105 int elements = state.getVisibleElements(mLauncher); in setWorkspaceProperty()
117 && fromState == HINT_STATE && state == NORMAL; in setWorkspaceProperty()
170 setScrim(propertySetter, state); in setWorkspaceProperty()
185 public void setScrim(PropertySetter propertySetter, LauncherState state) { in setScrim() argument
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionUiStateManager.java166 public void onStateTransitionComplete(LauncherState state) { in onStateTransitionComplete() argument
180 private void scheduleApplyPredictedApps(PredictionState state) { in scheduleApplyPredictedApps() argument
182 mPendingState = state; in scheduleApplyPredictedApps()
189 private void applyState(PredictionState state) { in applyState() argument
190 mCurrentState = state; in applyState()
232 PredictionState state = new PredictionState(); in parseLastState() local
233 state.isEnabled = mGettingValidPredictionResults; in parseLastState()
234 if (!state.isEnabled) { in parseLastState()
235 state.apps = Collections.EMPTY_LIST; in parseLastState()
236 return state; in parseLastState()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateAdapter.java17 package com.android.gallery3d.filtershow.state;
52 State state = getItem(position); in getView() local
53 view.setState(state); in getView()
56 FilterRepresentation stateRep = state.getFilterRepresentation(); in getView()
67 public boolean contains(State state) { in contains() argument
69 if (state == getItem(i)) { in contains()
90 State state = getItem(i); in same() local
91 if (!state.equals(states.elementAt(i-1))) { in same()
109 public void remove(State state) { in remove() argument
110 super.remove(state); in remove()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java108 ServiceState state = new ServiceState(); in testPhoneChangeState_OkToCallTrue() local
109 state.setState(ServiceState.STATE_IN_SERVICE); in testPhoneChangeState_OkToCallTrue()
110 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_OkToCallTrue()
118 new AsyncResult(null, state, null)).sendToTarget(); in testPhoneChangeState_OkToCallTrue()
132 ServiceState state = new ServiceState(); in testPhoneChangeState_NoOkToCall_Timeout() local
133 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testPhoneChangeState_NoOkToCall_Timeout()
136 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_NoOkToCall_Timeout()
142 new AsyncResult(null, state, null)).sendToTarget(); in testPhoneChangeState_NoOkToCall_Timeout()
157 ServiceState state = new ServiceState(); in testTimeout_RetryFailure() local
158 state.setState(ServiceState.STATE_POWER_OFF); in testTimeout_RetryFailure()
[all …]

12345678910>>...38