Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/Bluetooth/tools/pdl/src/
Dlint.rs122 fn err_redeclared(&mut self, id: &str, kind: &str, loc: &SourceRange, prev: &SourceRange) { in err_redeclared()
128 prev.secondary().with_message(format!("`{}` is first declared here", id)), in err_redeclared()
143 self.checksums.insert(field_id.clone(), FieldPath(vec![field])).map(|prev| { in insert()
152 prev.loc() in insert()
163 self.sizes.insert(field_id.clone(), FieldPath(vec![field])).map(|prev| { in insert()
172 prev.loc().secondary().with_message("size is first declared here"), in insert()
179 if let Some(prev) = self.payload.as_ref() { in insert()
185 prev.loc() in insert()
200 .map(|prev| result.err_redeclared(id, "field", loc, prev.loc())), in insert()
203 self.groups.insert(group_id.clone(), field).map(|prev| { in insert()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_l2cap.cc43 struct packet *next, *prev; member
49 struct l2cap_socket* prev; // link to prev list item member
115 sock->first_packet->prev = NULL; in packet_get_head_l()
150 p->prev = NULL; in packet_put_head_l()
154 p->next->prev = p; in packet_put_head_l()
174 p->prev = sock->last_packet; in packet_put_tail_l()
176 if (p->prev) in packet_put_tail_l()
177 p->prev->next = p; in packet_put_tail_l()
221 if (sock->next) sock->next->prev = sock->prev; in btsock_l2cap_free_l()
223 if (sock->prev) in btsock_l2cap_free_l()
[all …]
/packages/modules/Virtualization/libs/idsig/src/
Dhashtree.rs101 let prev = &levels[n - 1]; in generate_hash_tree() localVariable
102 let cur_and_prev = &mut hash_tree[cur.start..prev.end]; in generate_hash_tree()
103 let (cur, prev) = cur_and_prev.split_at_mut(prev.start - cur.start); in generate_hash_tree()
105 prev.chunks(block_size).for_each(|data| { in generate_hash_tree()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java275 final NeighborEvent prev = mNeighborWatchList.put(event.ip, event);
282 mLog.w("ALERT neighbor went from: " + prev + " to: " + event);
285 handleNeighborReachable(prev, event);
341 @Nullable final NeighborEvent prev, @NonNull final NeighborEvent event) {
342 if (prev == null || !isNeighborDefaultRouter(event)) return false;
343 return !event.macAddr.equals(prev.macAddr);
404 private void handleNeighborReachable(@Nullable final NeighborEvent prev,
407 && hasDefaultRouterNeighborMacAddressChanged(prev, event)) {
413 + " MAC address changed from: " + prev.macAddr
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java372 final UpstreamNetworkState prev = mNetworkMap.get(network); in handleNetCap() local
373 if (prev == null || newNc.equals(prev.networkCapabilities)) { in handleNetCap()
386 prev.linkProperties, newNc, network)); in handleNetCap()
394 final UpstreamNetworkState prev = mNetworkMap.get(network); in updateLinkProperties() local
395 if (prev == null || newLp.equals(prev.linkProperties)) { in updateLinkProperties()
413 final UpstreamNetworkState ns = new UpstreamNetworkState(newLp, prev.networkCapabilities, in updateLinkProperties()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DNgramContextUtils.java59 public static NgramContext getNgramContextFromNthPreviousWord(final CharSequence prev, in getNgramContextFromNthPreviousWord() argument
61 if (prev == null) return NgramContext.EMPTY_PREV_WORDS_INFO; in getNgramContextFromNthPreviousWord()
62 final String[] lines = NEWLINE_REGEX.split(prev); in getNgramContextFromNthPreviousWord()
/packages/modules/Bluetooth/system/osi/src/
Dlist.cc152 for (list_node_t *prev = list->head, *node = list->head->next; node; in list_remove() local
153 prev = node, node = node->next) in list_remove()
155 prev->next = list_free_node_(list, node); in list_remove()
156 if (list->tail == node) list->tail = prev; in list_remove()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java663 final CharSequence prev = getTextBeforeCursor(NUM_CHARS_TO_GET_BEFORE_CURSOR, 0); in getNgramContextFromNthPreviousWord() local
664 if (DEBUG_PREVIOUS_TEXT && null != prev) { in getNgramContextFromNthPreviousWord()
666 final String reference = prev.length() <= checkLength ? prev.toString() in getNgramContextFromNthPreviousWord()
667 : prev.subSequence(prev.length() - checkLength, prev.length()).toString(); in getNgramContextFromNthPreviousWord()
683 prev, spacingAndPunctuations, n); in getNgramContextFromNthPreviousWord()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/
DBlueletImpl.java425 int prev = prevState.getValue(); in onAdapterStateChange() local
427 LOGGER.d("Bluetooth State Change Intent: " + State.lookup(prev) + " -> " + State.lookup( in onAdapterStateChange()
430 intent.putExtra(BluetoothAdapter.EXTRA_PREVIOUS_STATE, prev); in onAdapterStateChange()
437 int prev = prevState.getValue(); in onBleStateChange() local
439 LOGGER.d("BLE State Change Intent: " + State.lookup(prev) + " -> " + State.lookup(cur)); in onBleStateChange()
441 intent.putExtra(BluetoothAdapter.EXTRA_PREVIOUS_STATE, prev); in onBleStateChange()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dbluetooth_manager.rs127 let prev = self.manager_context.floss_enabled.swap(enabled, Ordering::Relaxed); in set_floss_enabled() localVariable
129 if prev != enabled && enabled { in set_floss_enabled()
138 } else if prev != enabled { in set_floss_enabled()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dpacket_def.cc1209 const ParentDef* prev = nullptr; in GenRustAccessStructImpls() local
1215 if (prev == nullptr) { in GenRustAccessStructImpls()
1218 …s << "let " << accessor_name << " = match &" << util::CamelCaseToUnderScore(prev->name_) << ".chil… in GenRustAccessStructImpls()
1219 s << prev->name_ << "DataChild::" << def->name_ << "(value) => (*value).clone(),"; in GenRustAccessStructImpls()
1223 prev = def; in GenRustAccessStructImpls()
1292 const ParentDef* prev = nullptr; in GenRustBuilderStructImpls() local
1326 if (prev == nullptr) { in GenRustBuilderStructImpls()
1336 s << "child: " << ancestor->name_ << "DataChild::" << prev->name_ << "(" in GenRustBuilderStructImpls()
1337 << util::CamelCaseToUnderScore(prev->name_) << "),"; in GenRustBuilderStructImpls()
1341 prev = ancestor; in GenRustBuilderStructImpls()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java112 float prev = 0; in drawHistogram() local
118 float v = h - (l + prev) / 2.0f; in drawHistogram()
124 prev = l; in drawHistogram()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java302 ImageData prev = data.naturalPrevious(); in naturalPrevious() local
303 if (prev != null) { in naturalPrevious()
304 image = load(prev, options, longSide, shortSide); in naturalPrevious()
305 mImageMap.put(image, prev); in naturalPrevious()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java110 SampleChunk prev) in loadSampleChunkFromFile() argument
114 if (prev != null) { in loadSampleChunkFromFile()
115 prev.mNextChunk = chunk; in loadSampleChunkFromFile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunk.java127 SampleChunk prev) { in loadSampleChunkFromFile() argument
131 if (prev != null) { in loadSampleChunkFromFile()
132 prev.mNextChunk = chunk; in loadSampleChunkFromFile()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCacheProcessing.java197 Bitmap prev = cacheBitmap; in process() local
199 if (prev != cacheBitmap) { in process()
200 environment.cache(prev); in process()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.kt128 val prev: Fragment? = manager.findFragmentByTag(TAG) in <lambda>() constant
129 prev?.let { in <lambda>()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DQueryFilteringUtil.java123 char prev = t9Name.charAt(i - 1); in getIndexOfT9Substring() local
125 if (!Character.isDigit(prev) && t9NameDigitsOnly.startsWith(query, offset)) { in getIndexOfT9Substring()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java1178 final ViewItem prev = mViewItems[i - 1]; in layoutViewItems() local
1180 prev.getLeftPosition() + prev.getMeasuredWidth() in layoutViewItems()
1372 int prev = curr - 1; in animateItemRemoval() local
1373 if (mViewItems[prev] != null) { in animateItemRemoval()
1374 mViewItems[curr] = buildViewItemAt(mViewItems[prev].getAdapterIndex() + 1); in animateItemRemoval()
1481 int prev = findItemInBufferByAdapterIndex(index - 1); in updateInsertion() local
1482 if (prev >= 0 && prev < BUFFER_SIZE - 1) { in updateInsertion()
1485 bufferIndex = prev + 1; in updateInsertion()
1777 ViewItem prev = mViewItems[i - 1]; in update() local
1778 if (prev != null) { in update()
[all …]
/packages/modules/Bluetooth/system/gd/common/
Dlru_cache.h148 evicted_node = list_map_.extract(std::prev(list_map_.end())->first); in insert_or_assign()
170 evicted_node = list_map_.extract(std::prev(list_map_.end())->first); in try_emplace()
/packages/modules/SdkExtensions/gen_sdk/
Dgen_sdk.py99 prev = prev_requirements[requirement.module]
100 if prev.version > requirement.version.version:
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DStateMachine.java227 State prev = mStatesList.getLast(); in updateState() local
228 prev.processBackward(); in updateState()
/packages/modules/Connectivity/framework/src/android/net/util/
DMultinetworkPolicyTracker.java227 final boolean prev = mAvoidBadWifi; in updateAvoidBadWifi()
229 return mAvoidBadWifi != prev; in updateAvoidBadWifi()
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.cpp351 auto prev = mCurrentFullCounters->find(eventKey); in onMatchedLogEventInternalLocked() local
352 if (prev != mCurrentFullCounters->end()) { in onMatchedLogEventInternalLocked()
353 countWholeBucket += prev->second; in onMatchedLogEventInternalLocked()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCurves.java390 float prev = 0; in drawHistogram() local
396 float v = h - (l + prev) / 2.0f; in drawHistogram()
402 prev = l; in drawHistogram()

12