Home
last modified time | relevance | path

Searched refs:signal (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetAgIndicatorEnableState.java24 public boolean signal; field in HeadsetAgIndicatorEnableState
31 signal = newSignal; in HeadsetAgIndicatorEnableState()
41 return service == other.service && roam == other.roam && signal == other.signal in equals()
50 if (signal) result += 4; in hashCode()
66 .append(signal) in buildString()
DHeadsetNativeInterface.java200 private void onAtBia(boolean service, boolean roam, boolean signal, boolean battery, in onAtBia() argument
203 new HeadsetAgIndicatorEnableState(service, roam, signal, battery); in onAtBia()
351 int callState, int signal, int roam, int batteryCharge) { in cindResponse() argument
352 return cindResponseNative(service, numActive, numHeld, callState, signal, roam, in cindResponse()
485 int callState, int signal, int roam, int batteryCharge, byte[] address); in cindResponseNative() argument
487 private native boolean notifyDeviceStatusNative(int networkState, int serviceType, int signal, in notifyDeviceStatusNative() argument
DHeadsetDeviceState.java45 HeadsetDeviceState(int service, int roam, int signal, int batteryCharge) { in HeadsetDeviceState() argument
48 mSignal = signal; in HeadsetDeviceState()
DHeadsetPhoneState.java252 int signal = service == HeadsetHalConstants.NETWORK_STATE_AVAILABLE ? mCindSignal : 0; in sendDeviceStateChanged() local
255 + mIsSimStateLoaded + " mSignal=" + signal + " mRoam=" + mCindRoam in sendDeviceStateChanged()
258 new HeadsetDeviceState(service, mCindRoam, signal, mCindBatteryCharge)); in sendDeviceStateChanged()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardRequest.java91 final CountDownLatch signal = new CountDownLatch(1); in loadMediaBlocking() local
92 if (!parseVCard(mDescriptor.vCardUri, signal)) { in loadMediaBlocking()
97 signal.await(VCARD_LOADING_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in loadMediaBlocking()
118 private boolean parseVCard(final Uri targetUri, final CountDownLatch signal) { in parseVCard() argument
147 return doActuallyReadOneVCard(targetUri, true, detector, null, signal); in parseVCard()
153 final CountDownLatch signal) { in doActuallyReadOneVCard() argument
161 builder.addEntryHandler(new ContactVCardEntryHandler(signal)); in doActuallyReadOneVCard()
246 public ContactVCardEntryHandler(final CountDownLatch signal) { in ContactVCardEntryHandler() argument
247 mSignal = signal; in ContactVCardEntryHandler()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DMediaResourceManagerTest.java136 final CountDownLatch signal = new CountDownLatch(1); in loadImage() local
138 createAssertListener(shouldBeCached, shouldFail, signal)); in loadImage()
143 signal.await(); in loadImage()
150 final boolean shouldBeCached, final boolean shouldFail, final CountDownLatch signal) { in createAssertListener() argument
163 signal.countDown(); in createAssertListener()
171 signal.countDown(); in createAssertListener()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java140 CancellationSignal signal) { in openFile() argument
142 return mClient.openFile(url, mode, signal); in openFile()
161 CancellationSignal signal) { in openAssetFile() argument
163 return mClient.openAssetFile(url, mode, signal); in openAssetFile()
179 Bundle opts, CancellationSignal signal) { in openTypedAssetFileDescriptor() argument
181 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts, signal); in openTypedAssetFileDescriptor()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java739 @Nullable CancellationSignal signal) in queryRecentDocuments() argument
890 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument
909 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException { in openDocumentThumbnail() argument
916 return openOrCreateImageThumbnailCleared(id, sizeHint, signal); in openDocumentThumbnail()
918 return openOrCreateImageThumbnailCleared(ident.id, sizeHint, signal); in openDocumentThumbnail()
921 return openOrCreateVideoThumbnailCleared(id, sizeHint, signal); in openDocumentThumbnail()
923 return openOrCreateVideoThumbnailCleared(ident.id, sizeHint, signal); in openDocumentThumbnail()
1237 CancellationSignal signal) throws FileNotFoundException { in openImageThumbnailCleared() argument
1243 return resolver.openTypedAssetFile(uri, "image/*", opts, signal); in openImageThumbnailCleared()
1247 CancellationSignal signal) throws FileNotFoundException { in openOrCreateImageThumbnailCleared() argument
[all …]
DMediaProvider.java839 public void onIdleMaintenance(@NonNull CancellationSignal signal) { in onIdleMaintenance() argument
846 signal.throwIfCanceled(); in onIdleMaintenance()
857 pruneThumbnails(signal); in onIdleMaintenance()
862 null, null, null, null, null, null, signal)) { in onIdleMaintenance() argument
886 null, null, null, null, signal)) { in onIdleMaintenance() argument
1673 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal signal) { in query() argument
1676 return queryInternal(uri, projection, queryArgs, signal); in query()
1683 CancellationSignal signal) { in queryInternal() argument
1839 data = ensureThumbnail(fullUri, signal).getAbsolutePath(); in queryInternal()
1855 selection, selectionArgs, groupBy, having, sortOrder, limit, signal); in queryInternal()
[all …]
/packages/apps/Car/Cluster/src/android/car/cluster/
DPipeThread.java46 int signal = mPipe.read(); in run() local
47 while (signal != NetworkedVirtualDisplay.PIPE_STOP) { in run()
48 Log.i(TAG, "Received non-stop signal: " + signal); in run()
49 signal = mPipe.read(); in run()
DNetworkedVirtualDisplay.java376 int signal = pipe.read(); in tryPipeConnect() local
377 while (signal != PIPE_START) { in tryPipeConnect()
378 Log.i(TAG, "Received non-start signal: " + signal); in tryPipeConnect()
379 signal = pipe.read(); in tryPipeConnect()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java1325 int signal; in handleMessageCheckSignalStrength() local
1329 signal = source.getSignalStrength(); in handleMessageCheckSignalStrength()
1330 return handleSignal(signal); in handleMessageCheckSignalStrength()
1338 protected boolean handleSignal(int signal) { in handleSignal() argument
1339 if (signal == TvInputConstantCompat.SIGNAL_STRENGTH_NOT_USED in handleSignal()
1340 || signal == TvInputConstantCompat.SIGNAL_STRENGTH_ERROR) { in handleSignal()
1341 notifySignal(signal); in handleSignal()
1344 if (signal != mSignalStrength && signal >= 0) { in handleSignal()
1345 notifySignal(signal); in handleSignal()
1353 protected void notifySignal(int signal) { in notifySignal() argument
[all …]
DTunerSessionWorker.java1315 int signal; in handleMessageCheckSignalStrength() local
1319 signal = source.getSignalStrength(); in handleMessageCheckSignalStrength()
1320 return handleSignal(signal); in handleMessageCheckSignalStrength()
1328 protected boolean handleSignal(int signal) { in handleSignal() argument
1329 if (signal == TvInputConstantCompat.SIGNAL_STRENGTH_NOT_USED in handleSignal()
1330 || signal == TvInputConstantCompat.SIGNAL_STRENGTH_ERROR) { in handleSignal()
1331 notifySignal(signal); in handleSignal()
1334 if (signal != mSignalStrength && signal >= 0) { in handleSignal()
1335 notifySignal(signal); in handleSignal()
1343 protected void notifySignal(int signal) { in notifySignal() argument
[all …]
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DFilesActivityPerfTest.java85 final CountDownLatch signal = new CountDownLatch(1); in testFilesListedPerformance() local
107 signal.countDown(); in testFilesListedPerformance()
118 signal.await(); in testFilesListedPerformance()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java264 String documentId, String mode, @Nullable final CancellationSignal signal) in openDocument() argument
291 String documentId, Point sizeHint, final CancellationSignal signal) in openDocumentThumbnail() argument
326 openDocument(documentId, "r", signal), range[0], range[1], extras); in openDocumentThumbnail()
340 openDocument(documentId, "r", signal), 0, entry.getSize(), null); in openDocumentThumbnail()
DArchivesProvider.java216 String documentId, String mode, final CancellationSignal signal) in openDocument() argument
219 return loader.get().openDocument(documentId, mode, signal); in openDocument()
224 String documentId, Point sizeHint, final CancellationSignal signal) in openDocumentThumbnail() argument
227 return loader.get().openDocumentThumbnail(documentId, sizeHint, signal); in openDocumentThumbnail()
DWriteableArchive.java202 String documentId, String mode, @Nullable final CancellationSignal signal) in openDocument() argument
247 if (signal != null) { in openDocument()
248 signal.throwIfCanceled(); in openDocument()
/packages/apps/TV/tuner/src/com/android/tv/tuner/
DDvbTunerHal.java217 private int updatingSignal(int signal) { in updatingSignal() argument
218 int delta = Math.abs(signal - mSignalStrength); in updatingSignal()
220 mSignalStrength = signal; in updatingSignal()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java410 public void sendingSignal(int signal) { in sendingSignal() argument
411 if (signal == PowerHalService.SET_SHUTDOWN_START) { in sendingSignal()
415 if (signal == PowerHalService.SET_DEEP_SLEEP_ENTRY) { in sendingSignal()
419 if (signal == PowerHalService.SET_DEEP_SLEEP_EXIT) { in sendingSignal()
/packages/apps/TV/src/com/android/tv/ui/
DChannelBannerView.java571 int signal = 0;
574 signal = R.drawable.quantum_ic_signal_cellular_0_bar_white_24;
576 signal = R.drawable.quantum_ic_signal_cellular_1_bar_white_24;
578 signal = R.drawable.quantum_ic_signal_cellular_2_bar_white_24;
580 signal = R.drawable.quantum_ic_signal_cellular_3_bar_white_24;
582 signal = R.drawable.quantum_ic_signal_cellular_4_bar_white_24;
585 return signal;
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java184 final CancellationSignal signal = mSignals.remove(volumeName); in onDetachVolume() local
185 if (signal != null) { in onDetachVolume()
186 signal.cancel(); in onDetachVolume()
193 CancellationSignal signal = mSignals.get(volumeName); in getOrCreateSignal() local
194 if (signal == null) { in getOrCreateSignal()
195 signal = new CancellationSignal(); in getOrCreateSignal()
196 mSignals.put(volumeName, signal); in getOrCreateSignal()
198 return signal; in getOrCreateSignal()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java260 final int signal = mConnectivityListener.getCellSignalStrength(); in updateWifi() local
261 switch (signal) { in updateWifi()
284 final int signal = mConnectivityListener.getWifiSignalStrength(5); in updateWifi() local
285 switch (signal) { in updateWifi()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java279 protocol.signal(); in releaseSemaphoreReference()
651 imageShadowTask.getProtocol().signal(); in decrementTaskDone()
899 public void signal() { in signal() method in ImageBackend.BlockSignalProtocol
901 mSignal.signal(); in signal()
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/
Dtif_events.proto42 // Notifies the TV Application the current signal strength.
44 // The signal strength as a percent (0 to 100),
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfp.cpp392 void AtBiaCallback(bool service, bool roam, bool signal, bool battery, in AtBiaCallback() argument
402 signal, battery, addr.get()); in AtBiaCallback()
666 jint signal, jint battery_charge, in notifyDeviceStatusNative() argument
681 (bluetooth::headset::bthf_service_type_t)service_type, signal, in notifyDeviceStatusNative()
716 jint call_state, jint signal, jint roam, in cindResponseNative() argument
731 (bluetooth::headset::bthf_call_state_t)call_state, signal, roam, in cindResponseNative()

123