/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
H A D | TetheringInterfaceUtils.java | 38 public static @Nullable InterfaceSet getTetheringInterfaces(NetworkState ns) { argument 39 if (ns == null) { 43 final LinkProperties lp = ns.linkProperties; 45 final String if6 = getIPv6Interface(ns); 54 public static @Nullable String getIPv6Interface(NetworkState ns) { argument 70 (ns != null) && (ns.network != null) && 71 (ns.linkProperties != null) && (ns.networkCapabilities != null) && 73 ns [all...] |
H A D | IPv6TetheringCoordinator.java | 116 public void updateUpstreamNetworkState(NetworkState ns) { argument 118 Log.d(TAG, "updateUpstreamNetworkState: " + toDebugString(ns)); 120 if (TetheringInterfaceUtils.getIPv6Interface(ns) == null) { 127 !ns.network.equals(mUpstreamNetworkState.network)) { 131 setUpstreamNetworkState(ns); 141 private void setUpstreamNetworkState(NetworkState ns) { argument 142 if (ns == null) { 148 new LinkProperties(ns.linkProperties), 149 new NetworkCapabilities(ns.networkCapabilities), 150 new Network(ns 297 toDebugString(NetworkState ns) argument [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
H A D | NoiseSuppressor.java | 64 NoiseSuppressor ns = null; 66 ns = new NoiseSuppressor(audioSession); 68 Log.w(TAG, "not implemented on this device "+ns); 74 return ns;
|
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 91 uint32_t ns; local 103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); 106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); 109 ns = written * (1000000000 / Format_sampleRate(mFormat)); 112 ns = written * (1150000000 / Format_sampleRate(mFormat)); 115 ns = written * (1350000000 / Format_sampleRate(mFormat)); 118 ns = written * (1750000000 / Format_sampleRate(mFormat)); 121 ns = count * (1350000000 / Format_sampleRate(mFormat)); 123 if (ns > 999999999) { 124 ns [all...] |
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | clock_ns.h | 28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; local 29 return ns; 34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; local 35 return ns; 48 static inline timespec NsToTimespec(int64_t ns) { argument 52 t.tv_sec = ns / kNanosPerSecond; 53 remainder = ns % kNanosPerSecond;
|
/frameworks/base/core/java/android/net/ |
H A D | MatchAllNetworkSpecifier.java | 32 * Utility method which verifies that the ns argument is not a MatchAllNetworkSpecifier and 35 public static void checkNotMatchAllNetworkSpecifier(NetworkSpecifier ns) { argument 36 if (ns instanceof MatchAllNetworkSpecifier) {
|
/frameworks/av/media/libcpustats/ |
H A D | ThreadCpuUsage.cpp | 81 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument 86 return sample(ns); 89 ns = (double) mAccumulator; 91 ALOGV("sampleAndEnable %.0f", ns); 95 ns = 0.0; 101 bool ThreadCpuUsage::sample(double &ns) argument 110 ns = 0.0; 121 ns = (double) mAccumulator; 122 ALOGV("sample %.0f", ns); 127 ns [all...] |
/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/base/wifi/java/android/net/wifi/aware/ |
H A D | WifiAwareAgentNetworkSpecifier.java | 54 public WifiAwareAgentNetworkSpecifier(WifiAwareNetworkSpecifier ns) { argument 56 mNetworkSpecifiers.add(convert(ns)); 61 for (WifiAwareNetworkSpecifier ns : nss) { 62 mNetworkSpecifiers.add(convert(ns)); 140 public boolean satisfiesAwareNetworkSpecifier(WifiAwareNetworkSpecifier ns) { argument 141 if (VDBG) Log.v(TAG, "satisfiesAwareNetworkSpecifier: ns=" + ns); 142 ByteArrayWrapper nsBytes = convert(ns); 161 private ByteArrayWrapper convert(WifiAwareNetworkSpecifier ns) { argument 167 ns [all...] |
/frameworks/base/tools/bit/ |
H A D | aapt.cpp | 45 string ns; member in struct:Attribute 52 string ns; member in struct:Element 67 string GetAttr(const string& ns, const string& name) const; 68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse); 85 Element::GetAttr(const string& ns, const string& name) const argument 90 if (attr.ns == ns && attr.name == name) { 98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) argument 103 if (child->ns == ns [all...] |
/frameworks/av/include/cpustats/ |
H A D | ThreadCpuUsage.h | 26 // Units are in per-thread CPU ns, as reported by 79 // then adds a sample for tracked CPU ns since the previous 82 // now disabled, then adds a sample for the tracked CPU ns accumulated 86 // Returns true if the sample 'ns' is valid, or false if invalid. 87 // Note that 'ns' is an output parameter passed by reference. 90 bool sampleAndEnable(double& ns); 95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since 99 // Note that 'ns' is an output parameter passed by reference. 102 bool sample(double& ns); 104 // Return the elapsed delta wall clock ns sinc [all...] |
/frameworks/av/media/libcpustats/include/cpustats/ |
H A D | ThreadCpuUsage.h | 26 // Units are in per-thread CPU ns, as reported by 79 // then adds a sample for tracked CPU ns since the previous 82 // now disabled, then adds a sample for the tracked CPU ns accumulated 86 // Returns true if the sample 'ns' is valid, or false if invalid. 87 // Note that 'ns' is an output parameter passed by reference. 90 bool sampleAndEnable(double& ns); 95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since 99 // Note that 'ns' is an output parameter passed by reference. 102 bool sample(double& ns); 104 // Return the elapsed delta wall clock ns sinc [all...] |
/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);
|
/frameworks/native/services/sensorservice/ |
H A D | OrientationSensor.h | 39 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
|
H A D | CorrectedGyroSensor.cpp | 75 status_t CorrectedGyroSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 76 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns); 77 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
|
H A D | CorrectedGyroSensor.h | 41 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
|
H A D | GravitySensor.h | 41 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
|
H A D | LinearAccelerationSensor.h | 43 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
|
H A D | RotationVectorSensor.cpp | 69 status_t RotationVectorSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 70 return mSensorFusion.setDelay(mMode, ident, ns); 154 status_t GyroDriftSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 155 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
|
H A D | GravitySensor.cpp | 82 status_t GravitySensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 83 return mSensorFusion.setDelay(FUSION_NOMAG, ident, ns);
|
H A D | LinearAccelerationSensor.cpp | 68 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument 69 return mGravitySensor.setDelay(ident, handle, ns);
|
H A D | OrientationSensor.cpp | 78 status_t OrientationSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 79 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
|
H A D | RotationVectorSensor.h | 40 virtual status_t setDelay(void* ident, int handle, int64_t ns) override; 64 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
|
H A D | SensorInterface.cpp | 75 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument 76 return mSensorDevice.setDelay(ident, handle, ns);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
H A D | WifiAwareDataPathStateManager.java | 1029 void updateToSupportNewRequest(WifiAwareNetworkSpecifier ns) { argument 1030 if (VDBG) Log.v(TAG, "updateToSupportNewRequest: ns=" + ns); 1031 if (equivalentSpecifiers.add(ns) && state == STATE_CONFIRMED) { 1041 void removeSupportForRequest(WifiAwareNetworkSpecifier ns) { argument 1042 if (VDBG) Log.v(TAG, "removeSupportForRequest: ns=" + ns); 1043 equivalentSpecifiers.remove(ns); 1065 static AwareNetworkRequestInformation processNetworkSpecifier(WifiAwareNetworkSpecifier ns, argument 1071 byte[] peerMac = ns [all...] |