/frameworks/base/services/sensorservice/ |
H A D | CorrectedGyroSensor.cpp | 64 status_t CorrectedGyroSensor::setDelay(void* ident, int handle, int64_t ns) { argument 65 mSensorDevice.setDelay(this, mGyro.getHandle(), ns); 66 return mSensorFusion.setDelay(this, ns);
|
H A D | OrientationSensor.cpp | 69 status_t OrientationSensor::setDelay(void* ident, int handle, int64_t ns) { argument 70 return mSensorFusion.setDelay(this, ns);
|
H A D | RotationVectorSensor.cpp | 59 status_t RotationVectorSensor::setDelay(void* ident, int handle, int64_t ns) { argument 60 return mSensorFusion.setDelay(this, ns); 108 status_t GyroDriftSensor::setDelay(void* ident, int handle, int64_t ns) { argument 109 return mSensorFusion.setDelay(this, ns);
|
H A D | GravitySensor.cpp | 73 status_t GravitySensor::setDelay(void* ident, int handle, int64_t ns) { argument 74 return mSensorFusion.setDelay(this, ns);
|
H A D | LinearAccelerationSensor.cpp | 57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument 58 return mGravitySensor.setDelay(this, handle, ns);
|
H A D | SensorInterface.cpp | 53 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument 54 return mSensorDevice.setDelay(ident, handle, ns);
|
H A D | SensorFusion.cpp | 109 status_t SensorFusion::setDelay(void* ident, int64_t ns) { argument 110 mSensorDevice.setDelay(ident, mAcc.getHandle(), ns);
|
H A D | SensorDevice.cpp | 235 nsecs_t ns = info.selectDelay(); local 236 mSensorDevice->setDelay(mSensorDevice, handle, ns); 242 status_t SensorDevice::setDelay(void* ident, int handle, int64_t ns) argument 247 status_t err = info.setDelayForIdent(ident, ns); 249 ns = info.selectDelay(); 250 return mSensorDevice->setDelay(mSensorDevice, handle, ns); 255 status_t SensorDevice::Info::setDelayForIdent(void* ident, int64_t ns) argument 259 ALOGE("Info::setDelayForIdent(ident=%p, ns=%lld) failed (%s)", 260 ident, ns, strerror(-index)); 263 rates.editValueAt(index) = ns; 269 nsecs_t ns = rates.valueAt(0); local [all...] |
H A D | SensorService.cpp | 479 int handle, nsecs_t ns) 488 if (ns < 0) 492 if (ns < minDelayNs) { 493 ns = minDelayNs; 496 if (ns < MINIMUM_EVENTS_PERIOD) 497 ns = MINIMUM_EVENTS_PERIOD; 499 return sensor->setDelay(connection.get(), handle, ns); 630 int handle, nsecs_t ns) 632 return mService->setEventRate(this, handle, ns); 478 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns) argument 629 setEventRate( int handle, nsecs_t ns) argument
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
H A D | StackOverflowXmlParser.java | 33 private static final String ns = null; field in class:StackOverflowXmlParser 52 parser.require(XmlPullParser.START_TAG, ns, "feed"); 86 parser.require(XmlPullParser.START_TAG, ns, "entry"); 110 parser.require(XmlPullParser.START_TAG, ns, "title"); 112 parser.require(XmlPullParser.END_TAG, ns, "title"); 119 parser.require(XmlPullParser.START_TAG, ns, "link"); 128 parser.require(XmlPullParser.END_TAG, ns, "link"); 134 parser.require(XmlPullParser.START_TAG, ns, "summary"); 136 parser.require(XmlPullParser.END_TAG, ns, "summary");
|
/frameworks/native/libs/gui/ |
H A D | ISensorEventConnection.cpp | 65 virtual status_t setEventRate(int handle, nsecs_t ns) argument 70 data.writeInt64(ns); 101 int ns = data.readInt64(); local 102 status_t result = setEventRate(handle, ns);
|
/frameworks/av/services/audioflinger/ |
H A D | MonoPipe.cpp | 95 uint32_t ns; local 101 ns = written * ( 500000000 / Format_sampleRate(mFormat)); 104 ns = written * ( 750000000 / Format_sampleRate(mFormat)); 107 ns = written * (1000000000 / Format_sampleRate(mFormat)); 110 ns = written * (1150000000 / Format_sampleRate(mFormat)); 113 ns = written * (1350000000 / Format_sampleRate(mFormat)); 116 ns = written * (1750000000 / Format_sampleRate(mFormat)); 119 ns = count * (1350000000 / Format_sampleRate(mFormat)); 121 if (ns > 999999999) { 122 ns [all...] |
/frameworks/native/libs/cpustats/ |
H A D | ThreadCpuUsage.cpp | 76 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument 82 return sample(ns); 85 ns = (double) mAccumulator; 87 ALOGV("sampleAndEnable %.0f", ns); 91 ns = 0.0; 97 bool ThreadCpuUsage::sample(double &ns) argument 106 ns = 0.0; 117 ns = (double) mAccumulator; 118 ALOGV("sample %.0f", ns); 123 ns [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_XmlBlock.cpp | 256 jstring ns, jstring name) 266 if (ns) { 267 ns16 = env->GetStringChars(ns, NULL); 268 nsLen = env->GetStringLength(ns); 276 if (ns) { 277 env->ReleaseStringChars(ns, ns16); 254 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jint token, jstring ns, jstring name) argument
|
/frameworks/base/tools/aapt/ |
H A D | XMLNode.h | 48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { argument 49 return new XMLNode(filename, ns, name, false); 86 String16 ns; member in struct:XMLNode::attribute_entry 97 const attribute_entry* getAttribute(const String16& ns, const String16& name) const; 99 attribute_entry* editAttribute(const String16& ns, const String16& name); 116 status_t addAttribute(const String16& ns, const String16& name,
|
H A D | XMLNode.cpp | 228 const uint16_t* ns = inXml->getElementNamespace(&nslen); local 229 if (ns == NULL) { 230 ns = (const uint16_t*)"\0\0"; 233 const String8 nspace(String16(ns, nslen)); 285 const uint16_t* ns = inXml->getElementNamespace(&nslen); local 286 if (ns == NULL) { 287 ns = (const uint16_t*)"\0\0"; 290 const String8 nspace(String16(ns, nslen)); 397 const uint16_t* ns) 400 if (ns ! 396 build_namespace(const Vector<namespace_entry>& namespaces, const uint16_t* ns) argument 443 String8 ns = build_namespace(namespaces, ns16); local 476 namespace_entry ns; local 491 const namespace_entry& ns = namespaces.top(); local [all...] |
H A D | Command.cpp | 240 String8 getAttribute(const ResXMLTree& tree, const char* ns, argument 243 ssize_t idx = tree.indexOfAttribute(ns, attr);
|
H A D | Resource.cpp | 452 const char* ns, const char* attr, const char* validChars, bool required) 456 ssize_t index = parser.indexOfAttribute(ns, attr); 683 const String16 ns(ns8); 686 if (node->getAttribute(ns, attr) != NULL) { 689 String8(attr).string(), String8(ns).string()); 693 node->addAttribute(ns, attr, String16(value)); 2204 const char* ns; member in struct:NamespaceAttributePair 2207 NamespaceAttributePair(const char* n, const char* a) : ns(n), attr(a) {} 2208 NamespaceAttributePair() : ns(NULL), attr(NULL) {} 2261 ssize_t attrIndex = tree.indexOfAttribute(nsAttr.ns, nsAtt 450 validateAttr(const String8& path, const ResTable& table, const ResXMLParser& parser, const char* ns, const char* attr, const char* validChars, bool required) argument 2287 addTagAttrPair(KeyedVector<String8, Vector<NamespaceAttributePair> >* dest, const char* tag, const char* ns, const char* attr) argument [all...] |
/frameworks/compile/mclinker/tools/llvm-mcld/ |
H A D | llvm-mcld.cpp | 599 cl::list<std::string>::iterator ns; local 601 for (ns=ArgNameSpecList.begin(); ns!=nsEnd; ++ns) { 604 ArgNameSpecList.getPosition(ns-ArgNameSpecList.begin()), 605 *ns));
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | Settings.java | 1709 private int readInt(XmlPullParser parser, String ns, String name, int defValue) { argument 1710 String v = parser.getAttributeValue(ns, name);
|
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 556 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local 557 ns->set_level(kNsDefaultLevel); 563 webrtc::NoiseSuppression *ns = effect->session->apm->noise_suppression(); local 564 ALOGV("NsCreate got ns %p", ns); 565 if (ns == NULL) { 569 effect->engine = static_cast<preproc_fx_handle_t>(ns); 591 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local 592 ALOGV("NsEnable ns %p", ns); 599 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local [all...] |
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 557 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_endElementExt 572 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attrExt 602 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attribute 693 ssize_t indexOfAttribute(const char* ns, const char* attr) const; 694 ssize_t indexOfAttribute(const char16_t* ns, size_t nsLen,
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 878 return dtohl(((const ResXMLTree_attrExt*)mCurExt)->ns.index); 881 return dtohl(((const ResXMLTree_endElementExt*)mCurExt)->ns.index); 926 return dtohl(attr->ns.index); 1040 ssize_t ResXMLParser::indexOfAttribute(const char* ns, const char* attr) const argument 1042 String16 nsStr(ns != NULL ? ns : ""); 1044 return indexOfAttribute(ns ? nsStr.string() : NULL, ns ? nsStr.size() : 0, 1048 ssize_t ResXMLParser::indexOfAttribute(const char16_t* ns, size_t nsLen, argument 1057 //printf("%d: ns [all...] |