Searched refs:state (Results 426 - 450 of 1016) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsServiceTest.java228 // network state, and poll any existing interfaces before updating.
283 // network state, and poll any existing interfaces before updating.
376 // network state, and poll any existing interfaces before updating.
892 // network state, and poll any existing interfaces before updating.
1071 private void expectNetworkState(NetworkState... state) throws Exception { argument
1072 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce();
1074 final LinkProperties linkProp = state.length > 0 ? state[0].linkProperties : null;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageVerificationStateTest.java32 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/services/usb/java/com/android/server/usb/
H A DUsbAlsaManager.java177 int state = (enabled ? 1 : 0);
198 device, state, address, audioDevice.mDeviceName, TAG);
207 device, state, address, audioDevice.mDeviceName, TAG);
H A DUsbDeviceManager.java67 * UsbDeviceManager manages USB state in device mode.
86 * The non-persistent property which stores the current USB actual state.
88 private static final String USB_STATE_PROPERTY = "sys.usb.state";
97 "/sys/class/android_usb/android0/state";
167 * Listens for uevent messages from the kernel to monitor the USB state
174 String state = event.get("USB_STATE");
176 if (state != null) {
177 mHandler.updateState(state);
241 // make sure the ADB_ENABLED setting value matches the current state
319 // current USB state
377 updateState(String state) argument
407 waitForState(String state) argument
[all...]
H A DUsbPortManager.java98 private static final String USB_TYPEC_STATE = "sys.usb.typec.state";
116 // Mutex for all mutable shared state.
228 // Change simulated state.
233 // Change actual state.
662 private static boolean waitForState(String property, String state) { argument
671 if (state.equals(value)) return true;
674 Slog.e(TAG, "waitForState(" + state + ") for " + property + " FAILED: got " + value);
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerHelper.java251 // Initialize power save, call active state monitoring logic.
440 // Also clear the internal state once the recognition has been stopped.
478 // Clear the ModelData state if successful.
649 public void onServiceStateChange(int state) { argument
650 if (DBG) Slog.d(TAG, "onServiceStateChange, state: " + state);
652 onServiceStateChangedLocked(SoundTrigger.SERVICE_STATE_DISABLED == state);
806 // Unregister from call state changes.
816 // Clears state for all models (generic and keyphrase).
825 public void onCallStateChanged(int state, Strin argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java26 * Encapsulates the telecom audio state, including the current audio routing, supported audio
66 public AudioState(AudioState state) { argument
67 isMuted = state.isMuted();
68 route = state.getRoute();
69 supportedRouteMask = state.getSupportedRouteMask();
72 public AudioState(CallAudioState state) { argument
73 isMuted = state.isMuted();
74 route = state.getRoute();
75 supportedRouteMask = state.getSupportedRouteMask();
86 AudioState state
[all...]
H A DCall.java37 * The state of a {@code Call} when newly created.
42 * The state of an outgoing {@code Call} when dialing the remote number, but not yet connected.
47 * The state of an incoming {@code Call} when ringing locally, but not yet connected.
52 * The state of a {@code Call} when in a holding state.
57 * The state of a {@code Call} when actively supporting conversation.
62 * The state of a {@code Call} when no further voice or other communication is being
70 * The state of an outgoing {@code Call} when waiting on user to select a
84 * The initial state of an outgoing {@code Call}.
85 * Common transitions are to {@link #STATE_DIALING} state fo
705 onStateChanged(Call call, int state) argument
1225 stateToString(int state) argument
1286 Call(Phone phone, String telecomCallId, InCallAdapter inCallAdapter, int state) argument
[all...]
H A DCallAudioState.java25 * Encapsulates the telecom audio state, including the current audio routing, supported audio
79 public CallAudioState(CallAudioState state) { argument
80 isMuted = state.isMuted();
81 route = state.getRoute();
82 supportedRouteMask = state.getSupportedRouteMask();
87 public CallAudioState(AudioState state) { argument
88 isMuted = state.isMuted();
89 route = state.getRoute();
90 supportedRouteMask = state.getSupportedRouteMask();
101 CallAudioState state
[all...]
H A DConference.java144 * Gets the state of the conference call. See {@link Connection} for valid values.
146 * @return A constant representing the state the conference call is currently in.
223 * @return The audio state of the conference, describing how its audio is currently
225 * does not directly know about its audio state.
236 * @return The audio state of the conference, describing how its audio is currently
238 * does not directly know about its audio state.
252 * Returns video state of the primary call.
314 * @param state The new call audio state.
320 public void onAudioStateChanged(AudioState state) {} argument
327 onCallAudioStateChanged(CallAudioState state) argument
616 setCallAudioState(CallAudioState state) argument
[all...]
H A DConferenceParticipant.java24 * Parcelable representation of a participant's state in a conference call.
46 * The state of the participant in the conference.
58 * @param state The state of the participant in the conference.
60 public ConferenceParticipant(Uri handle, String displayName, Uri endpoint, int state) { argument
64 mState = state;
79 int state = source.readInt();
80 return new ConferenceParticipant(handle, displayName, endpoint, state);
151 * The state of the participant in the conference.
H A DConnection.java52 * Implementations are then responsible for updating the state of the {@code Connection}, and
59 * The connection is initializing. This is generally the first state for a {@code Connection}
70 * An incoming connection is in the ringing state. During this state, the user's ringer or
76 * An outgoing connection is in the dialing state. In this state the other party has not yet
92 * A connection has been disconnected. This is the final state once the user has been
98 * The state of an external connection which is in the process of being pulled from a remote
101 * A connection can only be in this state if the {@link #PROPERTY_IS_EXTERNAL_CALL} property and
111 * state {
550 onStateChanged(Connection c, int state) argument
1453 setCallAudioState(CallAudioState state) argument
1465 stateToString(int state) argument
2019 onAudioStateChanged(AudioState state) argument
2026 onCallAudioStateChanged(CallAudioState state) argument
2034 onStateChanged(int state) argument
2187 setState(int state) argument
[all...]
H A DConnectionService.java71 * {@link Connection} object that telecom receives state updates and the {@code ConnectionService}
510 Log.d(this, "onVideoStateChanged set video state %d", videoState);
549 public void onStateChanged(Connection c, int state) {
551 Log.d(this, "Adapter set state %s %s", id, Connection.stateToString(state));
552 switch (state) {
584 Log.d(this, "Adapter set video state %d", videoState);
761 Log.v(this, "createConnection, number: %s, state: %s, capabilities: %s, properties: %s",
H A DInCallService.java277 * if the {@code InCallService} is not in a state where it has an associated
307 * Obtains the current phone call audio state.
309 * @return An object encapsulating the audio state. Returns null if the service is not
320 * Obtains the current phone call audio state.
322 * @return An object encapsulating the audio state. Returns null if the service is not
330 * Sets the microphone mute state. When this request is honored, there will be change to
333 * @param state {@code true} if the microphone should be muted; {@code false} otherwise.
335 public final void setMuted(boolean state) { argument
337 mPhone.setMuted(state);
384 * Called when the audio state change
[all...]
H A DParcelableCall.java62 int state,
84 mState = state;
112 /** The current state of the call. */
119 * when call state is {@link CallState#DISCONNECTED}.
140 /** The time that the call switched to the active state. */
226 * The video state.
227 * @return The video state of the call.
270 int state = source.readInt();
297 state,
60 ParcelableCall( String id, int state, DisconnectCause disconnectCause, List<String> cannedSmsResponses, int capabilities, int properties, long connectTimeMillis, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, GatewayInfo gatewayInfo, PhoneAccountHandle accountHandle, boolean isVideoCallProviderChanged, IVideoProvider videoCallProvider, String parentCallId, List<String> childCallIds, StatusHints statusHints, int videoState, List<String> conferenceableCallIds, Bundle intentExtras, Bundle extras) argument
H A DParcelableConference.java47 int state,
57 mState = state;
74 .append(", state: ")
136 int state = source.readInt();
148 return new ParcelableConference(phoneAccount, state, capabilities, properties,
45 ParcelableConference( PhoneAccountHandle phoneAccount, int state, int connectionCapabilities, int connectionProperties, List<String> connectionIds, IVideoProvider videoProvider, int videoState, long connectTimeMillis, StatusHints statusHints, Bundle extras) argument
H A DParcelableConnection.java57 int state,
74 mState = state;
177 .append("], state:")
195 int state = source.readInt();
216 state,
55 ParcelableConnection( PhoneAccountHandle phoneAccount, int state, int capabilities, int properties, Uri address, int addressPresentation, String callerDisplayName, int callerDisplayNamePresentation, IVideoProvider videoProvider, int videoState, boolean ringbackRequested, boolean isVoipAudioMode, long connectTimeMillis, StatusHints statusHints, DisconnectCause disconnectCause, List<String> conferenceableConnectionIds, Bundle extras) argument
H A DPhone.java41 * Called when the audio state changes.
52 * Called when the audio state changes.
61 * respond immediately by coming to the foreground to inform the user of the state of
71 * experience should add necessary state listeners to the specified {@code Call} and
83 * experience should remove any state listeners from the specified {@code Call} and
255 * Sets the microphone mute state. When this request is honored, there will be change to
258 * @param state {@code true} if the microphone should be muted; {@code false} otherwise.
260 public final void setMuted(boolean state) { argument
261 mInCallAdapter.mute(state);
302 * Obtains the current phone call audio state o
[all...]
H A DRemoteConference.java49 * Invoked when the state of this {@code RemoteConferece} has changed. See
53 * @param oldState The previous state of the {@code RemoteConference}.
54 * @param newState The new state of the {@code RemoteConference}.
185 Log.w(this, "Unsupported state transition for Conference call.",
358 * Gets the state of the conference call. See {@link Connection} for valid values.
360 * @return A constant representing the state the conference call is currently in.
475 * Returns the {@link DisconnectCause} for the conference if it is in the state
510 * Request to change the conference's audio routing to the specified state. The specified state
511 * can include audio routing (Bluetooth, Speaker, etc) and muting state
519 setAudioState(AudioState state) argument
527 setCallAudioState(CallAudioState state) argument
[all...]
H A DRemoteConnection.java53 * Invoked when the state of this {@code RemoteConnection} has changed. See
57 * @param state The new state of the {@code RemoteConnection}.
59 public void onStateChanged(RemoteConnection connection, int state) {} argument
129 * @param isVoip Whether the new audio state of the {@code RemoteConnection} is VOIP.
166 * Indicates that the video state of this {@code RemoteConnection} has changed.
170 * @param videoState The new video state of the {@code RemoteConnection}.
430 * Registers a callback to receive commands and state changes for video calls.
707 * Obtains the state of this {@code RemoteConnection}.
709 * @return A state valu
1016 setAudioState(AudioState state) argument
1025 setCallAudioState(CallAudioState state) argument
1068 setState(final int state) argument
[all...]
H A DVideoProfile.java73 * Should <b>not</b> be used in comparison checks to determine if a video state represents an
87 * video state represents an audio-only call:
126 * @param videoState The video state.
135 * @param videoState The video state.
144 * The video state of the call.
179 int state = source.readInt();
183 return new VideoProfile(state, quality);
229 * Generates a string representation of a video state.
231 * @param videoState The video state.
232 * @return String representation of the video state
327 hasState(@ideoState int videoState, @VideoState int state) argument
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1274 int state = NANP_STATE_DIGIT;
1280 if (numDigits == 0 || state == NANP_STATE_PLUS) {
1281 state = NANP_STATE_ONE;
1294 if (state == NANP_STATE_PLUS) {
1298 } else if (state == NANP_STATE_ONE) {
1301 } else if (state != NANP_STATE_DASH && (numDigits == 3 || numDigits == 6)) {
1305 state = NANP_STATE_DIGIT;
1310 state = NANP_STATE_DASH;
1316 state = NANP_STATE_PLUS;
2681 int state
[all...]
H A DPhoneStateListener.java39 * on the device, including service state, signal strength, message
42 * Override the methods for the state that you wish to receive updates for, and
62 * Listen for changes to the network service state (cellular).
122 * Listen for changes to the device call state.
130 * Listen for changes to the data connection state (cellular).
207 * Listen for changes to LTE network state
232 * Subscription used to listen to the phone state changes
343 * Callback invoked when device service state changes.
390 * Callback invoked when device call state changes.
391 * @param state cal
400 onCallStateChanged(int state, String incomingNumber) argument
412 onDataConnectionStateChanged(int state) argument
419 onDataConnectionStateChanged(int state, int networkType) argument
580 onCallStateChanged(int state, String incomingNumber) argument
584 onDataConnectionStateChanged(int state, int networkType) argument
[all...]
H A DPreciseDataConnectionState.java25 * Contains precise data connection state.
30 * <li>Data connection state.
56 public PreciseDataConnectionState(int state, int networkType, argument
59 mState = state;
90 * Get data connection state
263 sb.append("Data Connection state: " + mState);
H A DServiceState.java25 * Contains phone state and service related information.
30 * <li>Service state: IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY, POWER_OFF
67 * RIL level registration state values from ril.h
68 * ((const char **)response)[0] is registration state 0-6,
286 * @param s Source service state
386 * Get current voice service state
393 * Get current voice service state
407 * Get current data service state
459 * Set whether data network registration state is roaming
470 * Get whether data network registration state i
785 setNullState(int state) argument
819 setState(int state) argument
825 setVoiceRegState(int state) argument
831 setDataRegState(int state) argument
[all...]

Completed in 1098 milliseconds

<<11121314151617181920>>