Home
last modified time | relevance | path

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

123

/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Daggregate.py64 for layer in layers:
68 tag = layer + "_" + phase
71 if layer == LAYER_DRIVER and phase == PHASE_EXECUTION:
87 times[app_phase][phase][layer] = zero_to_nan_if_missing(t0, phase, layer)
89 times[phase][layer] = zero_to_nan_if_missing(t, phase, layer)
90 if not times[PHASE_OVERALL][layer]:
91 times[PHASE_OVERALL][layer] = sum(nan_to_zero(times[phase][layer]) for phase in phases)
107 for layer in reversed(layers):
108 if math.isnan(times[phase][layer]):
109 self_times[phase][layer] = math.nan
[all …]
Doutput.py61 for layer in layers + [LAYER_TOTAL]:
62 times_to_use[phase][layer] = times_to_use[PHASE_BENCHMARK][phase][layer]
72 for layer in layers:
74 t = times_to_use[phase][layer]
75 values[make_tag(layer, phase)] = t
76 if layer == LAYER_CPU:
82 for layer in layers + [LAYER_TOTAL]:
83 values[make_tag(layer, PHASE_EXECUTION_LESS_IO_AND_RESULTS)] = (
84 values[make_tag(layer, PHASE_EXECUTION)] -
85 values[make_tag(layer, PHASE_INPUTS_AND_OUTPUTS)] -
[all …]
Dtree.py28 def push(self, start_time_s, mark, layer, phase, app_phase, subtract): argument
29 node = self.current.add(start_time_s, mark, layer, phase, app_phase, subtract)
62 if node.layer == LAYER_IGNORE:
82 elif (node.parent and node.parent.layer == LAYER_APPLICATION and
83 (node.layer == LAYER_RUNTIME or node.layer == LAYER_IPC) and
93 layer = node.layer
100 while ((new_parent.layer != layer or new_parent.is_added_detail()) and
116 node.layer, node.phase(), node.app_phase, subtract=False)
126 if ((node.layer == LAYER_RUNTIME or node.layer == LAYER_IPC) and
128 (node.parent.layer == LAYER_APPLICATION and
[all …]
Dnaming.py54 def make_tag(layer, phase): argument
55 return "_".join([layer, phase])
58 layer = None
62 layer = LAYER_IGNORE
65 layer = LAYER_IPC
69 layer = LAYER_IGNORE
72 layer = LAYER_DRIVER
75 layer = LAYER_IPC
77 layer = LAYER_DRIVER
79 layer = LAYER_IGNORE
[all …]
Dtracker.py111 [_, layer, phase] = tag.split("_")
112 if layer == LAYER_APPLICATION and phase in [PHASE_WARMUP, PHASE_BENCHMARK]:
115 layer = layer.replace(LAYER_DRIVER, LAYER_CPU)
117 layer = layer.replace(LAYER_CPU, LAYER_DRIVER)
118 if layer == LAYER_APPLICATION and phase == PHASE_EXECUTION:
121 self.mytree.push(time, mark, layer, phase, self.app_phase.current(), subtract)
128 if node.layer == LAYER_APPLICATION and node.phase in [PHASE_WARMUP, PHASE_BENCHMARK]:
152 [begun, mark, layer, phase] = [
153 node.start_time_s, node.mark, node.layer, node.phase()]
162 tag = node.app_phase + "_" + layer + "_" + phase
[all …]
/packages/services/Car/car-lib/src/android/car/vms/
DVmsSubscriptionHelper.java62 public void subscribe(@NonNull VmsLayer layer) { in subscribe() argument
63 Objects.requireNonNull(layer, "layer cannot be null"); in subscribe()
65 if (mLayerSubscriptions.add(layer)) { in subscribe()
75 public void subscribe(@NonNull VmsLayer layer, int providerId) { in subscribe() argument
76 Objects.requireNonNull(layer, "layer cannot be null"); in subscribe()
78 SparseBooleanArray providerIds = mPublisherSubscriptions.computeIfAbsent(layer, in subscribe()
91 public void unsubscribe(@NonNull VmsLayer layer) { in unsubscribe() argument
92 Objects.requireNonNull(layer, "layer cannot be null"); in unsubscribe()
94 if (mLayerSubscriptions.remove(layer)) { in unsubscribe()
104 public void unsubscribe(@NonNull VmsLayer layer, int providerId) { in unsubscribe() argument
[all …]
DVmsOperationRecorder.java68 public void subscribe(VmsLayer layer) { in subscribe() argument
69 recordOp("subscribe", layer); in subscribe()
75 public void unsubscribe(VmsLayer layer) { in unsubscribe() argument
76 recordOp("unsubscribe", layer); in unsubscribe()
83 public void subscribe(VmsLayer layer, int publisherId) { in subscribe() argument
84 recordOp("subscribe", "publisherId", publisherId, layer); in subscribe()
91 public void unsubscribe(VmsLayer layer, int publisherId) { in unsubscribe() argument
92 recordOp("unsubscribe", "publisherId", publisherId, layer); in unsubscribe()
130 public void addSubscription(int sequenceNumber, VmsLayer layer) { in addSubscription() argument
131 recordOp("addSubscription", "sequenceNumber", sequenceNumber, layer); in addSubscription()
[all …]
DVmsSubscriberManager.java64 void onVmsMessageReceived(@NonNull VmsLayer layer, byte[] payload); in onVmsMessageReceived() argument
179 public void subscribe(@NonNull VmsLayer layer) { in subscribe() argument
180 mSubscriptionHelper.subscribe(layer); in subscribe()
191 public void subscribe(@NonNull VmsLayer layer, int publisherId) { in subscribe() argument
192 mSubscriptionHelper.subscribe(layer, publisherId); in subscribe()
209 public void unsubscribe(@NonNull VmsLayer layer) { in unsubscribe() argument
210 mSubscriptionHelper.unsubscribe(layer); in unsubscribe()
221 public void unsubscribe(@NonNull VmsLayer layer, int publisherId) { in unsubscribe() argument
222 mSubscriptionHelper.unsubscribe(layer, publisherId); in unsubscribe()
280 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived() argument
[all …]
DVmsLayerDependency.java74 public VmsLayerDependency(@NonNull VmsLayer layer) { in VmsLayerDependency() argument
75 this(layer, Collections.emptySet()); in VmsLayerDependency()
87 @NonNull VmsLayer layer, in VmsLayerDependency()
89 this.mLayer = layer; in VmsLayerDependency()
170 VmsLayer layer = (VmsLayer) in.readTypedObject(VmsLayer.CREATOR); in VmsLayerDependency() local
173 this.mLayer = layer; in VmsLayerDependency()
DVmsClient.java244 public void publishPacket(int providerId, @NonNull VmsLayer layer, @NonNull byte[] packet) { in publishPacket() argument
245 Objects.requireNonNull(layer, "layer cannot be null"); in publishPacket()
252 mService.publishPacket(mClientToken, providerId, layer, packet); in publishPacket()
255 mService.publishLargePacket(mClientToken, providerId, layer, in publishPacket()
331 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived() argument
333 Slog.d(TAG, "Received packet from " + providerId + " for: " + layer in onPacketReceived()
337 callback.onPacketReceived(providerId, layer, packet)); in onPacketReceived()
341 public void onLargePacketReceived(int providerId, VmsLayer layer, SharedMemory packet) { in onLargePacketReceived() argument
343 Slog.d(TAG, "Received large packet from " + providerId + " for: " + layer in onLargePacketReceived()
355 callback.onPacketReceived(providerId, layer, largePacket)); in onLargePacketReceived()
DIVmsClientCallback.aidl38 in VmsLayer layer, in onPacketReceived() argument
43 in VmsLayer layer, in onLargePacketReceived() argument
DVmsPublisherClientService.java140 public final void publish(@NonNull VmsLayer layer, int publisherId, byte[] payload) { in publish() argument
141 getVmsClient().publishPacket(publisherId, layer, payload); in publish()
207 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived() argument
/packages/services/Car/service/src/com/android/car/vms/
DVmsLayerAvailability.java69 VmsLayer layer = dependency.getLayer(); in setPublishersOffering() local
72 mPotentialLayersAndPublishers.computeIfAbsent(layer, k -> new ArraySet<>()) in setPublishersOffering()
76 mPotentialLayersAndDependencies.computeIfAbsent(layer, k -> new ArraySet<>()) in setPublishersOffering()
107 for (VmsLayer layer : mPotentialLayersAndDependencies.keySet()) { in calculateLayers()
108 addLayerToAvailabilityCalculationLocked(layer, in calculateLayers()
125 private void addLayerToAvailabilityCalculationLocked(VmsLayer layer, in addLayerToAvailabilityCalculationLocked() argument
129 Slogf.d(TAG, "addLayerToAvailabilityCalculationLocked: checking layer: " + layer); in addLayerToAvailabilityCalculationLocked()
132 if (currentAvailableLayers.contains(layer)) { in addLayerToAvailabilityCalculationLocked()
136 if (!mPotentialLayersAndDependencies.containsKey(layer)) { in addLayerToAvailabilityCalculationLocked()
140 if (cyclicAvoidanceSet.contains(layer)) { in addLayerToAvailabilityCalculationLocked()
[all …]
DVmsBrokerService.java224 public void publishPacket(IBinder clientToken, int providerId, VmsLayer layer, byte[] packet) { in publishPacket() argument
226 deliverToSubscribers(clientToken, providerId, layer, packet.length, in publishPacket()
227 callback -> callback.onPacketReceived(providerId, layer, packet)); in publishPacket()
231 public void publishLargePacket(IBinder clientToken, int providerId, VmsLayer layer, in publishLargePacket() argument
235 deliverToSubscribers(clientToken, providerId, layer, packet.getSize(), in publishLargePacket()
236 callback -> callback.onLargePacketReceived(providerId, layer, largePacket)); in publishLargePacket()
240 private void deliverToSubscribers(IBinder clientToken, int providerId, VmsLayer layer, in deliverToSubscribers() argument
243 if (!client.hasOffering(providerId, layer) && !client.isLegacyClient()) { in deliverToSubscribers()
244 throw new IllegalArgumentException("Client does not offer " + layer + " as " in deliverToSubscribers()
249 .logPacketSent(layer, packetLength); in deliverToSubscribers()
[all …]
DVmsClientInfo.java146 boolean hasOffering(int providerId, VmsLayer layer) { in hasOffering() argument
148 return mPotentialOfferings.get(providerId, Collections.emptySet()).contains(layer); in hasOffering()
188 boolean isSubscribed(int providerId, VmsLayer layer) { in isSubscribed() argument
191 || mLayerSubscriptions.contains(layer) in isSubscribed()
192 || mLayerAndProviderSubscriptions.getOrDefault(layer, new ArraySet<>()) in isSubscribed()
233 for (VmsLayer layer : mLayerSubscriptions) { in dump()
234 writer.println(prefix + layer); in dump()
/packages/services/Car/service/src/com/android/car/stats/
DVmsClientLogger.java113 public void logPacketSent(VmsLayer layer, long size) { in logPacketSent() argument
114 getLayerEntry(layer).packetSent(size); in logPacketSent()
123 public void logPacketReceived(VmsLayer layer, long size) { in logPacketReceived() argument
124 getLayerEntry(layer).packetReceived(size); in logPacketReceived()
133 public void logPacketDropped(VmsLayer layer, long size) { in logPacketDropped() argument
134 getLayerEntry(layer).packetDropped(size); in logPacketDropped()
147 private VmsClientStats getLayerEntry(VmsLayer layer) { in getLayerEntry() argument
150 layer, in getLayerEntry()
151 (k) -> new VmsClientStats(mUid, layer)); in getLayerEntry()
DVmsClientStats.java58 VmsClientStats(int uid, VmsLayer layer) { in VmsClientStats() argument
61 mLayerType = layer.getType(); in VmsClientStats()
62 mLayerChannel = layer.getSubtype(); in VmsClientStats()
63 mLayerVersion = layer.getVersion(); in VmsClientStats()
/packages/modules/NeuralNetworks/common/types/include/
DTracing.h118 #define NNTRACE_FULL(layer, phase, detail) NNTRACE_NAME_1(("[NN_" layer "_" phase "]" detail)) argument
119 #define NNTRACE_FULL_SWITCH(layer, phase, detail) \ argument
120 NNTRACE_NAME_SWITCH(("[SW][NN_" layer "_" phase "]" detail))
121 #define NNTRACE_FULL_SUBTRACT(layer, phase, detail) \ argument
122 NNTRACE_NAME_1(("[SUB][NN_" layer "_" phase "]" detail))
124 #define NNTRACE_FULL_RAW(layer, phase, detail) \ argument
125 android::ScopedTrace PASTE(___tracer, __LINE__)(ATRACE_TAG, ("[NN_" layer "_" phase "]" detail))
/packages/apps/Camera2/tests/exiftool_parser/
Dparser.py41 layer = 0 variable
50 if new_layer > layer:
53 for i in range(layer - new_layer):
56 layer = new_layer variable
61 if new_layer < layer:
62 for i in range(layer - new_layer):
64 layer = new_layer variable
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java132 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) {
133 if (DBG) Slogf.d(TAG, "Handling a data message for Layer: " + layer);
134 setPropertyValue(createDataMessage(mPropValueBuilder, layer, providerId, packet));
710 private static HalPropValue createDataMessage(HalPropValueBuilder builder, VmsLayer layer, in createDataMessage() argument
714 appendLayer(message, layer); in createDataMessage()
752 for (VmsLayer layer : layers) { in createSubscriptionStateMessage()
753 appendLayer(message, layer); in createSubscriptionStateMessage()
757 for (VmsAssociatedLayer layer : associatedLayers) { in createSubscriptionStateMessage()
758 appendAssociatedLayer(message, layer); in createSubscriptionStateMessage()
788 for (VmsAssociatedLayer layer : availableLayers.getAssociatedLayers()) { in createAvailableLayersMessage()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsHalServiceSubscriptionEventTest.java71 for (VmsLayer layer : layers) { in subscriptionTestLogic()
73 subscribeViaHal(sequenceNumber, layer); in subscriptionTestLogic()
102 private void subscribeViaHal(int sequenceNumber, VmsLayer layer) throws Exception { in subscribeViaHal() argument
106 layer.getType(), in subscribeViaHal()
107 layer.getSubtype(), in subscribeViaHal()
108 layer.getVersion()); in subscribeViaHal()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DUiUtils.java74 private static void dumpViewRecursive(View view, int layer, int index, int total) { in dumpViewRecursive() argument
76 Log.i(TAG, "L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive()
79 TAG + " L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive()
82 dumpViewRecursive(((ViewGroup) view).getChildAt(i), layer + 1, i + 1, in dumpViewRecursive() local
86 Log.i(TAG, "L[" + layer + "] =END= -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java118 final ChildDrawable layer = new ChildDrawable(mLayerState.mDensity); in createChildDrawable() local
119 layer.mDrawable = drawable; in createChildDrawable()
120 layer.mDrawable.setCallback(this); in createChildDrawable()
122 layer.mDrawable.getChangingConfigurations(); in createChildDrawable()
123 return layer; in createChildDrawable()
154 private void addLayer(int index, @NonNull ChildDrawable layer) { in addLayer() argument
155 mLayerState.mChildren[index] = layer; in addLayer()
330 final ChildDrawable layer = array[i]; in applyTheme() local
332 final Drawable d = layer.mDrawable; in applyTheme()
372 final ChildDrawable layer = new ChildDrawable(state.mDensity); in inflateLayers() local
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Dtest_stats.py37 layer, phase = tag.split("_")
39 actual = self.times[phase][layer]
41 actual = self.times[app_phase][phase][layer]
49 layer, phase = tag.split("_")
50 actual = self.self_times[phase][layer]
/packages/apps/Contacts/src/com/android/contacts/widget/
DFrameLayoutWithOverlay.java54 protected void setAlphaLayer(View layer) { in setAlphaLayer() argument
55 mOverlay.setAlphaLayer(layer); in setAlphaLayer()

123