How to use locator in my test case?

  1. I want to get the text from the below defined details.
  2. I have tried with clasName. But, I am not getting any thing.
  3. How can I use content-desc and xpath as in my test case?
  4. How can I identify the unique locator?

content-desc: HLS video type (m3u8) Heading
type: android.view.View
text:
index: 0
enabled: true
visible: true
location: {40, 684}
size: {568, 156}
checkable: false
checked: false
focusable: false
long-clickable: false
package: com.vr.droid.qa
password: false
resource-id:
scrollable: false
selected: false
xpath: //android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.support.v4.view.ViewPager[1]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ScrollView[1]/android.widget.RelativeLayout[1]/android.view.View[1]/android.view.View[1]