Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/StatsD/statsd/src/
DFieldValue.h37 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth);
39 int32_t encodeMatcherMask(int32_t mask[], int32_t depth);
89 Field(int32_t tag, int32_t pos[], int32_t depth) : mTag(tag) { in Field()
90 mField = getEncodedField(pos, depth, true); in Field()
106 inline void decorateLastPos(int32_t depth) { in decorateLastPos()
107 int32_t mask = kLastBitMask << 8 * (kMaxLogDepth - depth); in decorateLastPos()
119 inline int32_t getPath(int32_t depth) const { in getPath()
120 if (depth > 2 || depth < 0) return 0; in getPath()
124 return (field & (mask << 8 * (kMaxLogDepth - depth))); in getPath()
127 inline int32_t getPrefix(int32_t depth) const { in getPrefix()
[all …]
DFieldValue.cpp27 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth) { in getEncodedField() argument
29 for (int32_t i = 0; i <= depth; i++) { in getEncodedField()
35 field |= (depth << 24); in getEncodedField()
40 int32_t encodeMatcherMask(int32_t mask[], int32_t depth) { in encodeMatcherMask() argument
41 return getEncodedField(mask, depth, false) | 0xff000000; in encodeMatcherMask()
60 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument
62 if (depth > kMaxLogDepth) { in translateFieldMatcher()
67 pos[depth] = matcher.field(); in translateFieldMatcher()
68 mask[depth] = 0x7f; in translateFieldMatcher()
71 depth++; in translateFieldMatcher()
[all …]
Dstats_log_util.cpp105 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() argument
112 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper()
113 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper()
119 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
154 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
174 size_t* index, int depth, in writeDimensionLeafToProtoHelper() argument
181 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionLeafToProtoHelper()
187 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
221 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
233 size_t* index, int depth, int prefix, in writeDimensionPathToProtoHelper() argument
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DRoleParser.java156 int depth; in parseXml() local
159 && ((depth = parser.getDepth()) >= innerDepth in parseXml()
161 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseXml()
191 int depth; in parseRoles() local
194 && ((depth = parser.getDepth()) >= innerDepth in parseRoles()
196 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseRoles()
241 int depth; in parsePermissionSet() local
244 && ((depth = parser.getDepth()) >= innerDepth in parsePermissionSet()
246 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parsePermissionSet()
403 int depth; in parseRole() local
[all …]
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.h221 void parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
222 void parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
223 void parseString(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
224 void parseFloat(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
225 void parseBool(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
226 void parseByteArray(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
227 void parseKeyValuePairs(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
228 void parseAttributionChain(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
281 void addToValues(int32_t* pos, int32_t depth, T& value, bool* last) { in addToValues() argument
282 Field f = Field(mTagId, pos, depth); in addToValues()
[all …]
DLogEvent.cpp109 void LogEvent::parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt32() argument
111 addToValues(pos, depth, value, last); in parseInt32()
115 void LogEvent::parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt64() argument
117 addToValues(pos, depth, value, last); in parseInt64()
121 void LogEvent::parseString(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseString() argument
131 addToValues(pos, depth, value, last); in parseString()
135 void LogEvent::parseFloat(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseFloat() argument
137 addToValues(pos, depth, value, last); in parseFloat()
141 void LogEvent::parseBool(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseBool() argument
144 addToValues(pos, depth, value, last); in parseBool()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/statehandlers/
DDepthController.java57 public void setValue(DepthController depthController, float depth) {
58 depthController.setDepth(depth);
82 public void setValue(DepthController depthController, float depth) { in setValue() argument
83 depthController.setDepth(Utilities.boundToRange(depth, mMinValue, mMaxValue)); in setValue()
241 private void setDepth(float depth) { in setDepth() argument
242 depth = Utilities.boundToRange(depth, 0, 1); in setDepth()
244 int depthI = (int) (depth * 256); in setDepth()
254 private boolean dispatchTransactionSurface(float depth) { in dispatchTransactionSurface() argument
262 mWallpaperManager.setWallpaperZoomOut(windowToken, depth); in dispatchTransactionSurface()
272 || mBlurDisabledForAppLaunch ? 0 : (int) (depth * mMaxBlurRadius); in dispatchTransactionSurface()
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument
102 if (depth > 2) { in matchesSimple()
117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
140 depth++; in matchesSimple()
141 if (depth > 2) { in matchesSimple()
147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
161 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
174 int currentPos = values[start].mField.getPosAtDepth(depth); in matchesSimple()
177 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
200 ++depth; in matchesSimple()
[all …]
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistenceImpl.java86 int depth; in parseXml() local
89 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseXml()
90 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseXml()
109 int depth; in parseRoles() local
112 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRoles()
113 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRoles()
132 int depth; in parseRoleHolders() local
135 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRoleHolders()
136 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRoleHolders()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicRendererSurfaceView.java51 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/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceImpl.java88 int depth; in parseXml() local
91 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseXml()
92 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseXml()
117 int depth; in parseRuntimePermissions() local
120 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parseRuntimePermissions()
121 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parseRuntimePermissions()
152 int depth; in parsePermissions() local
155 && ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { in parsePermissions()
156 if (depth > innerDepth || type != XmlPullParser.START_TAG) { in parsePermissions()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfileData.java131 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/apps/LegacyCamera/src/com/android/camera/
DPreferenceInflater.java87 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/NeuralNetworks/common/operations/
DInstanceNormalization.cpp55 uint32_t depth = getSizeOfDimension(inputShape, 3); in instanceNormNhwc() local
57 for (uint32_t d = 0; d < depth; d++) { in instanceNormNhwc()
58 uint32_t indexBase = b * height * width * depth + d; in instanceNormNhwc()
64 T val = inputData[indexBase + (h * width + w) * depth]; in instanceNormNhwc()
73 T val = inputData[indexBase + (h * width + w) * depth] - mean; in instanceNormNhwc()
82 uint32_t ind = indexBase + (h * width + w) * depth; in instanceNormNhwc()
/packages/apps/Dialer/java/com/android/dialer/common/database/
DSelection.java259 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/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DAttributionLabelLiveData.kt132 var depth = 1 in skipTag() variable
133 while (depth != 0) { in skipTag()
135 END_TAG -> depth-- in skipTag()
136 START_TAG -> depth++ in skipTag()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunChannelScan.java194 int depth = 1; in skip() local
195 while (depth != 0) { in skip()
198 depth--; in skip()
201 depth++; in skip()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java411 public static StackTraceElement getCaller(int depth) {
413 if (depth < 0) {
417 if (trace == null || trace.length < (depth + 2)) {
425 return trace[i + depth + 1];
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java176 for (int depth = 0; depth < DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH; ++depth) { in getTerminalPosition()
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DLiveChannelsUiDeviceHelper.java61 Until.hasObject(By.pkg(Constants.TV_APP_PACKAGE).depth(0)), in assertAppStarted()
71 while (mUiDevice.hasObject(By.pkg(CommonConstants.BASE_PACKAGE).depth(0))) { in assertAppStopped()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_properties.h41 const uint16_t depth, const uint16_t leavingDepth, const WordIdArrayView prevWordIds) { in init() argument
45 mDepth = depth; in init()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherSearchIndexablesProvider.java75 final int depth = parser.getDepth(); in queryNonIndexableKeys() local
79 parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) { in queryNonIndexableKeys()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java459 int depth = 1; in skip() local
460 while (depth != 0) { in skip()
463 depth--; in skip()
466 depth++; in skip()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java155 final int depth = parser.getDepth(); in loadPhotoPriorityFromXml() local
156 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadPhotoPriorityFromXml()
/packages/apps/Contacts/src/com/android/contacts/util/
DLocalizedNameResolver.java99 final int depth = parser.getDepth(); in loadAllContactsNameFromXml() local
100 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadAllContactsNameFromXml()

123