/frameworks/base/tools/aapt/ |
H A D | AaptXml.h | 37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns, 53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, 61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, argument 63 return getIntegerAttribute(tree, ns, attr, -1, outError);
|
H A D | AaptXml.cpp | 79 String8 getAttribute(const ResXMLTree& tree, const char* ns, argument 81 ssize_t idx = tree.indexOfAttribute(ns, attr); 123 int32_t getIntegerAttribute(const ResXMLTree& tree, const char* ns, argument 125 ssize_t idx = tree.indexOfAttribute(ns, attr);
|
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 | 237 const char16_t* ns = inXml->getElementNamespace(&nslen); local 238 if (ns == NULL) { 239 ns = (const char16_t*)"\0\0"; 242 const String8 nspace(String16(ns, nslen)); 294 const char16_t* ns = inXml->getElementNamespace(&nslen); local 295 if (ns == NULL) { 296 ns = (const char16_t*)"\0\0"; 299 const String8 nspace(String16(ns, nslen)); 425 const char16_t* ns) 428 if (ns ! 424 build_namespace(const Vector<namespace_entry>& namespaces, const char16_t* ns) argument 471 String8 ns = build_namespace(namespaces, ns16); local 504 namespace_entry ns; local 519 const namespace_entry& ns = namespaces.top(); local [all...] |
H A D | Resource.cpp | 457 const char* ns, const char* attr, const char* validChars, bool required) 461 ssize_t index = parser.indexOfAttribute(ns, attr); 696 const String16 ns(ns8); 699 XMLNode::attribute_entry* existingEntry = node->editAttribute(ns, attr); 704 String8(attr).string(), String8(ns).string())); 712 String8(attr).string(), String8(ns).string(), value); 718 String8(attr).string(), String8(ns).string()); 724 node->addAttribute(ns, attr, String16(value)); 2897 const char* ns; member in struct:NamespaceAttributePair 2900 NamespaceAttributePair(const char* n, const char* a) : ns( 455 validateAttr(const String8& path, const ResTable& table, const ResXMLParser& parser, const char* ns, const char* attr, const char* validChars, bool required) argument 2983 addTagAttrPair(KeyedVector<String8, Vector<NamespaceAttributePair> >* dest, const char* tag, const char* ns, const char* attr) argument [all...] |
/frameworks/native/services/sensorservice/ |
H A D | CorrectedGyroSensor.cpp | 64 status_t CorrectedGyroSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 65 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns); 66 return mSensorFusion.setDelay(ident, ns);
|
H A D | OrientationSensor.cpp | 72 status_t OrientationSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 73 return mSensorFusion.setDelay(ident, ns);
|
H A D | RotationVectorSensor.cpp | 59 status_t RotationVectorSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 60 return mSensorFusion.setDelay(ident, ns); 108 status_t GyroDriftSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 109 return mSensorFusion.setDelay(ident, ns);
|
H A D | GravitySensor.cpp | 73 status_t GravitySensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 74 return mSensorFusion.setDelay(ident, ns);
|
H A D | LinearAccelerationSensor.cpp | 57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument 58 return mGravitySensor.setDelay(ident, handle, ns);
|
H A D | SensorFusion.cpp | 120 status_t SensorFusion::setDelay(void* ident, int64_t ns) { argument 122 mSensorDevice.batch(ident, mAcc.getHandle(), 0, ns, 0);
|
H A D | SensorInterface.cpp | 60 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument 61 return mSensorDevice.setDelay(ident, handle, ns);
|
H A D | SensorService.cpp | 858 int handle, nsecs_t ns) 871 if (ns < 0) 875 if (ns < minDelayNs) { 876 ns = minDelayNs; 879 return sensor->setDelay(connection.get(), handle, ns); 857 setEventRate(const sp<SensorEventConnection>& connection, 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 | 70 virtual status_t setEventRate(int handle, nsecs_t ns) argument 75 data.writeInt64(ns); 117 int ns = data.readInt64(); local 118 status_t result = setEventRate(handle, ns);
|
/frameworks/av/media/libcpustats/ |
H A D | ThreadCpuUsage.cpp | 75 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument 81 return sample(ns); 84 ns = (double) mAccumulator; 86 ALOGV("sampleAndEnable %.0f", ns); 90 ns = 0.0; 96 bool ThreadCpuUsage::sample(double &ns) argument 105 ns = 0.0; 116 ns = (double) mAccumulator; 117 ALOGV("sample %.0f", ns); 122 ns [all...] |
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 153 uint32_t ns; local 159 ns = written * ( 500000000 / Format_sampleRate(mFormat)); 162 ns = written * ( 750000000 / Format_sampleRate(mFormat)); 165 ns = written * (1000000000 / Format_sampleRate(mFormat)); 168 ns = written * (1150000000 / Format_sampleRate(mFormat)); 171 ns = written * (1350000000 / Format_sampleRate(mFormat)); 174 ns = written * (1750000000 / Format_sampleRate(mFormat)); 177 ns = count * (1350000000 / Format_sampleRate(mFormat)); 179 if (ns > 999999999) { 180 ns [all...] |
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
H A D | SoftOpus.cpp | 318 static uint64_t ns_to_samples(uint64_t ns, int kRate) { argument 319 return static_cast<double>(ns) * kRate / 1000000000;
|
/frameworks/base/core/jni/ |
H A D | android_util_XmlBlock.cpp | 259 jstring ns, jstring name) 269 if (ns) { 270 ns16 = env->GetStringChars(ns, NULL); 271 nsLen = env->GetStringLength(ns); 279 if (ns) { 280 env->ReleaseStringChars(ns, ns16); 257 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jlong token, jstring ns, jstring name) argument
|
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 877 nsecs_t ns = NS_WHENEVER; local 881 ns = ((minFrames * 1000000000LL) / mSampleRate) + kFudgeNs; 886 return ns; 891 if (ns != NS_WHENEVER) { 892 timeout.tv_sec = ns / 1000000000LL; 893 timeout.tv_nsec = ns % 1000000000LL; 923 if (ns < 0 || myns < ns) { 924 ns = myns; 926 return ns; 1062 nsecs_t ns = mReceiver.processAudioBuffer(); local [all...] |
H A D | AudioTrack.cpp | 1717 nsecs_t ns = NS_WHENEVER; local 1721 ns = ((minFrames * 1000000000LL) / sampleRate) + kFudgeNs; 1726 return ns; 1731 if (ns != NS_WHENEVER) { 1732 timeout.tv_sec = ns / 1000000000LL; 1733 timeout.tv_nsec = ns % 1000000000LL; 1763 if (ns < 0 || myns < ns) { 1764 ns = myns; 1766 return ns; 2141 nsecs_t ns = mReceiver.processAudioBuffer(); local [all...] |
/frameworks/av/media/libstagefright/codecs/aacdec/ |
H A D | SoftAAC2.cpp | 902 int32_t ns = outputDelayRingBufferGetSamples(outBuffer, numSamples); local 903 if (ns != numSamples) { 943 int32_t ns = outputDelayRingBufferGetSamples(outBuffer, ringBufAvail); local 944 if (ns < 0) { 945 ns = 0; 947 outHeader->nFilledLen = ns; 984 int32_t ns = outputDelayRingBufferGetSamples(0, avail); local 985 if (ns != avail) {
|
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 560 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local 561 ns->set_level(kNsDefaultLevel); 567 webrtc::NoiseSuppression *ns = effect->session->apm->noise_suppression(); local 568 ALOGV("NsCreate got ns %p", ns); 569 if (ns == NULL) { 573 effect->engine = static_cast<preproc_fx_handle_t>(ns); 595 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local 596 ALOGV("NsEnable ns %p", ns); 603 webrtc::NoiseSuppression *ns = static_cast<webrtc::NoiseSuppression *>(effect->engine); local [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | Settings.java | 2506 private int readInt(XmlPullParser parser, String ns, String name, int defValue) { argument 2507 String v = parser.getAttributeValue(ns, name);
|
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 620 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_endElementExt 635 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attrExt 665 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attribute 760 ssize_t indexOfAttribute(const char* ns, const char* attr) const; 761 ssize_t indexOfAttribute(const char16_t* ns, size_t nsLen,
|