/packages/modules/StatsD/statsd/src/ |
D | FieldValue.h | 36 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth); 38 int32_t encodeMatcherMask(int32_t mask[], int32_t depth); 88 Field(int32_t tag, int32_t pos[], int32_t depth) : mTag(tag) { in Field() 89 mField = getEncodedField(pos, depth, true); in Field() 105 inline void decorateLastPos(int32_t depth) { in decorateLastPos() 106 int32_t mask = kLastBitMask << 8 * (kMaxLogDepth - depth); in decorateLastPos() 118 inline int32_t getPath(int32_t depth) const { in getPath() 119 if (depth > 2 || depth < 0) return 0; in getPath() 123 return (field & (mask << 8 * (kMaxLogDepth - depth))); in getPath() 126 inline int32_t getPrefix(int32_t depth) const { in getPrefix() [all …]
|
D | FieldValue.cpp | 30 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth) { in getEncodedField() argument 32 for (int32_t i = 0; i <= depth; i++) { in getEncodedField() 38 field |= (depth << 24); in getEncodedField() 43 int32_t encodeMatcherMask(int32_t mask[], int32_t depth) { in encodeMatcherMask() argument 44 return getEncodedField(mask, depth, false) | 0xff000000; in encodeMatcherMask() 74 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument 76 if (depth > kMaxLogDepth) { in translateFieldMatcher() 81 pos[depth] = matcher.field(); in translateFieldMatcher() 82 mask[depth] = 0x7f; in translateFieldMatcher() 85 depth++; in translateFieldMatcher() [all …]
|
D | stats_log_util.cpp | 106 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() argument 113 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper() 114 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper() 122 if ((depth == valueDepth || valueDepth == 1) && valuePrefix == prefix) { in writeDimensionToProtoHelper() 156 } else if (valueDepth == depth + 2 && valuePrefix == prefix) { in writeDimensionToProtoHelper() 175 const int dimensionLeafField, size_t* index, int depth, in writeDimensionLeafToProtoHelper() argument 182 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionLeafToProtoHelper() 189 if ((depth == valueDepth || valueDepth == 1) && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper() 222 } else if (valueDepth == depth + 2 && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper() 234 size_t* index, int depth, int prefix, in writeDimensionPathToProtoHelper() argument [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | BaseDepthController.java | 45 public void setValue(BaseDepthController depthController, float depth) { 46 depthController.setDepth(depth); 132 float depth = mDepth; in applyDepthAndBlur() local 136 mWallpaperManager.setWallpaperZoomOut(windowToken, depth); in applyDepthAndBlur() 141 mWallpaperManager.setWallpaperZoomOut(windowToken, depth / 3); in applyDepthAndBlur() 164 blurAmount = mapDepthToBlur(depth); in applyDepthAndBlur() 166 blurAmount = depth; in applyDepthAndBlur() 177 boolean wantsEarlyWakeUp = depth > 0 && depth < 1; in applyDepthAndBlur() 193 private void setDepth(float depth) { 194 depth = Utilities.boundToRange(depth, 0, 1); [all …]
|
/packages/modules/StatsD/statsd/src/logd/ |
D | LogEvent.h | 275 void parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 276 void parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 277 void parseString(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 278 void parseFloat(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 279 void parseBool(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 280 void parseByteArray(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 281 void parseKeyValuePairs(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 282 void parseAttributionChain(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 283 void parseArray(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations); 345 void addToValues(int32_t* pos, int32_t depth, T& value, bool* last) { in addToValues() argument [all …]
|
D | LogEvent.cpp | 95 void LogEvent::parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt32() argument 97 addToValues(pos, depth, value, last); in parseInt32() 101 void LogEvent::parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt64() argument 103 addToValues(pos, depth, value, last); in parseInt64() 107 void LogEvent::parseString(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseString() argument 117 addToValues(pos, depth, value, last); in parseString() 121 void LogEvent::parseFloat(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseFloat() argument 123 addToValues(pos, depth, value, last); in parseFloat() 127 void LogEvent::parseBool(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseBool() argument 130 addToValues(pos, depth, value, last); in parseBool() [all …]
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/ |
D | RoleParser.java | 194 int depth; in parseXml() local 197 && ((depth = parser.getDepth()) >= innerDepth in parseXml() 199 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseXml() 229 int depth; in parseRoles() local 232 && ((depth = parser.getDepth()) >= innerDepth in parseRoles() 234 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseRoles() 284 int depth; in parsePermissionSet() local 287 && ((depth = parser.getDepth()) >= innerDepth in parsePermissionSet() 289 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parsePermissionSet() 466 int depth; in parseRole() local [all …]
|
/packages/modules/Virtualization/libs/libfdt/src/ |
D | lib.rs | 162 pub fn supernode_at_depth(&self, depth: usize) -> Result<Self> { in supernode_at_depth() 163 let offset = self.fdt.supernode_atdepth_offset(self.offset, depth)?; in supernode_at_depth() 299 fn next_node(&self, depth: usize) -> Result<Option<(Self, usize)>> { in next_node() 300 if let Some((offset, depth)) = self.fdt.next_node(self.offset, depth)? { in next_node() 301 Ok(Some((Self { fdt: self.fdt, offset }, depth))) in next_node() 487 pub fn next_node(self, depth: usize) -> Result<Option<(Self, usize)>> { in next_node() 488 let next = self.fdt.next_node(self.offset, depth)?; in next_node() 490 Ok(next.map(|(offset, depth)| (Self { fdt: self.fdt, offset }, depth))) in next_node() 500 pub fn next_node_skip_subnodes(self, depth: usize) -> Result<Option<(Self, usize)>> { in next_node_skip_subnodes() 501 let next = self.fdt.next_node_skip_subnodes(self.offset, depth)?; in next_node_skip_subnodes() [all …]
|
D | libfdt.rs | 109 fn next_node(&self, node: NodeOffset, depth: usize) -> Result<Option<(NodeOffset, usize)>> { in next_node() 112 let mut depth = depth.try_into().unwrap(); in next_node() localVariable 114 let ret = unsafe { libfdt_bindgen::fdt_next_node(fdt, node, &mut depth) }; in next_node() 117 Some(offset) if depth >= 0 => { in next_node() 118 let depth = depth.try_into().unwrap(); in next_node() localVariable 119 Ok(Some((offset, depth))) in next_node() 141 fn supernode_atdepth_offset(&self, node: NodeOffset, depth: usize) -> Result<NodeOffset> { in supernode_atdepth_offset() 144 let depth = depth.try_into().unwrap(); in supernode_atdepth_offset() localVariable 148 unsafe { libfdt_bindgen::fdt_supernode_atdepth_offset(fdt, node, depth, nodedepth) }; in supernode_atdepth_offset()
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 165 static pair<int, int> getStartEndAtDepth(int targetField, int start, int end, int depth, in getStartEndAtDepth() argument 173 int pos = values[i].mField.getPosAtDepth(depth); in getStartEndAtDepth() 198 int& depth) { in computeRanges() argument 200 std::tie(start, end) = getStartEndAtDepth(matcher.field(), start, end, depth, values); in computeRanges() 210 depth++; in computeRanges() 211 if (depth > 2) { in computeRanges() 217 int pos = values[i].mField.getPosAtDepth(depth); in computeRanges() 231 if (values[i].mField.isLastPos(depth)) { in computeRanges() 261 int currentPos = values[start].mField.getPosAtDepth(depth); in computeRanges() 264 int newPos = values[i].mField.getPosAtDepth(depth); in computeRanges() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | MosaicRendererSurfaceView.java | 51 int depth, int stencil) { in MosaicRendererSurfaceView() argument 53 initialize(context, translucent, depth, stencil); in MosaicRendererSurfaceView() 56 private void initialize(Context context, boolean translucent, int depth, int stencil) { in initialize() argument 58 init(translucent, depth, stencil); in initialize() 68 private void init(boolean translucent, int depth, int stencil) { in init() argument 90 translucent ? new ConfigChooser(8, 8, 8, 8, depth, stencil) : in init() 91 new ConfigChooser(5, 6, 5, 0, depth, stencil)); in init() 126 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument 131 mDepthSize = depth; in ConfigChooser()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ProfileData.java | 131 private void writeOneStack(Node node, int depth) throws IOException { in writeOneStack() argument 133 writeInt(depth); in writeOneStack() 134 while (depth-- > 0) { in writeOneStack() 140 private void writeAllStacks(Node node, int depth) throws IOException { in writeAllStacks() argument 142 writeOneStack(node, depth); in writeAllStacks() 148 writeAllStacks(children.get(i), depth + 1); in writeAllStacks() local
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkCallbackAidlImpl.java | 141 int depth, in onServerCertificateAvailable() argument 147 if (depth < 0 || depth > 100) { in onServerCertificateAvailable() 148 mNetworkHal.logCallback("onServerCertificateAvailable: invalid depth " + depth); in onServerCertificateAvailable() 165 + " depth=" + depth in onServerCertificateAvailable() 207 + " depth=" + depth in onServerCertificateAvailable() 212 mIfaceName, mFrameworkNetworkId, mSsid, depth, in onServerCertificateAvailable()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperParserImpl.kt | 54 val depth = parser.depth in parseSystemCategories() constant 58 parser.depth > depth) && type != XmlPullParser.END_DOCUMENT in parseSystemCategories() 134 val categoryDepth = parser.depth in parseXmlForWallpapersForASingleCategory() 138 parser.depth > categoryDepth) && type != XmlPullParser.END_DOCUMENT in parseXmlForWallpapersForASingleCategory()
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | InstanceNormalization.cpp | 45 uint32_t depth = getSizeOfDimension(inputShape, 3); in instanceNormNhwc() local 47 for (uint32_t d = 0; d < depth; d++) { in instanceNormNhwc() 48 uint32_t indexBase = b * height * width * depth + d; in instanceNormNhwc() 54 T val = inputData[indexBase + (h * width + w) * depth]; in instanceNormNhwc() 63 T val = inputData[indexBase + (h * width + w) * depth] - mean; in instanceNormNhwc() 72 uint32_t ind = indexBase + (h * width + w) * depth; in instanceNormNhwc()
|
/packages/modules/Virtualization/libs/libfdt/tests/ |
D | api_test.rs | 136 let mut depth = 0; in node_supernode_at_depth() localVariable 137 while let Ok(supernode) = node.supernode_at_depth(depth) { in node_supernode_at_depth() 139 depth += 1; in node_supernode_at_depth() 363 node_z.descendants().map(|(node, depth)| (node.name().unwrap(), depth)).collect(); in node_descendants() 420 while let Some((node, depth)) = iter { in node_mut_delete_and_next_node() 423 iter = node.delete_and_next_node(depth).unwrap(); in node_mut_delete_and_next_node() 428 assert_eq!(expected_node, Some(&(node_name, depth))); in node_mut_delete_and_next_node() 429 iter = node.next_node(depth).unwrap(); in node_mut_delete_and_next_node() 436 root.descendants().map(|(node, depth)| (node.name(), depth)).collect(); in node_mut_delete_and_next_node() 446 while let Some((node, depth)) = iter { in node_mut_delete_and_next_node_with_last_node() [all …]
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | DnsPacketUtils.java | 134 public static String parseName(final ByteBuffer buf, int depth, in parseName() argument 137 return parseName(buf, depth, MAXLABELCOUNT, isNameCompressionSupported); in parseName() 148 public static String parseName(final ByteBuffer buf, int depth, int maxLabelCount, in parseName() argument 151 if (depth > maxLabelCount) { in parseName() 170 final String pointed = parseName(buf, depth + 1, maxLabelCount, in parseName() 181 final String tail = parseName(buf, depth + 1, maxLabelCount, in parseName()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | PreferenceInflater.java | 87 int depth = parser.getDepth(); in inflate() local 88 if (depth > list.size()) { in inflate() 91 list.set(depth - 1, pref); in inflate() 93 if (depth > 1) { in inflate() 94 ((PreferenceGroup) list.get(depth - 2)).addChild(pref); in inflate()
|
/packages/modules/Permission/service/java/com/android/role/persistence/ |
D | RolesPersistenceImpl.java | 124 int depth; in parseXml() local 127 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseXml() 128 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseXml() 148 int depth; in parseRoles() local 151 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRoles() 152 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRoles() 175 int depth; in parseRoleHolders() local 178 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRoleHolders() 179 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRoleHolders()
|
/packages/modules/Permission/service/java/com/android/permission/persistence/ |
D | RuntimePermissionsPersistenceImpl.java | 128 int depth; in parseXml() local 131 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseXml() 132 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseXml() 157 int depth; in parseRuntimePermissions() local 160 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRuntimePermissions() 161 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRuntimePermissions() 192 int depth; in parsePermissions() local 195 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parsePermissions() 196 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parsePermissions()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | AttributionLabelLiveData.kt | 134 var depth = 1 in skipTag() variable 135 while (depth != 0) { in skipTag() 137 END_TAG -> depth-- in skipTag() 138 START_TAG -> depth++ in skipTag()
|
/packages/apps/Dialer/java/com/android/dialer/common/database/ |
D | Selection.java | 259 int depth = 1; in parenthesized() local 263 depth++; in parenthesized() 266 depth--; in parenthesized() 267 if (depth == 0) { in parenthesized() 277 Assert.checkArgument(depth == 1); in parenthesized()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | context.py | 28 def get_current_context(depth=None): argument 40 if depth is None: 42 return _contexts[min(depth, len(_contexts) - 1)]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioParserUtils.java | 180 int depth = 1; in skip() local 181 while (depth != 0) { in skip() 184 depth--; in skip() 187 depth++; in skip()
|
/packages/modules/Bluetooth/system/gd/ |
D | module_jniloop_unittest.cc | 67 std::shared_ptr<TestJniModule::PrivateImpl> ptr, int depth, double b, char c) { in privateCallableRecursiveMethod() 68 if (depth > kMaxTestModuleRecurseDepth) { in privateCallableRecursiveMethod() 72 PostMethodOnJni(ptr, &PrivateImpl::privateCallableRecursiveMethod, ptr, depth + 1, b, c); in privateCallableRecursiveMethod() 114 void TestJniModule::call_on_jni_recurse(int loop_tid, int depth, int b, int c) { in call_on_jni_recurse() argument 118 pimpl_, &TestJniModule::PrivateImpl::privateCallableRecursiveMethod, pimpl_, depth, b, c); in call_on_jni_recurse()
|