frameworks/native: fix copy back dirty region

Copyback dirty region logic does copyback,
even when its not necessary causing 2ms delay.
Fix the logic to copy back only what is necessary.

Change-Id: I52de68258ac9f87d704ee5401f93417805fa6773
Remove references to obsolete pmem functionality.

Change-Id: I5d3befd075e51614e6801115388a0a9f32fbb6ea
servicemanager: Add resourcemanager service to service table

- ResourceManager service is Audio system interaction
  feature, which is used in trackutils to fix audio
  settings permission issue from 3rd party applications

- Resourcemanager service is used to update different
  usecases to HAL from trackutils using Audio system

Change-Id: I2e5434ff01acf1caefc710850f0f657b93b06b8d