/packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
D | aggregate.py | 64 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 …]
|
D | output.py | 61 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 …]
|
D | tree.py | 28 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 …]
|
D | tracker.py | 111 [_, 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 …]
|
D | naming.py | 54 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 …]
|
/packages/services/Car/car-lib/src/android/car/vms/ |
D | VmsOperationRecorder.java | 67 public void subscribe(VmsLayer layer) { in subscribe() argument 68 recordOp("subscribe", layer); in subscribe() 74 public void unsubscribe(VmsLayer layer) { in unsubscribe() argument 75 recordOp("unsubscribe", layer); in unsubscribe() 82 public void subscribe(VmsLayer layer, int publisherId) { in subscribe() argument 83 recordOp("subscribe", "publisherId", publisherId, layer); in subscribe() 90 public void unsubscribe(VmsLayer layer, int publisherId) { in unsubscribe() argument 91 recordOp("unsubscribe", "publisherId", publisherId, layer); in unsubscribe() 129 public void addSubscription(int sequenceNumber, VmsLayer layer) { in addSubscription() argument 130 recordOp("addSubscription", "sequenceNumber", sequenceNumber, layer); in addSubscription() [all …]
|
D | VmsSubscriptionHelper.java | 65 public void subscribe(@NonNull VmsLayer layer) { in subscribe() argument 66 Objects.requireNonNull(layer, "layer cannot be null"); in subscribe() 68 if (mLayerSubscriptions.add(layer)) { in subscribe() 78 public void subscribe(@NonNull VmsLayer layer, int providerId) { in subscribe() argument 79 Objects.requireNonNull(layer, "layer cannot be null"); in subscribe() 81 SparseBooleanArray providerIds = mPublisherSubscriptions.computeIfAbsent(layer, in subscribe() 94 public void unsubscribe(@NonNull VmsLayer layer) { in unsubscribe() argument 95 Objects.requireNonNull(layer, "layer cannot be null"); in unsubscribe() 97 if (mLayerSubscriptions.remove(layer)) { in unsubscribe() 107 public void unsubscribe(@NonNull VmsLayer layer, int providerId) { in unsubscribe() argument [all …]
|
D | VmsSubscriberManager.java | 62 void onVmsMessageReceived(@NonNull VmsLayer layer, byte[] payload); in onVmsMessageReceived() argument 177 public void subscribe(@NonNull VmsLayer layer) { in subscribe() argument 178 mSubscriptionHelper.subscribe(layer); in subscribe() 189 public void subscribe(@NonNull VmsLayer layer, int publisherId) { in subscribe() argument 190 mSubscriptionHelper.subscribe(layer, publisherId); in subscribe() 207 public void unsubscribe(@NonNull VmsLayer layer) { in unsubscribe() argument 208 mSubscriptionHelper.unsubscribe(layer); in unsubscribe() 219 public void unsubscribe(@NonNull VmsLayer layer, int publisherId) { in unsubscribe() argument 220 mSubscriptionHelper.unsubscribe(layer, publisherId); in unsubscribe() 278 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived() argument [all …]
|
D | VmsClient.java | 244 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 Log.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 Log.d(TAG, "Received large packet from " + providerId + " for: " + layer in onLargePacketReceived() 355 callback.onPacketReceived(providerId, layer, largePacket)); in onLargePacketReceived()
|
D | VmsLayerDependency.java | 71 public VmsLayerDependency(@NonNull VmsLayer layer) { in VmsLayerDependency() argument 72 this(layer, Collections.emptySet()); in VmsLayerDependency() 100 @NonNull VmsLayer layer, in VmsLayerDependency() 102 this.mLayer = layer; in VmsLayerDependency() 190 VmsLayer layer = (VmsLayer) in.readTypedObject(VmsLayer.CREATOR); in VmsLayerDependency() local 193 this.mLayer = layer; in VmsLayerDependency()
|
D | VmsPublisherClientService.java | 138 public final void publish(@NonNull VmsLayer layer, int publisherId, byte[] payload) { in publish() argument 139 getVmsClient().publishPacket(publisherId, layer, payload); in publish() 205 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived() argument
|
/packages/services/Car/service/src/com/android/car/vms/ |
D | VmsLayerAvailability.java | 69 VmsLayer layer = dependency.getLayer(); in setPublishersOffering() local 72 mPotentialLayersAndPublishers.computeIfAbsent(layer, k -> new HashSet<>()) in setPublishersOffering() 76 mPotentialLayersAndDependencies.computeIfAbsent(layer, k -> new HashSet<>()) in setPublishersOffering() 107 for (VmsLayer layer : mPotentialLayersAndDependencies.keySet()) { in calculateLayers() 108 addLayerToAvailabilityCalculationLocked(layer, in calculateLayers() 123 private void addLayerToAvailabilityCalculationLocked(VmsLayer layer, in addLayerToAvailabilityCalculationLocked() argument 127 Slog.d(TAG, "addLayerToAvailabilityCalculationLocked: checking layer: " + layer); in addLayerToAvailabilityCalculationLocked() 130 if (currentAvailableLayers.contains(layer)) { in addLayerToAvailabilityCalculationLocked() 134 if (!mPotentialLayersAndDependencies.containsKey(layer)) { in addLayerToAvailabilityCalculationLocked() 138 if (cyclicAvoidanceSet.contains(layer)) { in addLayerToAvailabilityCalculationLocked() [all …]
|
D | VmsBrokerService.java | 211 public void publishPacket(IBinder clientToken, int providerId, VmsLayer layer, byte[] packet) { in publishPacket() argument 213 deliverToSubscribers(clientToken, providerId, layer, packet.length, in publishPacket() 214 callback -> callback.onPacketReceived(providerId, layer, packet)); in publishPacket() 218 public void publishLargePacket(IBinder clientToken, int providerId, VmsLayer layer, in publishLargePacket() argument 222 deliverToSubscribers(clientToken, providerId, layer, packet.getSize(), in publishLargePacket() 223 callback -> callback.onLargePacketReceived(providerId, layer, largePacket)); in publishLargePacket() 227 private void deliverToSubscribers(IBinder clientToken, int providerId, VmsLayer layer, in deliverToSubscribers() argument 230 if (!client.hasOffering(providerId, layer) && !client.isLegacyClient()) { in deliverToSubscribers() 231 throw new IllegalArgumentException("Client does not offer " + layer + " as " in deliverToSubscribers() 236 .logPacketSent(layer, packetLength); in deliverToSubscribers() [all …]
|
D | VmsClientInfo.java | 137 boolean hasOffering(int providerId, VmsLayer layer) { in hasOffering() argument 139 return mPotentialOfferings.get(providerId, Collections.emptySet()).contains(layer); in hasOffering() 175 boolean isSubscribed(int providerId, VmsLayer layer) { in isSubscribed() argument 178 || mLayerSubscriptions.contains(layer) in isSubscribed() 179 || mLayerAndProviderSubscriptions.getOrDefault(layer, Collections.emptySet()) in isSubscribed() 219 for (VmsLayer layer : mLayerSubscriptions) { in dump() 220 writer.println(prefix + layer); in dump()
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | VmsClientLogger.java | 111 public void logPacketSent(VmsLayer layer, long size) { in logPacketSent() argument 112 getLayerEntry(layer).packetSent(size); in logPacketSent() 121 public void logPacketReceived(VmsLayer layer, long size) { in logPacketReceived() argument 122 getLayerEntry(layer).packetReceived(size); in logPacketReceived() 131 public void logPacketDropped(VmsLayer layer, long size) { in logPacketDropped() argument 132 getLayerEntry(layer).packetDropped(size); in logPacketDropped() 143 private VmsClientStats getLayerEntry(VmsLayer layer) { in getLayerEntry() argument 146 layer, in getLayerEntry() 147 (k) -> new VmsClientStats(mUid, layer)); in getLayerEntry()
|
D | VmsClientStats.java | 58 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/services/Car/service/src/com/android/car/hal/ |
D | VmsHalService.java | 126 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { 127 if (DBG) Slog.d(TAG, "Handling a data message for Layer: " + layer); 128 setPropertyValue(createDataMessage(layer, providerId, packet)); 685 private static VehiclePropValue createDataMessage(VmsLayer layer, int publisherId, in createDataMessage() argument 689 appendLayer(vehicleProp.value.int32Values, layer); in createDataMessage() 734 for (VmsLayer layer : layers) { in createSubscriptionStateMessage() 735 appendLayer(message, layer); in createSubscriptionStateMessage() 739 for (VmsAssociatedLayer layer : associatedLayers) { in createSubscriptionStateMessage() 740 appendAssociatedLayer(message, layer); in createSubscriptionStateMessage() 772 for (VmsAssociatedLayer layer : availableLayers.getAssociatedLayers()) { in createAvailableLayersMessage() [all …]
|
/packages/modules/NeuralNetworks/common/include/ |
D | Tracing.h | 118 #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/ |
D | parser.py | 41 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/apps/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 118 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/services/Car/tests/carservice_test/src/com/android/car/ |
D | VmsHalServiceSubscriptionEventTest.java | 71 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/ |
D | UiUtils.java | 77 private static void dumpViewRecursive(View view, int layer, int index, int total) { in dumpViewRecursive() argument 79 Log.i(TAG, "L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive() 82 TAG + " L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive() 85 dumpViewRecursive(((ViewGroup) view).getChildAt(i), layer + 1, i + 1, in dumpViewRecursive() local 89 Log.i(TAG, "L[" + layer + "] =END= -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive()
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | test_stats.py | 37 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/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RemoteAnimationProvider.java | 55 int layer = target.prefixOrderIndex; in findLowestOpaqueLayerTarget() local 56 if (layer < lowestLayer) { in findLowestOpaqueLayerTarget() 57 lowestLayer = layer; in findLowestOpaqueLayerTarget()
|
/packages/apps/ThemePicker/src/com/google/android/apps/wallpaper/asset/ |
D | ThemeBundleThumbAsset.java | 93 Drawable layer = mLayerResolver.resolveLayer((LayerDrawable) thumb); in doInBackground() local 94 if (layer instanceof BitmapDrawable) { in doInBackground() 95 return ((BitmapDrawable) layer).getBitmap(); in doInBackground()
|