Home
last modified time | relevance | path

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

12345678910>>...24

/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java58 public static Info getInfo(Context context, PrimaryCallState state) { in getInfo() argument
60 Drawable icon = state.connectionIcon; in getInfo()
63 if (state.isWifi && icon == null) { in getInfo()
67 if (state.state == State.INCOMING || state.state == State.CALL_WAITING) { in getInfo()
71 if (!TextUtils.isEmpty(state.callSubject)) { in getInfo()
72 label = state.callSubject; in getInfo()
75 label = getLabelForIncoming(context, state); in getInfo()
77 } else if (VideoUtils.hasSentVideoUpgradeRequest(state.sessionModificationState) in getInfo()
78 || VideoUtils.hasReceivedVideoUpgradeRequest(state.sessionModificationState)) { in getInfo()
79 label = getLabelForVideoRequest(context, state); in getInfo()
[all …]
DBottomRow.java76 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
78 boolean isTimerVisible = state.state == State.ACTIVE; in getInfo()
79 boolean isForwardIconVisible = state.isForwardedNumber; in getInfo()
80 boolean isWorkIconVisible = state.isWorkCall; in getInfo()
81 boolean isHdIconVisible = state.isHdAudioCall && !isForwardIconVisible; in getInfo()
82 boolean isHdAttemptingIconVisible = state.isHdAttempting; in getInfo()
86 if (isIncoming(state) && primaryInfo.isSpam) { in getInfo()
90 } else if (state.state == State.DISCONNECTING) { in getInfo()
96 } else if (state.state == State.DISCONNECTED) { in getInfo()
97 label = state.disconnectCause.getLabel(); 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/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/picker/
DActionHandlerTest.java72 mEnv.state, in setUp()
133 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
147 assertEquals(stack, mEnv.state.stack); in testInitLocation_RestoresLastAccessedStack()
168 mEnv.state.action = State.ACTION_CREATE; in testInitLocation_DefaultsToDownloads_ActionCreate()
182 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testOpenContainerDocument()
191 mEnv.state.action = State.ACTION_PICK_COPY_DESTINATION; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
192 mEnv.state.stack.changeRoot(TestProvidersAccess.HOME); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
193 mEnv.state.stack.push(TestEnv.FOLDER_1); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
194 mEnv.state.stack.push(TestEnv.FOLDER_2); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
217 mEnv.state.action = State.ACTION_OPEN_TREE; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
[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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnJAJP.java541 EngineState state = new EngineState(); in onStartInputView() local
542 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onStartInputView()
543 updateEngineState(state); in onStartInputView()
695 EngineState state; in onEvent() local
926 state = new EngineState(); in onEvent()
927 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent()
928 updateEngineState(state); in onEvent()
955 state = new EngineState(); in onEvent()
956 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent()
957 updateEngineState(state); in onEvent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java200 log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state);
203 convertHalState(cs.state), cs.local_role, cs.remote_role);
377 for (int state : states) { in getDevicesMatchingConnectionStates()
378 if (state == panDeviceState) { in getDevicesMatchingConnectionStates()
388 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { in ConnectState() argument
390 this.state = state; in ConnectState()
396 int state; field in PanService.ConnectState
401 private void onConnectStateChanged(byte[] address, int state, int error, int local_role, in onConnectStateChanged() argument
404 log("onConnectStateChanged: " + state + ", local role:" + local_role + in onConnectStateChanged()
408 msg.obj = new ConnectState(address, state, error, local_role, remote_role); in onConnectStateChanged()
[all …]
/packages/experimental/procstatlog/
Dprocstatreport.py177 for when, state in sorted_history:
179 next = state.get("/proc/stat:cpu", "").split()
192 last_state = state
222 for when, state in sorted_history:
224 for key in state:
228 next = int(state.get(key, -1))
235 last_state = state
262 for when, state in sorted_history:
264 next = int(state.get("/proc/stat:ctxt", -1))
266 last_state = state
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DEmergencyCallStateListenerTest.java100 ServiceState state = new ServiceState(); in testPhoneChangeState_InService() local
101 state.setState(ServiceState.STATE_IN_SERVICE); in testPhoneChangeState_InService()
109 new AsyncResult(null, state, null)).sendToTarget(); in testPhoneChangeState_InService()
127 ServiceState state = new ServiceState(); in testPhoneChangeState_EmergencyCalls() local
128 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testPhoneChangeState_EmergencyCalls()
129 state.setEmergencyOnly(true); in testPhoneChangeState_EmergencyCalls()
131 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_EmergencyCalls()
138 new AsyncResult(null, state, null)).sendToTarget(); in testPhoneChangeState_EmergencyCalls()
158 ServiceState state = new ServiceState(); in testPhoneChangeState_OutOfService() local
159 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testPhoneChangeState_OutOfService()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java378 void onBondStateChanged(BluetoothDevice device, int state) in onBondStateChanged() argument
387 prop.setBondState(state); in onBondStateChanged()
389 if (state == BluetoothDevice.BOND_BONDED) { in onBondStateChanged()
395 } else if (state == BluetoothDevice.BOND_NONE) { in onBondStateChanged()
439 int state = connIntent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in sendConnectionStateChange() local
440 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange()
442 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
443 if (!validateProfileConnectionState(state) || in sendConnectionStateChange()
450 + "prevState " + prevState + " state " + state); in sendConnectionStateChange()
455 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange()
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/utils/
DphNxpConfig.cpp89 unsigned long state; member in CNxpNfcConfig
91 inline bool Is (unsigned long f) {return (state & f) == f;} in Is()
92 inline void Set (unsigned long f) {state |= f;} in Set()
93 inline void Reset (unsigned long f) {state &= ~f;} in Reset()
215 state = BEGIN_LINE; in readConfig()
241 switch (state & 0xff) in readConfig()
246 state = END_LINE; in readConfig()
253 state = TOKEN; in readConfig()
261 state = BEGIN_QUOTE; in readConfig()
269 state = END_LINE; in readConfig()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java87 int state; in toParcelableCall() local
89 state = getParcelableState(call, supportsExternalCalls); in toParcelableCall()
91 state = overrideState; in toParcelableCall()
117 if (state == android.telecom.Call.STATE_DIALING) { in toParcelableCall()
163 state, in toParcelableCall()
191 int state = CallState.NEW; in getParcelableState() local
195 state = android.telecom.Call.STATE_DISCONNECTED; in getParcelableState()
198 state = android.telecom.Call.STATE_ACTIVE; in getParcelableState()
201 state = android.telecom.Call.STATE_CONNECTING; in getParcelableState()
204 state = android.telecom.Call.STATE_DIALING; in getParcelableState()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersAccess.java47 Collection<RootInfo> getMatchingRootsBlocking(State state); in getMatchingRootsBlocking() argument
51 RootInfo getDefaultRootBlocking(State state); in getDefaultRootBlocking() argument
65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() argument
74 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { in getMatchingRoots()
79 if (state.action == State.ACTION_PICK_COPY_DESTINATION in getMatchingRoots()
86 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { in getMatchingRoots()
92 if (!state.showAdvanced && root.isAdvanced()) { in getMatchingRoots()
97 if (state.localOnly && !root.isLocalOnly()) { in getMatchingRoots()
102 if (state.directoryCopy && root.isDownloads()) { in getMatchingRoots()
108 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots()
[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 …]
DButtonManager.java237 public void onStateChanged(int state); in onStateChanged() argument
680 public void stateChanged(View view, int state) { in initializeFlashButton()
682 Keys.KEY_FLASH_MODE, state); in initializeFlashButton()
684 cb.onStateChanged(state); in initializeFlashButton()
709 public void stateChanged(View view, int state) { in initializeTorchButton()
711 Keys.KEY_VIDEOCAMERA_FLASH_MODE, state); in initializeTorchButton()
713 cb.onStateChanged(state); in initializeTorchButton()
738 public void stateChanged(View view, int state) { in initializeHdrPlusFlashButton()
740 Keys.KEY_HDR_PLUS_FLASH_MODE, state); in initializeHdrPlusFlashButton()
742 cb.onStateChanged(state); in initializeHdrPlusFlashButton()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java274 final NotificationState state) { in cancelStaleGroupChildren() argument
276 if (state instanceof MultiConversationNotificationState) { in cancelStaleGroupChildren()
278 ((MultiConversationNotificationState) state).mChildren) { in cancelStaleGroupChildren()
318 public static boolean shouldVibrate(final NotificationState state) { in shouldVibrate() argument
321 if (!state.getNotificationVibrate()) { in shouldVibrate()
411 private static void processAndSend(final NotificationState state, final boolean silent, in processAndSend() argument
417 final String conversationId = state.mConversationIds.first(); in processAndSend()
420 final Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(state.getRingtoneUri()); in processAndSend()
433 state.mBaseRequestCode = state.mType; in processAndSend()
438 if (!(state instanceof BundledMessageNotificationState)) { in processAndSend()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java104 public int state; field in Attachment
187 state = in.readInt(); in Attachment()
209 state = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.STATE)); in Attachment()
231 state = srcJson.optInt(AttachmentColumns.STATE); in Attachment()
264 state = AttachmentState.SAVED; in Attachment()
306 state = values.getAsInteger(AttachmentColumns.STATE); in Attachment()
332 values.put(AttachmentColumns.STATE, state); in toContentValues()
355 dest.writeInt(state); in writeToParcel()
375 result.put(AttachmentColumns.STATE, state); in toJSON()
430 return state == AttachmentState.SAVED; in isPresentLocally()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java146 final State state = new State();
147 state.action = in.readInt();
148 state.acceptMimes = in.readStringArray();
149 state.allowMultiple = in.readInt() != 0;
150 state.localOnly = in.readInt() != 0;
151 state.showDeviceStorageOption = in.readInt() != 0;
152 state.showAdvanced = in.readInt() != 0;
153 DurableUtils.readFromParcel(in, state.stack);
154 in.readMap(state.dirConfigs, loader);
155 in.readList(state.excludedAuthorities, loader);
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java248 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
249 switch (state) { in processConnectionEvent()
288 loge("Incorrect state: " + state); in processConnectionEvent()
350 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
351 log("processConnectionEvent state " + state); in processConnectionEvent()
354 switch (state) { in processConnectionEvent()
482 loge("Incorrect state: " + state); in processConnectionEvent()
598 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
599 switch (state) { in processConnectionEvent()
620 loge("Connection State Device: " + device + " bad state: " + state); in processConnectionEvent()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java157 protected void includeState(State state) { in includeState() argument
161 state.initAcceptMimes(intent, defaultMimeType); in includeState()
165 state.action = ACTION_OPEN; in includeState()
167 state.action = ACTION_CREATE; in includeState()
169 state.action = ACTION_GET_CONTENT; in includeState()
171 state.action = ACTION_OPEN_TREE; in includeState()
173 state.action = ACTION_PICK_COPY_DESTINATION; in includeState()
176 if (state.action == ACTION_OPEN || state.action == ACTION_GET_CONTENT) { in includeState()
177 state.allowMultiple = intent.getBooleanExtra( in includeState()
181 if (state.action == ACTION_OPEN || state.action == ACTION_GET_CONTENT in includeState()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DBodyDescriptor.java179 byte state = READY_FOR_NAME; in getHeaderParams()
184 switch (state) { in getHeaderParams()
187 state = READY_FOR_NAME; in getHeaderParams()
193 state = ERROR; in getHeaderParams()
200 state = IN_NAME; in getHeaderParams()
206 state = ERROR; in getHeaderParams()
208 state = READY_FOR_VALUE; in getHeaderParams()
224 state = IN_QUOTED_VALUE; in getHeaderParams()
228 state = IN_VALUE; in getHeaderParams()
246 state = VALUE_DONE; in getHeaderParams()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java43 private byte state = 0; field in QuotedPrintableInputStream
128 switch (state) { in fillBuffer()
134 state = 1; in fillBuffer()
139 state = 2; in fillBuffer()
142 state = 3; in fillBuffer()
160 state = 0; in fillBuffer()
167 state = 0; in fillBuffer()
174 state = 0; in fillBuffer()
184 state = 0; in fillBuffer()
192 state = 0; in fillBuffer()
[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()

12345678910>>...24