Replace direct cgroup access with task profiles

Cgroups should not be accessed directly. Replace direct access with
task profile usage to perform the operation via cgroup anstraction layer.

Bug: 170507876
Test: build pass
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I71e849cf7d1f0dfd46da1d9306310ce2c6ecf1ca
diff --git a/nn/driver/sample/config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc b/nn/driver/sample/config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc
index 4777990..39d22ca 100644
--- a/nn/driver/sample/config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc
+++ b/nn/driver/sample/config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc
@@ -2,4 +2,4 @@
     class hal
     user system
     group system
-    writepid /dev/stune/nnapi-hal/tasks
+    task_profiles NNApiHALPerformance