/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmCdmaConnectionTest.java | 36 private GsmCdmaConnection connection; field in class:GsmCdmaConnectionTest 53 connection = null; 59 connection = new GsmCdmaConnection(mPhone, String.format( 63 String formattedDialStr = connection.formatDialString( 69 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234"); 75 connection = new GsmCdmaConnection(mPhone, String.format( 79 assertEquals(GsmCdmaCall.State.IDLE, connection.getState()); 80 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState()); 82 assertEquals(0, connection.getDisconnectTime()); 83 assertEquals(0, connection [all...] |
/frameworks/native/services/sensorservice/ |
H A D | SensorRecord.cpp | 24 const sp<const SensorEventConnection>& connection) 26 mConnections.add(connection); 30 const sp<const SensorEventConnection>& connection) 32 if (mConnections.indexOf(connection) < 0) { 33 mConnections.add(connection); 40 const wp<const SensorEventConnection>& connection) 42 ssize_t index = mConnections.indexOf(connection); 49 if (*it == connection) { 59 const sp<const SensorEventConnection>& connection) { 60 mPendingFlushConnections.add(connection); 23 SensorRecord( const sp<const SensorEventConnection>& connection) argument 29 addConnection( const sp<const SensorEventConnection>& connection) argument 39 removeConnection( const wp<const SensorEventConnection>& connection) argument 58 addPendingFlushConnection( const sp<const SensorEventConnection>& connection) argument [all...] |
H A D | SensorRecord.h | 28 SensorRecord(const sp<const SensorEventConnection>& connection); 29 bool addConnection(const sp<const SensorEventConnection>& connection); 30 bool removeConnection(const wp<const SensorEventConnection>& connection); 33 void addPendingFlushConnection(const sp<const SensorEventConnection>& connection);
|
H A D | SensorService.cpp | 344 sp<SensorDirectConnection> connection(i.promote()); 345 if (connection != nullptr) { 346 connection->stopAll(true /* backupRecord */); 353 // flush complete event is returned, we need to remove the connection from this queue. 366 sp<SensorDirectConnection> connection(i.promote()); 367 if (connection != nullptr) { 368 connection->recoverAll(); 453 sp<SensorEventConnection> connection(mActiveConnections[i].promote()); 454 if (connection != 0) { 456 connection 493 cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, sensors_event_t const* buffer, const int count) argument 1209 enable(const sp<SensorEventConnection>& connection, int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, const String16& opPackageName) argument 1336 disable(const sp<SensorEventConnection>& connection, int handle) argument 1355 cleanupWithoutDisable( const sp<SensorEventConnection>& connection, int handle) argument 1361 cleanupWithoutDisableLocked( const sp<SensorEventConnection>& connection, int handle) argument 1384 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns, const String16& opPackageName) argument 1406 flushSensor(const sp<SensorEventConnection>& connection, const String16& opPackageName) argument 1507 sendEventsFromCache(const sp<SensorEventConnection>& connection) argument [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | URLFetcher.java | 53 * Retry {@code retry} times if the connection failed or timed out for any reason. 97 HttpURLConnection connection = null; 99 connection = (HttpURLConnection) url.openConnection(); 100 connection.setInstanceFollowRedirects(true); 101 connection.setConnectTimeout(connectionTimeoutMillis); 102 connection.setReadTimeout(connectionTimeoutMillis); 103 connection.setUseCaches(true); 104 connection.setInstanceFollowRedirects(false); 105 connection.addRequestProperty("Cache-Control", "max-stale=60"); 107 if (connection [all...] |
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/verifier/ |
H A D | DatabaseVerifier.kt | 35 val connection : Connection, val context : Context, val entities : List<Entity>) { 55 val connection = DriverManager.getConnection("jdbc:sqlite::memory:") 56 DatabaseVerifier(connection, context, entities) 66 val stmt = connection.createStatement() 73 val stmt = connection.prepareStatement(sql) 81 if (!connection.isClosed) { 83 connection.close()
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 42 * A connection provided to a {@link ConnectionService} by another {@code ConnectionService} 58 * @param connection The {@code RemoteConnection} invoking this method. 61 public void onStateChanged(RemoteConnection connection, int state) {} argument 66 * @param connection The {@code RemoteConnection} invoking this method. 68 * connection. 71 RemoteConnection connection, 78 * @param connection The {@code RemoteConnection} invoking this method. 81 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} argument 87 * @param connection The {@code RemoteConnection} invoking this method. 91 RemoteConnection connection, 70 onDisconnected( RemoteConnection connection, DisconnectCause disconnectCause) argument 90 onConnectionCapabilitiesChanged( RemoteConnection connection, int connectionCapabilities) argument 101 onConnectionPropertiesChanged( RemoteConnection connection, int connectionProperties) argument 114 onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) argument 123 onPostDialChar(RemoteConnection connection, char nextChar) argument 132 onVoipAudioChanged(RemoteConnection connection, boolean isVoip) argument 141 onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) argument 152 onAddressChanged(RemoteConnection connection, Uri address, int presentation) argument 163 onCallerDisplayNameChanged( RemoteConnection connection, String callerDisplayName, int presentation) argument 173 onVideoStateChanged(RemoteConnection connection, int videoState) argument 181 onDestroyed(RemoteConnection connection) argument 191 onConferenceableConnectionsChanged( RemoteConnection connection, List<RemoteConnection> conferenceableConnections) argument 203 onVideoProviderChanged( RemoteConnection connection, VideoProvider videoProvider) argument 214 onConferenceChanged( RemoteConnection connection, RemoteConference conference) argument 224 onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) argument 235 onConnectionEvent(RemoteConnection connection, String event, Bundle extras) argument 243 onRttInitiationSuccess(RemoteConnection connection) argument 254 onRttInitiationFailure(RemoteConnection connection, int reason) argument 262 onRttSessionRemotelyTerminated(RemoteConnection connection) argument 270 onRemoteRttRequest(RemoteConnection connection) argument 675 RemoteConnection(String callId, IConnectionService connectionService, ParcelableConnection connection, String callingPackage, int targetSdkVersion) argument [all...] |
H A D | RemoteConference.java | 71 * @param connection The {@link RemoteConnection} being added. 73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} argument 79 * @param connection The {@link RemoteConnection} being removed. 81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} argument 164 for (RemoteConnection connection : mChildConnections) { 165 connection.setConference(null); 206 void addConnection(final RemoteConnection connection) { argument 207 if (!mChildConnections.contains(connection)) { 208 mChildConnections.add(connection); 209 connection 224 removeConnection(final RemoteConnection connection) argument 414 separate(RemoteConnection connection) argument [all...] |
H A D | Conference.java | 43 * Used to indicate that the conference connection time is not specified. If not specified, 52 public void onConnectionAdded(Conference conference, Connection connection) {} argument 53 public void onConnectionRemoved(Conference conference, Connection connection) {} argument 271 * @param connection The connection to separate. 273 public void onSeparate(Connection connection) {} argument 279 * @param connection The {@code Connection} to merge. 281 public void onMerge(Connection connection) {} argument 339 * @param connection The newly added connection 341 onConnectionAdded(Connection connection) argument 423 addConnection(Connection connection) argument 443 removeConnection(Connection connection) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvUinputBridge.cpp | 193 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), local 195 return reinterpret_cast<jlong>(connection); 199 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 200 delete connection; 204 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 206 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_SEC, timestamp / 1000L); 207 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_USEC, (timestamp % 1000L) * 1000L); 212 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 214 connection->sendEvent(EV_KEY, code, down ? 1 : 0); 222 NativeConnection* connection local 238 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 249 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 254 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalCallTracker.java | 57 * Notifies that an unknown connection has been added. 58 * @param c The new unknown connection. 85 public void onPullExternalCall(ImsExternalConnection connection) { argument 86 Log.d(TAG, "onPullExternalCall: connection = " + connection); 91 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState(), 92 connection.getCallId()); 104 * create the connection for the unknown call that we can determine which 119 * Tracks whether each external connection tracke 344 updateExistingConnection(ImsExternalConnection connection, ImsExternalCallState state) argument [all...] |
H A D | ImsExternalCall.java | 34 public ImsExternalCall(Phone phone, ImsExternalConnection connection) { argument 36 mConnections.add(connection);
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 45 * At any given time, a connection is either owned by the pool, or it has been 47 * finished with the connection it is using, it must return the connection 53 * that the connection pool can detect when connections have been improperly 56 * The connection pool is thread-safe (but the connections themselves are not). 82 // and logging a message about the connection pool being busy. 105 // Describes what should happen to an acquired connection when it is returned to the pool. 107 // The connection should be returned to the pool as usual. 110 // The connection must be reconfigured before being returned. 113 // The connection mus 390 releaseConnection(SQLiteConnection connection) argument 422 recycleConnectionLocked(SQLiteConnection connection, AcquiredConnectionStatus status) argument 451 shouldYieldConnection(SQLiteConnection connection, int connectionFlags) argument 577 closeConnectionAndLogExceptionsLocked(SQLiteConnection connection) argument 960 finishAcquireConnectionLocked(SQLiteConnection connection, int connectionFlags) argument [all...] |
/frameworks/base/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 111 * All the info about a connection. 216 final ConnectionRecord connection = new ConnectionRecord(); 217 connection.pkg = pkg; 218 connection.rootHints = rootHints; 219 connection.callbacks = callbacks; 220 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); 223 if (connection.root == null) { 234 mConnections.put(b, connection); 235 b.linkToDeath(connection, 0); 237 callbacks.onConnect(connection 596 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument 618 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument 644 performLoadChildren(final String parentId, final ConnectionRecord connection, final Bundle options) argument 708 performLoadItem(String itemId, final ConnectionRecord connection, final ResultReceiver receiver) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 48 * If another connection (possibly in another process) has the database locked for 53 * have a single open connection at a time unless they are using WAL. When using 54 * WAL, a timeout could occur if one connection is busy performing an auto-checkpoint 95 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 97 connection->label.string(), sql); 102 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 104 connection->label.string(), sql, tm * 0.000001f); 109 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 110 return connection->canceled; 175 SQLiteConnection* connection local 190 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 261 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 285 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 298 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 329 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 377 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 388 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 399 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 410 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 425 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 439 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 451 executeNonQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument 464 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 472 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 481 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 489 executeOneRowQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument 499 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 511 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 561 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 679 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 773 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 782 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 788 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local [all...] |
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | TestUtils.java | 39 fail("Expected connection to " + host + ":" + port + " to fail."); 53 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); 54 connection.setSSLSocketFactory(context.getSocketFactory()); 56 connection.getInputStream(); 66 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); 67 connection.setSSLSocketFactory(context.getSocketFactory()); 68 connection.getInputStream();
|
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 102 const sp<EventThread::Connection>& connection) { 104 mDisplayEventConnections.add(connection); 110 const wp<EventThread::Connection>& connection) { 112 mDisplayEventConnections.remove(connection); 116 const sp<EventThread::Connection>& connection) { 120 if (connection->count != new_count) { 121 connection->count = new_count; 128 const sp<EventThread::Connection>& connection) { 133 if (connection->count < 0) { 134 connection 101 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument 109 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument 115 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument 127 requestNextVsync( const sp<EventThread::Connection>& connection) argument 380 sp<Connection> connection = local [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | IWallpaperService.aidl | 26 void attach(IWallpaperConnection connection,
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GpsXtraDownloader.java | 117 HttpURLConnection connection = null; 119 connection = (HttpURLConnection) (new URL(url)).openConnection(); 120 connection.setRequestProperty( 123 connection.setRequestProperty( 126 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS); 127 connection.setReadTimeout(READ_TIMEOUT_MS); 129 connection.connect(); 130 int statusCode = connection.getResponseCode(); 136 try (InputStream in = connection.getInputStream()) { 152 if (connection ! [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvRemoteProviderProxy.java | 37 * Maintains a connection to a tv remote provider service. 186 Connection connection = new Connection(provider); 187 if (connection.register()) { 189 mActiveConnection = connection; 212 private void onConnectionReady(Connection connection) { argument 215 if (mActiveConnection == connection) { 222 private void onConnectionDied(Connection connection) { argument 223 if (mActiveConnection == connection) { 224 if (DEBUG) Slog.d(TAG, this + ": Service connection died"); 345 "openInputBridge, Invalid connection o 564 RemoteServiceInputProvider(Connection connection) argument [all...] |
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | AccessibilityService.java | 429 * Dispatches service connection to internal components first, then the 440 // The client gets to handle service connection last, after we've set 577 final IAccessibilityServiceConnection connection = 579 if (connection != null) { 581 connection.disableSelf(); 653 final IAccessibilityServiceConnection connection = 656 if (connection == null) { 672 connection.sendGesture(mGestureStatusCallbackSequence, 836 final IAccessibilityServiceConnection connection = 839 if (connection ! 1620 init(IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken) argument [all...] |
/frameworks/support/lifecycle/extensions/src/androidTest/java/android/arch/lifecycle/ |
H A D | ServiceLifecycleTest.java | 102 ServiceConnection connection = bindToService(); 104 InstrumentationRegistry.getTargetContext().unbindService(connection); 114 ServiceConnection connection = bindToService(); 120 context.unbindService(connection); 136 ServiceConnection connection = bindToService(); 148 context.unbindService(connection); 156 ServiceConnection connection = bindToService(); 166 context.unbindService(connection); 180 ServiceConnection connection = bindToService(); 195 context.unbindService(connection); [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 52 private static final String HEADER_CONNECTION = "connection"; 53 private static final String HEADER_PROXY_CONNECTION = "proxy-connection"; 64 private Socket connection; field in class:ProxyServer.ProxyConnection 66 private ProxyConnection(Socket connection) { argument 67 this.connection = connection; 73 String requestLine = getLine(connection.getInputStream()); 76 connection.close(); 97 connection.close(); 111 connection [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalCallTrackerTest.java | 83 Connection connection = connectionArgumentCaptor.getValue(); 84 assert(connection instanceof ImsExternalConnection); 92 ImsExternalConnection connection = (ImsExternalConnection) 98 assertEquals(connection.getState(), Call.State.DISCONNECTED);
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
H A D | MediaBrowserServiceCompat.java | 195 ConnectionRecord connection = iter.next(); 197 connection.callbacks.onConnect(connection.root.getRootId(), token, 198 connection.root.getExtras()); 200 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); 214 ConnectionRecord connection = mConnections.get(binder); 216 connection.subscriptions.get(parentId); 221 performLoadChildren(parentId, connection, callback.second); 288 ConnectionRecord connection = mConnections.get(binder); 290 connection 1277 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument 1299 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument 1325 performLoadChildren(final String parentId, final ConnectionRecord connection, final Bundle options) argument 1387 performLoadItem(String itemId, ConnectionRecord connection, final ResultReceiver receiver) argument 1413 performSearch(final String query, Bundle extras, ConnectionRecord connection, final ResultReceiver receiver) argument 1441 performCustomAction(final String action, Bundle extras, ConnectionRecord connection, final ResultReceiver receiver) argument [all...] |