Stay organized with collections
Save and categorize content based on your preferences.
CarPropertyManager.SetPropertyResult
public
static
final
class
CarPropertyManager.SetPropertyResult
extends Object
java.lang.Object
|
↳ |
android.car.hardware.property.CarPropertyManager.SetPropertyResult
|
A successful result for SetPropertyCallback
.
Summary
Public methods |
int
|
getAreaId()
Gets the area ID this result is for.
|
int
|
getPropertyId()
Gets the property ID this result is for.
|
int
|
getRequestId()
Gets the ID for the request this result is for.
|
long
|
getUpdateTimestampNanos()
Gets the timestamp in nanoseconds at which the property was updated to the desired value.
|
String
|
toString()
Prints out debug message.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getAreaId
public int getAreaId ()
Gets the area ID this result is for.
getPropertyId
public int getPropertyId ()
Gets the property ID this result is for.
getRequestId
public int getRequestId ()
Gets the ID for the request this result is for.
getUpdateTimestampNanos
public long getUpdateTimestampNanos ()
Gets the timestamp in nanoseconds at which the property was updated to the desired value.
The timestamp will use the same time base as
SystemClock#elapsedRealtimeNanos()
.
NOTE: If waitForPropertyUpdate
is set to false
for the request, then
this value will be the time when the async set request is successfully sent to the
vehicle bus, not when the property is updated since we have no way of knowing that.
NOTE: Timestamp should be synchronized with other signals from the platform (e.g.
Location
and SensorEvent
instances).
Ideally, timestamp synchronization error should be below 1 millisecond.
toString
public String toString ()
Prints out debug message.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# CarPropertyManager.SetPropertyResult\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nCarPropertyManager.SetPropertyResult\n====================================\n\n\n`\npublic\nstatic\nfinal\n\nclass\nCarPropertyManager.SetPropertyResult\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.hardware.property.CarPropertyManager.SetPropertyResult |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA successful result for [SetPropertyCallback](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyCallback).\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getAreaId](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyResult#getAreaId())`() ` Gets the area ID this result is for. |\n| ` int` | ` `[getPropertyId](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyResult#getPropertyId())`() ` Gets the property ID this result is for. |\n| ` int` | ` `[getRequestId](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyResult#getRequestId())`() ` Gets the ID for the request this result is for. |\n| ` long` | ` `[getUpdateTimestampNanos](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyResult#getUpdateTimestampNanos())`() ` Gets the timestamp in nanoseconds at which the property was updated to the desired value. |\n| ` String` | ` `[toString](/reference/android/car/hardware/property/CarPropertyManager.SetPropertyResult#toString())`() ` Prints out debug message. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic methods\n--------------\n\n### getAreaId\n\n```\npublic int getAreaId ()\n```\n\nGets the area ID this result is for.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getPropertyId\n\n```\npublic int getPropertyId ()\n```\n\nGets the property ID this result is for.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getRequestId\n\n```\npublic int getRequestId ()\n```\n\nGets the ID for the request this result is for.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getUpdateTimestampNanos\n\n```\npublic long getUpdateTimestampNanos ()\n```\n\nGets the timestamp in nanoseconds at which the property was updated to the desired value.\n\nThe timestamp will use the same time base as\n[SystemClock#elapsedRealtimeNanos()](/reference/android/os/SystemClock#elapsedRealtimeNanos()).\n\nNOTE: If `waitForPropertyUpdate` is set to `false` for the request, then\nthis value will be the time when the async set request is successfully sent to the\nvehicle bus, not when the property is updated since we have no way of knowing that.\n\nNOTE: Timestamp should be synchronized with other signals from the platform (e.g.\n[Location](/reference/android/location/Location) and [SensorEvent](/reference/android/hardware/SensorEvent) instances).\nIdeally, timestamp synchronization error should be below 1 millisecond.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\nPrints out debug message.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]