Merge "resolve merge conflicts of 1599b981 to nyc-dev-plus-aosp am: 85e0c89ba5" into nyc-mr1-dev-plus-aosp

This commit is contained in:
Android Build Merger (Role)
2016-04-28 19:31:34 +00:00
committed by Android (Google) Code Review
25 changed files with 31 additions and 31 deletions

View File

@@ -373,7 +373,7 @@ using namespace android;
// on the caller already having a local JNI ref // on the caller already having a local JNI ref
class LocalScopedBitmap { class LocalScopedBitmap {
public: public:
LocalScopedBitmap(jlong bitmapHandle) explicit LocalScopedBitmap(jlong bitmapHandle)
: mBitmap(reinterpret_cast<Bitmap*>(bitmapHandle)) {} : mBitmap(reinterpret_cast<Bitmap*>(bitmapHandle)) {}
Bitmap* operator->() { Bitmap* operator->() {

View File

@@ -50,7 +50,7 @@ static const bool kDebugGlyphs = false;
// calls. See the Harfbuzz source for references about what these callbacks do. // calls. See the Harfbuzz source for references about what these callbacks do.
struct HarfBuzzFontData { struct HarfBuzzFontData {
HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } explicit HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { }
SkPaint* m_paint; SkPaint* m_paint;
}; };

View File

@@ -266,7 +266,7 @@ struct RgnIterPair {
SkRegion fRgn; // a copy of the caller's region SkRegion fRgn; // a copy of the caller's region
SkRegion::Iterator fIter; // an iterator acting upon the copy (fRgn) SkRegion::Iterator fIter; // an iterator acting upon the copy (fRgn)
RgnIterPair(const SkRegion& rgn) : fRgn(rgn) { explicit RgnIterPair(const SkRegion& rgn) : fRgn(rgn) {
// have our iterator reference our copy (fRgn), so we know it will be // have our iterator reference our copy (fRgn), so we know it will be
// unchanged for the lifetime of the iterator // unchanged for the lifetime of the iterator
fIter.reset(fRgn); fIter.reset(fRgn);

View File

@@ -114,7 +114,7 @@ class PerfMeasurementContext {
* will be active at once, which is a function of the GPU's level of * will be active at once, which is a function of the GPU's level of
* pipelining and the frequency of queries. * pipelining and the frequency of queries.
*/ */
PerfMeasurementContext(size_t maxQueryCount): explicit PerfMeasurementContext(size_t maxQueryCount):
mTimingStartIndex(0), mTimingStartIndex(0),
mTimingEndIndex(0), mTimingEndIndex(0),
mTimingQueryIndex(0) { mTimingQueryIndex(0) {

View File

@@ -1112,7 +1112,7 @@ static void android_content_AssetManager_dumpTheme(JNIEnv* env, jobject clazz,
class XmlAttributeFinder : public BackTrackingAttributeFinder<XmlAttributeFinder, jsize> { class XmlAttributeFinder : public BackTrackingAttributeFinder<XmlAttributeFinder, jsize> {
public: public:
XmlAttributeFinder(const ResXMLParser* parser) explicit XmlAttributeFinder(const ResXMLParser* parser)
: BackTrackingAttributeFinder(0, parser != NULL ? parser->getAttributeCount() : 0) : BackTrackingAttributeFinder(0, parser != NULL ? parser->getAttributeCount() : 0)
, mParser(parser) {} , mParser(parser) {}

View File

@@ -88,7 +88,7 @@ static struct {
class GraphicBufferWrapper { class GraphicBufferWrapper {
public: public:
GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) {
} }
sp<GraphicBuffer> buffer; sp<GraphicBuffer> buffer;

View File

@@ -43,7 +43,7 @@ static struct {
class NativeInputChannel { class NativeInputChannel {
public: public:
NativeInputChannel(const sp<InputChannel>& inputChannel); explicit NativeInputChannel(const sp<InputChannel>& inputChannel);
~NativeInputChannel(); ~NativeInputChannel();
inline sp<InputChannel> getInputChannel() { return mInputChannel; } inline sp<InputChannel> getInputChannel() { return mInputChannel; }

View File

@@ -107,7 +107,7 @@ public:
class InvokeAnimationListeners : public MessageHandler { class InvokeAnimationListeners : public MessageHandler {
public: public:
InvokeAnimationListeners(std::vector<OnFinishedEvent>& events) { explicit InvokeAnimationListeners(std::vector<OnFinishedEvent>& events) {
mOnFinishedEvents.swap(events); mOnFinishedEvents.swap(events);
} }
@@ -147,7 +147,7 @@ private:
class RootRenderNode : public RenderNode, ErrorHandler { class RootRenderNode : public RenderNode, ErrorHandler {
public: public:
RootRenderNode(JNIEnv* env) : RenderNode() { explicit RootRenderNode(JNIEnv* env) : RenderNode() {
mLooper = Looper::getForThread(); mLooper = Looper::getForThread();
LOG_ALWAYS_FATAL_IF(!mLooper.get(), LOG_ALWAYS_FATAL_IF(!mLooper.get(),
"Must create RootRenderNode on a thread with a looper!"); "Must create RootRenderNode on a thread with a looper!");
@@ -250,7 +250,7 @@ private:
class ContextFactoryImpl : public IContextFactory { class ContextFactoryImpl : public IContextFactory {
public: public:
ContextFactoryImpl(RootRenderNode* rootNode) : mRootNode(rootNode) {} explicit ContextFactoryImpl(RootRenderNode* rootNode) : mRootNode(rootNode) {}
virtual AnimationContext* createAnimationContext(renderthread::TimeLord& clock) { virtual AnimationContext* createAnimationContext(renderthread::TimeLord& clock) {
return new AnimationContextBridge(clock, mRootNode); return new AnimationContextBridge(clock, mRootNode);

View File

@@ -45,7 +45,7 @@ static struct {
class VelocityTrackerState { class VelocityTrackerState {
public: public:
VelocityTrackerState(const char* strategy); explicit VelocityTrackerState(const char* strategy);
void clear(); void clear();
void addMovement(const MotionEvent* event); void addMovement(const MotionEvent* event);

View File

@@ -3116,7 +3116,7 @@ String8 ResTable_config::toString() const {
struct ResTable::Header struct ResTable::Header
{ {
Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), explicit Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL),
resourceIDMap(NULL), resourceIDMapSize(0) { } resourceIDMap(NULL), resourceIDMapSize(0) { }
~Header() ~Header()

View File

@@ -150,7 +150,7 @@ bail:
class FileReader { class FileReader {
public: public:
FileReader(FILE* fp) : explicit FileReader(FILE* fp) :
mFp(fp), mReadBuf(new unsigned char[kReadBufSize]) mFp(fp), mReadBuf(new unsigned char[kReadBufSize])
{ {
} }
@@ -170,7 +170,7 @@ public:
class FdReader { class FdReader {
public: public:
FdReader(int fd) : explicit FdReader(int fd) :
mFd(fd), mReadBuf(new unsigned char[kReadBufSize]) mFd(fd), mReadBuf(new unsigned char[kReadBufSize])
{ {
} }

View File

@@ -168,7 +168,7 @@ void AnimatorManager::endAllStagingAnimators() {
class EndActiveAnimatorsFunctor { class EndActiveAnimatorsFunctor {
public: public:
EndActiveAnimatorsFunctor(AnimationContext& context) : mContext(context) {} explicit EndActiveAnimatorsFunctor(AnimationContext& context) : mContext(context) {}
void operator() (sp<BaseRenderNodeAnimator>& animator) { void operator() (sp<BaseRenderNodeAnimator>& animator) {
animator->forceEndNow(mContext); animator->forceEndNow(mContext);

View File

@@ -62,7 +62,7 @@ public:
class DrawBatch : public Batch { class DrawBatch : public Batch {
public: public:
DrawBatch(const DeferInfo& deferInfo) : mAllOpsOpaque(true), explicit DrawBatch(const DeferInfo& deferInfo) : mAllOpsOpaque(true),
mBatchId(deferInfo.batchId), mMergeId(deferInfo.mergeId) { mBatchId(deferInfo.batchId), mMergeId(deferInfo.mergeId) {
mOps.clear(); mOps.clear();
} }

View File

@@ -208,7 +208,7 @@ SkiaCanvas::SkiaCanvas(const SkBitmap& bitmap) {
class ClipCopier : public SkCanvas::ClipVisitor { class ClipCopier : public SkCanvas::ClipVisitor {
public: public:
ClipCopier(SkCanvas* dstCanvas) : m_dstCanvas(dstCanvas) {} explicit ClipCopier(SkCanvas* dstCanvas) : m_dstCanvas(dstCanvas) {}
virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) { virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) {
m_dstCanvas->clipRect(rect, op, antialias); m_dstCanvas->clipRect(rect, op, antialias);

View File

@@ -136,7 +136,7 @@ public:
class TessellationCache::TessellationProcessor : public TaskProcessor<VertexBuffer*> { class TessellationCache::TessellationProcessor : public TaskProcessor<VertexBuffer*> {
public: public:
TessellationProcessor(Caches& caches) explicit TessellationProcessor(Caches& caches)
: TaskProcessor<VertexBuffer*>(&caches.tasks) {} : TaskProcessor<VertexBuffer*>(&caches.tasks) {}
~TessellationProcessor() {} ~TessellationProcessor() {}
@@ -150,7 +150,7 @@ public:
class TessellationCache::Buffer { class TessellationCache::Buffer {
public: public:
Buffer(const sp<Task<VertexBuffer*> >& task) explicit Buffer(const sp<Task<VertexBuffer*> >& task)
: mTask(task) : mTask(task)
, mBuffer(nullptr) { , mBuffer(nullptr) {
} }
@@ -270,7 +270,7 @@ void tessellateShadows(
class ShadowProcessor : public TaskProcessor<TessellationCache::vertexBuffer_pair_t> { class ShadowProcessor : public TaskProcessor<TessellationCache::vertexBuffer_pair_t> {
public: public:
ShadowProcessor(Caches& caches) explicit ShadowProcessor(Caches& caches)
: TaskProcessor<TessellationCache::vertexBuffer_pair_t>(&caches.tasks) {} : TaskProcessor<TessellationCache::vertexBuffer_pair_t>(&caches.tasks) {}
~ShadowProcessor() {} ~ShadowProcessor() {}

View File

@@ -211,7 +211,7 @@ void RenderState::debugOverdraw(bool enable, bool clear) {
class DecStrongTask : public renderthread::RenderTask { class DecStrongTask : public renderthread::RenderTask {
public: public:
DecStrongTask(VirtualLightRefBase* object) : mObject(object) {} explicit DecStrongTask(VirtualLightRefBase* object) : mObject(object) {}
virtual void run() override { virtual void run() override {
mObject->decStrong(nullptr); mObject->decStrong(nullptr);

View File

@@ -128,7 +128,7 @@ class DispatchFrameCallbacks : public RenderTask {
private: private:
RenderThread* mRenderThread; RenderThread* mRenderThread;
public: public:
DispatchFrameCallbacks(RenderThread* rt) : mRenderThread(rt) {} explicit DispatchFrameCallbacks(RenderThread* rt) : mRenderThread(rt) {}
virtual void run() override { virtual void run() override {
mRenderThread->dispatchFrameCallbacks(); mRenderThread->dispatchFrameCallbacks();

View File

@@ -55,7 +55,7 @@ enum {
class BpMountService: public BpInterface<IMountService> class BpMountService: public BpInterface<IMountService>
{ {
public: public:
BpMountService(const sp<IBinder>& impl) explicit BpMountService(const sp<IBinder>& impl)
: BpInterface<IMountService>(impl) : BpInterface<IMountService>(impl)
{ {
} }

View File

@@ -26,7 +26,7 @@ enum {
// This is a stub that real consumers should override. // This is a stub that real consumers should override.
class BpObbActionListener: public BpInterface<IObbActionListener> { class BpObbActionListener: public BpInterface<IObbActionListener> {
public: public:
BpObbActionListener(const sp<IBinder>& impl) explicit BpObbActionListener(const sp<IBinder>& impl)
: BpInterface<IObbActionListener>(impl) : BpInterface<IObbActionListener>(impl)
{ } { }

View File

@@ -39,7 +39,7 @@ using android::Surface;
class NativeWindowHandle : public WindowHandle { class NativeWindowHandle : public WindowHandle {
public: public:
NativeWindowHandle(ANativeWindow* window) : window_(window) { explicit NativeWindowHandle(ANativeWindow* window) : window_(window) {
} }
virtual ~NativeWindowHandle() { virtual ~NativeWindowHandle() {

View File

@@ -39,7 +39,7 @@ struct AAssetDir {
size_t mCurFileIndex; size_t mCurFileIndex;
String8 mCachedFileName; String8 mCachedFileName;
AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { } explicit AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { }
~AAssetDir() { delete mAssetDir; } ~AAssetDir() { delete mAssetDir; }
}; };
@@ -48,7 +48,7 @@ struct AAssetDir {
struct AAsset { struct AAsset {
Asset* mAsset; Asset* mAsset;
AAsset(Asset* asset) : mAsset(asset) { } explicit AAsset(Asset* asset) : mAsset(asset) { }
~AAsset() { delete mAsset; } ~AAsset() { delete mAsset; }
}; };

View File

@@ -64,7 +64,7 @@ protected:
virtual ~Choreographer() = default; virtual ~Choreographer() = default;
private: private:
Choreographer(const sp<Looper>& looper); explicit Choreographer(const sp<Looper>& looper);
Choreographer(const Choreographer&) = delete; Choreographer(const Choreographer&) = delete;
virtual void dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t count); virtual void dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t count);

View File

@@ -37,7 +37,7 @@ private:
sp<AStorageManager> mStorageManager; sp<AStorageManager> mStorageManager;
public: public:
ObbActionListener(AStorageManager* mgr) : explicit ObbActionListener(AStorageManager* mgr) :
mStorageManager(mgr) mStorageManager(mgr)
{} {}

View File

@@ -74,7 +74,7 @@ protected:
class AlarmImplAlarmDriver : public AlarmImpl class AlarmImplAlarmDriver : public AlarmImpl
{ {
public: public:
AlarmImplAlarmDriver(int fd) : AlarmImpl(&fd, 1) { } explicit AlarmImplAlarmDriver(int fd) : AlarmImpl(&fd, 1) { }
int set(int type, struct timespec *ts); int set(int type, struct timespec *ts);
int setTime(struct timeval *tv); int setTime(struct timeval *tv);

View File

@@ -84,7 +84,7 @@ private:
// it to service thread. // it to service thread.
class CecEventWrapper : public LightRefBase<CecEventWrapper> { class CecEventWrapper : public LightRefBase<CecEventWrapper> {
public: public:
CecEventWrapper(const hdmi_event_t& event) { explicit CecEventWrapper(const hdmi_event_t& event) {
// Copy message. // Copy message.
switch (event.type) { switch (event.type) {
case HDMI_EVENT_CEC_MESSAGE: case HDMI_EVENT_CEC_MESSAGE: