Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 52) sorted by relevance

123

/development/tools/repo_diff/service/repodiff/controllers/
Ddenormalize.go22 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 …]
Ddifferential.go30 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 …]
Dreporter.go18 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 …]
Dcontract.go15 c, err := repositories.NewCommitRepository(target)
16 if err != nil {
17 return repositories.NewNullObject(err)
/development/tools/repo_diff/service/repodiff/persistence/sql/
Dsql.go50 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 …]
Dsql_test.go10 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/persistence/filesystem/
Dcsv.go16 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 …]
Dcsv_test.go12 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")
Djson.go12 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
Dxml_test.go13 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")
Dxml.go9 xmlBytes, err := ioutil.ReadFile(filePath)
10 if err != nil {
11 return err
/development/tools/repo_diff/service/repodiff/
Drepodiff.go17 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/repo_diff/service/repodiff/repositories/
Dcommit.go74 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 …]
Ddenormalizer_test.go52 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 …]
Dproject.go54 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 …]
Ddenormalizer.go26 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 …]
Dcommit_test.go30 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 …]
Dsource.go28 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")
Dproject_test.go41 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/bugreport/src/com/android/bugreport/
DMain.java62 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/tools/repo_diff/service/repodiff/interactors/
Drunner_test.go19 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")
Dlogic.go11 for _, err := range errors {
12 if err != nil {
13 return err
/development/cmds/monkey/src/com/android/commands/monkey/
DLogger.java34 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()
DMonkey.java307 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 …]
/development/tools/repo_diff/service/repodiff/mappers/
Dmappers.go26 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 …]

123