/development/tools/repo_diff/service/repodiff/controllers/ |
D | denormalize.go | 22 err := denormalizeViewRecentProjectForTarget(target) 23 if err != nil { 24 return err 31 mappedTarget, err := getMappedTarget(target) 32 if err != nil { 33 return err 35 denormalizeRepo, err := repositories.NewScopedDenormalizerRepository(target, mappedTarget) 36 if err != nil { 37 return err 40 projectRepo, err := repositories.NewProjectRepository(mappedTarget) [all …]
|
D | differential.go | 30 err := createWorkingPath(config.OutputDirectory) 31 if err != nil { 32 return errors.Wrap(err, "Could not create working path") 35 commonManifest, err := defineCommonManifest(config) 36 if err != nil { 37 return err 42 err = clearOutputDirectory(config) 43 commitCSV, projectCSV, err := runPyScript(config, target) 44 if err != nil { 45 return errors.Wrap(err, "Error running python differential script") [all …]
|
D | reporter.go | 18 if err := generateCommitReport(appConfig, target); err != nil { 19 return err 27 sourceRepo, err := repositories.NewSourceRepository() 28 if err != nil { 29 return err 31 mappedTarget, err := sourceRepo.DiffTargetToMapped(target) 32 if err != nil { 33 return err 36 commitRepo, err := repositories.NewCommitRepository(mappedTarget) 37 if err != nil { [all …]
|
/development/tools/repo_diff/service/repodiff/persistence/sql/ |
D | sql.go | 50 var err error 51 db, err = newDBConnectionPool() 52 if err != nil { 53 return nil, err 66 tx, err := db.Begin() 67 if err != nil { 68 return errors.Wrap(err, "Error starting transaction") 70 stmt, err := tx.Prepare(insertQuery) 71 if err != nil { 72 return errors.Wrap(err, "Error preparing statement") [all …]
|
D | sql_test.go | 10 db, err := GetDBConnectionPool() 11 assert.Equal(t, nil, err, "Database interface error should not be nil") 12 err = db.Ping() 13 assert.Equal(t, nil, err, "No error should exist pinging the database")
|
/development/tools/repo_diff/service/repodiff/repositories/ |
D | commit.go | 74 err := c.db.QueryRow( 86 if err != nil { 87 return 0, constants.NullUUID(), err 89 u, err := uuid.FromBytes(uuidBytes) 90 if err != nil { 91 return 0, constants.NullUUID(), errors.Wrap(err, "Error casting string to UUID") 97 timestamp, uid, err := c.GetMostRecentOuterKey() 98 if err == sql.ErrNoRows { 101 if err != nil { 102 return nil, err [all …]
|
D | denormalizer_test.go | 52 d, err := repositories.NewScopedDenormalizerRepository(fakeTarget, fakeMappedTarget) 53 assert.Equal(t, nil, err, "Error should not be nil") 56 err = d.DenormalizeToRecentView(fixtures) 57 assert.Equal(t, nil, err, "Error should be nil") 67 err := d.DenormalizeToChangesOverTime(fixtures) 68 assert.Equal(t, nil, err, "Error should be nil") 88 err := d.DenormalizeToRecentCommits( 94 assert.Equal(t, nil, err, "Error should be nil") 136 commitRepo, err := repositories.NewCommitRepository(fakeMappedTarget) 137 err = commitRepo.InsertCommitRows(fakeCommitRows) [all …]
|
D | denormalizer.go | 26 if _, err := g.db.Exec( 31 ); err != nil { 32 return err 34 _, err := g.db.Exec( 88 return err 93 if _, err := g.db.Exec( 98 ); err != nil { 99 return err 101 _, err := g.db.Exec( 153 return err [all …]
|
D | commit_test.go | 30 c, err := repositories.NewCommitRepository(fakeMappedTarget) 31 assert.Equal(t, nil, err, "Error should not be nil") 34 err = c.InsertCommitRows(fixtures) 35 assert.Equal(t, nil, err, "Error should be nil") 43 err := c.InsertCommitRows(fixtures) 44 assert.Equal(t, nil, err, "Eroror should be nil") 62 commitRows, err := c.GetMostRecentCommits() 63 assert.Equal(t, nil, err, "Error should not be nil") 69 rows, err := c.GetMostRecentCommits() 70 assert.Equal(t, nil, err, "Error should be nil") [all …]
|
D | project.go | 54 err := p.db.QueryRow( 66 if err != nil { 67 return 0, constants.NullUUID(), err 69 u, err := uuid.FromBytes(uuidBytes) 70 if err != nil { 71 return 0, constants.NullUUID(), errors.Wrap(err, "Error casting string to UUID") 77 timestamp, uid, err := p.GetMostRecentOuterKey() 78 if err == sql.ErrNoRows { 81 if err != nil { 83 return nil, err [all …]
|
D | source.go | 28 val, err := s.getOrCreateURLBranchIDPersistence(url, branch) 29 if err != nil { 30 return 0, err 37 id, err := s.getIDByURLBranch(url, branch) 38 if err == nil { 85 url, branch, err := s.getURLBranchByIDPersistence(id) 86 if err == nil { 89 return url, branch, err 128 db, err := repoSQL.GetDBConnectionPool() 131 }, errors.Wrap(err, "Could not establish a database connection")
|
D | project_test.go | 41 p, err := repositories.NewProjectRepository(testDiffTarget) 42 assert.Equal(t, nil, err, "Error should not be nil") 65 _, _, err := p.GetMostRecentOuterKey() 66 assert.NotEqual(t, nil, err, "Error should be returned when database is empty") 77 diffRows, err := p.GetMostRecentDifferentials() 78 assert.Equal(t, nil, err, "Error should not be nil") 104 rows, err := p.GetMostRecentDifferentials() 105 assert.Equal(t, nil, err, "Error should be nil")
|
/development/tools/repo_diff/service/repodiff/persistence/filesystem/ |
D | csv.go | 16 csvFile, err := os.Open(filePath) 17 if err != nil { 19 err, 29 line, err := reader.Read() 30 if err == io.EOF { 32 } else if err != nil { 34 err, 47 file, err := os.Create(filepath) 48 if err != nil { 49 return err [all …]
|
D | csv_test.go | 12 err := GenerateCSVLines( 20 assert.Equal(t, nil, err, "Read CSV Error output") 25 err := GenerateCSVLines( 29 assert.NotEqual(t, err, nil, "CSV Error should be generated") 50 err := WriteCSVToFile(header, rowsOfCols, outputPath) 51 assert.Equal(t, err, nil, "Error should not be generated") 54 err = GenerateCSVLines( 61 assert.Equal(t, nil, err, "No error should exist reading created CSV")
|
D | json.go | 12 serialized, err := json.MarshalIndent(jsonEntity, "", fourSpaces) 14 if err != nil { 15 return err 26 fileContents, err := ioutil.ReadFile(filename) 28 if err != nil { 29 return err
|
D | xml_test.go | 13 err := ReadXMLAsEntity("testdata/manifest.xml", &manifest) 14 assert.Equal(t, nil, err, "Error should be nil") 20 err := ReadXMLAsEntity("testdata/non_existent_file.xml", &manifest) 21 assert.NotEqual(t, nil, err, "Error should be generated")
|
/development/tools/repo_diff/service/repodiff/ |
D | repodiff.go | 17 appConfig, err := loadConfig() 18 if err != nil { 19 panic(formattedError(err)) 33 if err := controllerFn(appConfig); err != nil { 34 topLevelErrorHandle(err, statusChannel) 61 func topLevelErrorHandle(err error, statusChannel chan ent.StatusMessage) { 64 Meta: formattedError(err), 66 fmt.Println(formattedError(err)) 71 err := filesystem.ReadFileAsJson(configFile, &appConfig) 72 if err != nil { [all …]
|
/development/tools/bugreport/src/com/android/bugreport/ |
D | Main.java | 62 System.err.println("usage: bugreport --monkey MONKEYLOG --html HTML --logcat SYSTEMLOG" in usage() 80 System.err.println("Error reading monkey file: " + options.bugreport); in run() 81 System.err.println("Error: " + ex.getMessage()); in run() 92 System.err.println("Error reading bugreport file: " + options.bugreport); in run() 93 System.err.println("Error: " + ex.getMessage()); in run() 105 System.err.println("Error reading bugreport file: " + options.bugreport); in run() 106 System.err.println("Error: " + ex.getMessage()); in run() 117 System.err.println("No anr!"); in run() 126 System.err.println("Error reading output file: " + options.html); in run() 127 System.err.println("Error: " + ex.getMessage()); in run()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | Monkey.java | 307 Logger.err.println("** Failed talking with package manager!"); in isActivityStartingAllowed() 334 Logger.err.println("// CRASH: " + processName + " (pid " + pid + ")"); in appCrashed() 335 Logger.err.println("// Short Msg: " + shortMsg); in appCrashed() 336 Logger.err.println("// Long Msg: " + longMsg); in appCrashed() 337 Logger.err.println("// Build Label: " + Build.FINGERPRINT); in appCrashed() 338 Logger.err.println("// Build Changelist: " + Build.VERSION.INCREMENTAL); in appCrashed() 339 Logger.err.println("// Build Time: " + Build.TIME); in appCrashed() 340 Logger.err.println("// " + stackTrace.replace("\n", "\n// ")); in appCrashed() 369 Logger.err.println("// NOT RESPONDING: " + processName + " (pid " + pid + ")"); in appNotResponding() 370 Logger.err.println(processStats); in appNotResponding() [all …]
|
D | Logger.java | 34 public static Logger err = new Logger() { field in Logger 37 System.err.println(s); 57 err.println(msg); in error() 58 err.println(Log.getStackTraceString(t)); in error()
|
/development/tools/repo_diff/service/repodiff/mappers/ |
D | mappers.go | 26 intVals, err := batchToInts(csvColumns[4:]...) 27 if err != nil { 28 return nil, err 30 diffStatus, err := constants.GetStatusEnum(csvColumns[3]) 31 if err != nil { 32 return nil, err 65 var err error 66 ints[i], err = strconv.Atoi(val) 67 if err != nil { 68 return nil, errors.Wrap(err, fmt.Sprintf("Could not convert from %s", val)) [all …]
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | ApkCheck.java | 101 System.err.println("ERROR: unknown option " + in main() 129 System.err.println("Skipping..."); in main() 144 System.err.println("Android APK checker v1.0"); in usage() 145 System.err.println("Copyright (C) 2010 The Android Open Source Project\n"); in usage() 146 System.err.println("Usage: apkcheck [options] public-api.xml apk1.xml ...\n"); in usage() 147 System.err.println("Options:"); in usage() 148 System.err.println(" --help show this message"); in usage() 149 System.err.println(" --uses-library=lib.xml load additional public API list"); in usage() 150 … System.err.println(" --ignore-package=pkg don't show errors for references to this package"); in usage() 151 System.err.println(" --[no-]warn enable or disable display of warnings"); in usage() [all …]
|
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/ |
D | RmTypeDefs.java | 67 usage(System.err); in run() 83 System.err.println("Unknown argument " + arg); in run() 84 usage(System.err); in run() 93 System.err.println(file + " does not exist"); in run() 94 usage(System.err); in run() 135 System.err.println(path + ": Warning: Encountered .jar file; .class files " in checkFile() 151 System.err.println("Could not read " + file + ": " + e.getLocalizedMessage()); in checkClass() 188 System.err.println("Warning: Could not find outer class " + container in addTypeDef() 205 System.err.println("Could not read " + file + ": " + e.getLocalizedMessage()); in rewriteOuterClasses() 226 System.err.println("Could not write " + file + ": " + e.getLocalizedMessage()); in rewriteOuterClasses() [all …]
|
/development/tools/winscope/adb_proxy/ |
D | winscope_proxy.py | 255 _, err = process.communicate(stdin) 258 log.debug('Error executing adb command: adb {}\n'.format(params) + err.decode( 260 raise AdbError('Error executing adb command: adb {}\n'.format(params) + err.decode( 336 self.err = None, 378 self.out, self.err = self.process.communicate(self.trace_command) 423 except KeyError as err: 424 raise BadRequest("Missing Content-Length header\n" + str(err)) 425 except ValueError as err: 426 raise BadRequest("Content length unreadable\n" + str(err)) 430 except KeyError as err: [all …]
|
/development/tools/repo_diff/service/repodiff/interactors/ |
D | runner_test.go | 19 err := NewTaskRunner().ExecuteFunctionsAsync( 26 assert.NotEqual(t, nil, err, "Error should exist") 30 err := NewTaskRunner().ExecuteFunctionsAsync( 37 assert.Equal(t, nil, err, "Error should not exist")
|