/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/dvb/ |
D | DvbTunerHalTest.java | 48 int signal = mDvbTunerHal.getSignalStrength(); in getSignalStrength_notUsed() local 49 assertThat(signal).isEqualTo(TvInputConstantCompat.SIGNAL_STRENGTH_NOT_USED); in getSignalStrength_notUsed() 55 int signal = mDvbTunerHal.getSignalStrength(); in getSignalStrength_errorMax() local 56 assertThat(signal).isEqualTo(TvInputConstantCompat.SIGNAL_STRENGTH_ERROR); in getSignalStrength_errorMax() 62 int signal = mDvbTunerHal.getSignalStrength(); in getSignalStrength_errorMin() local 63 assertThat(signal).isEqualTo(TvInputConstantCompat.SIGNAL_STRENGTH_ERROR); in getSignalStrength_errorMin() 69 int signal = mDvbTunerHal.getSignalStrength(); in getSignalStrength_error() local 70 assertThat(signal).isEqualTo(TvInputConstantCompat.SIGNAL_STRENGTH_ERROR); in getSignalStrength_error() 76 int signal = mDvbTunerHal.getSignalStrength(); in getSignalStrength_curvedMax() local 77 assertThat(signal).isEqualTo(100); in getSignalStrength_curvedMax() [all …]
|
/packages/modules/Bluetooth/system/blueberry/utils/ |
D | bt_audio_utils.py | 9 from scipy import signal as scipy_signal 81 def measure_fundamental_frequency(signal, sample_rate): argument 91 return sample_rate * (np.argmax(np.abs(np.fft.rfft(signal))) / len(signal)) 94 def measure_rms(signal): argument 103 return np.sqrt(np.mean(np.absolute(signal)**2)) 106 def measure_thdn(signal, sample_rate, q, frequency=None): argument 121 signal -= np.mean(signal) 123 window = signal * scipy_signal.blackmanharris(len(signal)) 186 for signal in channel_signals: 189 while current_position + window_size <= len(signal): [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | DBProtectedSignalTest.java | 38 DBProtectedSignal signal = in testCreateSignal() local 46 assertNull(signal.getId()); in testCreateSignal() 47 assertEquals(CommonFixture.VALID_BUYER_1, signal.getBuyer()); in testCreateSignal() 48 assertArrayEquals(DBProtectedSignalFixture.KEY, signal.getKey()); in testCreateSignal() 49 assertArrayEquals(DBProtectedSignalFixture.VALUE, signal.getValue()); in testCreateSignal() 50 assertEquals(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI, signal.getCreationTime()); in testCreateSignal() 51 assertEquals(CommonFixture.TEST_PACKAGE_NAME_1, signal.getPackageName()); in testCreateSignal() 56 DBProtectedSignal signal = in testBuildSignal() local 65 assertNull(signal.getId()); in testBuildSignal() 66 assertEquals(CommonFixture.VALID_BUYER_1, signal.getBuyer()); in testBuildSignal() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/nodes/ |
D | DtmfEncoderNode.cpp | 63 mConditionDtmf.signal(); in Stop() 140 mConditionDtmf.signal(); in OnDataFromFrontNode() 156 mConditionExit.signal(); in run() 274 bool DtmfEncoderNode::convertSignal(uint8_t digit, uint8_t& signal) in convertSignal() argument 278 signal = digit - '0'; in convertSignal() 280 signal = 10; in convertSignal() 282 signal = 11; in convertSignal() 284 signal = 12; in convertSignal() 286 signal = 13; in convertSignal() 288 signal = 14; in convertSignal() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScoreCardBasedScorer.java | 119 WifiScoreCardProto.Signal signal = candidate.getEventStatistics(Event.SIGNAL_POLL); in estimatedCutoff() local 120 if (signal == null) return cutoff; in estimatedCutoff() 121 if (!signal.hasRssi()) return cutoff; in estimatedCutoff() 122 if (signal.getRssi().getCount() > MIN_POLLS_FOR_SIGNIFICANCE) { in estimatedCutoff() 123 double mean = signal.getRssi().getSum() / signal.getRssi().getCount(); in estimatedCutoff() 124 double mean_square = signal.getRssi().getSumOfSquares() / signal.getRssi().getCount(); in estimatedCutoff()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetAgIndicatorEnableState.java | 22 public boolean signal; field in HeadsetAgIndicatorEnableState 29 signal = newSignal; in HeadsetAgIndicatorEnableState() 41 && signal == other.signal in equals() 50 if (signal) result += 4; in hashCode() 66 .append(signal) in buildString()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | AppSearchMaintenanceService.java | 105 final CancellationSignal signal; in onStartJob() local 115 signal = new CancellationSignal(); in onStartJob() 116 mSignalsLocked.put(userId, signal); in onStartJob() 118 EXECUTOR.execute(() -> doFullyPersistJobForUser(this, params, userId, signal)); in onStartJob() 130 Context context, JobParameters params, int userId, CancellationSignal signal) { in doFullyPersistJobForUser() argument 152 if (signal == mSignalsLocked.get(userId)) { in doFullyPersistJobForUser() 176 final CancellationSignal signal = mSignalsLocked.get(userId); in onStopJob() local 177 if (signal != null) { in onStopJob() 178 signal.cancel(); in onStopJob()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/indexer/ |
D | IndexerMaintenanceService.java | 226 final CancellationSignal signal = new CancellationSignal(); in onStartJob() local 228 mSignals.put(userHandle, signal); in onStartJob() 230 mExecutor.execute(() -> doUpdateForUser(this, params, userHandle, signal)); in onStartJob() 254 @NonNull CancellationSignal signal) { in doUpdateForUser() argument 258 Objects.requireNonNull(signal); in doUpdateForUser() 279 service.doUpdateForUser(userHandle, signal); in doUpdateForUser() 284 jobFinished(params, signal.isCanceled()); in doUpdateForUser() 286 if (signal == mSignals.get(userHandle)) { in doUpdateForUser() 312 final CancellationSignal signal = mSignals.get(userHandle); in onStopJob() local 313 if (signal != null) { in onStopJob() [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | test_decorators.py | 90 except (signals.TestFailure, signals.TestError, AssertionError) as signal: 91 test_signals_received.append(signal) 93 except signals.TestPass as signal: 94 test_signals_received.append(signal) 98 except Exception as signal: 99 test_signals_received.append(signal) 173 except signals.TestSignal as signal: 174 new_signal = signal
|
D | gd_base_test.py | 21 import signal 52 signal.signal(signal.SIGALRM, self.handle_timeout) 53 signal.alarm(self.seconds) 56 signal.alarm(0) 206 stop_signal = signal.SIGINT 212 stop_signal = signal.SIGKILL
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | ProtectedSignalsArgumentUtilTest.java | 61 ProtectedSignal signal = generateSignal("signal1"); in testJSArgument() local 62 mSignals.put(getBase64String("test_key"), List.of(signal)); in testJSArgument() 88 ProtectedSignal signal = generateSignal("signal1"); in testSingleSignal() local 89 mSignals.put(getBase64String("test_key"), List.of(signal)); in testSingleSignal() 105 ProtectedSignal signal = generateSignal("signal1"); in testHandleInvalidBase64Signal() local 106 mSignals.put("non_base64_string", List.of(signal)); in testHandleInvalidBase64Signal() 150 ProtectedSignal signal = in handleEmptyValue() local 156 mSignals.put(getBase64String("test_key"), List.of(signal)); in handleEmptyValue()
|
D | ProtectedSignalTest.java | 37 ProtectedSignal signal = in testCreateProtectedSignal() local 43 assertEquals(VALUE, signal.getBase64EncodedValue()); in testCreateProtectedSignal() 44 assertEquals(CommonFixture.FIXED_NOW, signal.getCreationTime()); in testCreateProtectedSignal() 45 assertEquals(CommonFixture.TEST_PACKAGE_NAME_1, signal.getPackageName()); in testCreateProtectedSignal()
|
D | SignalsFixture.java | 144 private static String signalToStringNoTimeOrId(DBProtectedSignal signal) { in signalToStringNoTimeOrId() argument 148 signal.getBuyer().toString(), in signalToStringNoTimeOrId() 149 toBase64(signal.getKey()), in signalToStringNoTimeOrId() 150 toBase64(signal.getValue()), in signalToStringNoTimeOrId() 151 signal.getPackageName())); in signalToStringNoTimeOrId()
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | main.rs | 6 use nix::sys::signal; 258 let sig_action_term = signal::SigAction::new( in main() 259 signal::SigHandler::Handler(handle_sigterm), in main() 260 signal::SaFlags::empty(), in main() 261 signal::SigSet::empty(), in main() 264 let sig_action_int = signal::SigAction::new( in main() 265 signal::SigHandler::Handler(handle_sigint), in main() 266 signal::SaFlags::empty(), in main() 267 signal::SigSet::empty(), in main() 271 signal::sigaction(signal::SIGTERM, &sig_action_term).unwrap(); in main() [all …]
|
/packages/modules/Bluetooth/floss/hcidoc/src/groups/ |
D | collisions.rs | 135 let signal: Option<CollisionSignal> = in process() localVariable 138 if let Some(signal) = signal { in process() 142 tag: signal.into(), in process() 170 let signal = self.get_signal_type(&OpCode::RemoteNameRequest); in process() localVariable 172 if let Some(signal) = signal { in process() 176 tag: signal.into(), in process()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/ |
D | main.rs | 12 use nix::sys::signal; 136 let sig_action = signal::SigAction::new( in install_sigint() 137 signal::SigHandler::Handler(handle_sigint), in install_sigint() 138 signal::SaFlags::empty(), in install_sigint() 139 signal::SigSet::empty(), in install_sigint() 146 signal::sigaction(signal::SIGINT, &sig_action).unwrap(); in install_sigint()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/ |
D | CancellationSignalUtils.kt | 29 suspend fun <R> withCancellationSignal(block: suspend (signal: CancellationSignal) -> R): R = in withCancellationSignal() 31 val signal = CancellationSignal() in withCancellationSignal() constant 37 signal.cancel() in withCancellationSignal() 40 block(signal).also { signalJob.cancel() } in withCancellationSignal()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | VCardRequest.java | 91 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/ |
D | MediaResourceManagerTest.java | 136 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/modules/Bluetooth/system/audio/asrc/ |
D | asrc_butter.py | 19 import scipy.signal as signal namespace 21 b, a = signal.butter(2, 1. / 60)
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | ForwardingContentProvider.java | 142 CancellationSignal signal) { in openFile() argument 144 return mClient.openFile(url, mode, signal); in openFile() 163 CancellationSignal signal) { in openAssetFile() argument 165 return mClient.openAssetFile(url, mode, signal); in openAssetFile() 181 Bundle opts, CancellationSignal signal) { in openTypedAssetFileDescriptor() argument 183 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts, signal); in openTypedAssetFileDescriptor()
|
/packages/modules/Bluetooth/floss/hcidoc/src/ |
D | engine.rs | 70 for signal in rule.report_signals() { in report_signals() 71 let _ = writeln!(writer, "({}, {}, {})", signal.index, signal.ts, signal.tag); in report_signals()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/evict/ |
D | SignalSizeCalculator.java | 34 public static int calculate(@NonNull DBProtectedSignal signal) { in calculate() argument 35 return signal.getKey().length + signal.getValue().length; in calculate()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpManagerTest.java | 62 final CancellationSignal signal = new CancellationSignal(); in testCancelEvent() local 69 mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testCancelEvent() 79 signal.cancel(); in testCancelEvent() 107 final CancellationSignal signal = new CancellationSignal(); in testEventObjectAdded() local 108 MtpEvent event = mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testEventObjectAdded()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/ |
D | UpdateProcessingOrchestrator.java | 157 for (DBProtectedSignal signal : currentSignalList) { in updateProtectedSignalInMemory() 158 if (!combinedOutput.getToRemove().contains(signal)) { in updateProtectedSignalInMemory() 159 updatedSignalList.add(signal); in updateProtectedSignalInMemory() 183 for (DBProtectedSignal signal : currentSignalsList) { in getCurrentSignalsMap() 184 ByteBuffer wrappedKey = ByteBuffer.wrap(signal.getKey()); in getCurrentSignalsMap() 188 toReturn.get(wrappedKey).add(signal); in getCurrentSignalsMap()
|